2 Replies Latest reply on Jul 2, 2010 6:31 AM by Martin Weiler

    Sample Portal Deployment Errors

    Fred Curry Newbie

      I have been trying to deploy the sample portal, and run it against MySQL. My ultimate goal is to be able to duplicate the sample portal to be able to customize it and promote it through dev/test/prod without too many JCR issues. I have no problem running the default portal, but when I deploy the sample portal as well, I get a series of errors. The errors I get if I do a hot-deploy of the sample portal are slightly different. I am running EPP, but I don't expect there should be any differences. I have included the following files in my deployment directory:

      gatein-sample-extension.ear; gatein-sample-portal-ds.xml; gatein-sample-portal.ear; gatein-sample-skin.war.

       

      I have included the first errors in my stack trace, and included the server log, and my data source files. These are the only files that I have changed (as well as replacing the messaging data source file). Has anyone seen something like this? Is there something simple that I'm missing?

       

      Thanks,

       

      Fred

       

       

      13:29:42,207 INFO  [PlatformMBeanServerRegistration] JBossCache MBeans were successfully registered to the platform mbean server.
      13:29:42,208 INFO  [ComponentRegistry] JBoss Cache version: JBossCache 'Malagueta' 3.2.4.GA
      13:29:42,452 INFO  [IdentityRegistry] Parameter concurrency-level was not found in configuration, default 16will be used.
      13:29:42,566 ERROR [RepositoryContainer] Repository error
      javax.jcr.RepositoryException: You cannot rollback during a managed transaction!: You cannot rollback during a managed transaction!: You cannot rollback during a managed transaction!
          at org.exoplatform.services.jcr.impl.dataflow.persistent.TxIsolatedOperation.perform(TxIsolatedOperation.java:235)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.CacheableWorkspaceDataManager.save(CacheableWorkspaceDataManager.java:485)
          at org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer.initRootNode(ScratchWorkspaceInitializer.java:263)
          at org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer.initWorkspace(ScratchWorkspaceInitializer.java:155)
          at org.exoplatform.services.jcr.impl.RepositoryContainer.initWorkspace(RepositoryContainer.java:490)
          at org.exoplatform.services.jcr.impl.RepositoryContainer.init(RepositoryContainer.java:444)
          at org.exoplatform.services.jcr.impl.RepositoryContainer.start(RepositoryContainer.java:392)
          at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:158)
          at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.init(RepositoryServiceImpl.java:354)
          at org.exoplatform.services.jcr.impl.RepositoryServiceImpl.start(RepositoryServiceImpl.java:269)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.picocontainer.defaults.LifecycleVisitor.traverse(LifecycleVisitor.java:75)
          at org.picocontainer.defaults.LifecycleVisitor.start(LifecycleVisitor.java:113)
          at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:369)
          at org.exoplatform.container.PortalContainer.start(PortalContainer.java:568)
          at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:332)
          at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:226)
          at org.exoplatform.container.web.PortalContainerCreator.contextInitialized(PortalContainerCreator.java:57)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
          at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
          at sun.reflect.GeneratedMethodAccessor288.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
          at $Proxy38.start(Unknown Source)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
          at org.jboss.system.ServiceController.start(ServiceController.java:460)
          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1211)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
          at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
          at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
          at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
          at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
          at org.jboss.Main.boot(Main.java:221)
          at org.jboss.Main$1.run(Main.java:556)
          at java.lang.Thread.run(Thread.java:637)
      Caused by: javax.jcr.RepositoryException: You cannot rollback during a managed transaction!: You cannot rollback during a managed transaction!
          at org.exoplatform.services.jcr.impl.storage.jdbc.JDBCStorageConnection.rollback(JDBCStorageConnection.java:286)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.WorkspacePersistentDataManager$ChangesLogPersister.rollback(WorkspacePersistentDataManager.java:213)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.WorkspacePersistentDataManager.save(WorkspacePersistentDataManager.java:182)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.CacheableWorkspaceDataManager.access$101(CacheableWorkspaceDataManager.java:51)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.CacheableWorkspaceDataManager$SaveInTransaction.action(CacheableWorkspaceDataManager.java:254)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.TxIsolatedOperation.txAction(TxIsolatedOperation.java:92)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.CacheableWorkspaceDataManager$SaveInTransaction.txAction(CacheableWorkspaceDataManager.java:260)
          at org.exoplatform.services.jcr.impl.dataflow.persistent.TxIsolatedOperation.perform(TxIsolatedOperation.java:210)
          ... 89 more
      Caused by: java.sql.SQLException: You cannot rollback during a managed transaction!
          at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:693)
          at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:501)
          at org.exoplatform.services.jcr.impl.storage.jdbc.JDBCStorageConnection.rollback(JDBCStorageConnection.java:273)
          ... 96 more