1 2 Previous Next 16 Replies Latest reply on May 29, 2006 12:23 PM by gavin.king

    4.0.4.GA deploy problem... I think

    drapierwim

      I'm having trouble to deploy my app since I've updated to the AS 4.0.4.GA and Seam from CVS.

      Any ideas?

      21:32:50,381 INFO [SessionFactoryImpl] building session factory
      21:32:50,961 WARN [ServiceController] Problem starting service persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
      org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
       at org.hibernate.loader.BasicLoader.postInstantiate(BasicLoader.java:66)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:75)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:43)
       at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:33)
       at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:103)
       at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1666)
       at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1670)
       at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:2767)
       at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:2760)
       at org.hibernate.persister.entity.SingleTableEntityPersister.postInstantiate(SingleTableEntityPersister.java:667)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:287)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
       at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
       at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
       at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
       at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
       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:585)
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy291.start(Unknown Source)
       at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
       at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:428)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       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:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy35.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       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:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)


      ...

      21:33:47,723 INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/jboss-seam-fisconet.ear
      21:33:47,723 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
       State: FAILED
       Reason: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
       I Depend On:
       jboss.jca:service=ManagedConnectionFactory,name=accountingDatasource
       Depends On Me:
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=BookingListActionBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=CreditorServiceBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=DebitorServiceBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=PeriodServiceBean,service=EJB3
      
      ObjectName: jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=BookingListActionBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
      
      ObjectName: jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=CreditorServiceBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
      
      ObjectName: jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=DebitorServiceBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
      
      ObjectName: jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=PeriodServiceBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,unitName=entityManager
       State: FAILED
       Reason: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
       I Depend On:
       jboss.jca:service=ManagedConnectionFactory,name=accountingDatasource
       Depends On Me:
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=BookingListActionBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=CreditorServiceBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=DebitorServiceBean,service=EJB3
       jboss.j2ee:ear=jboss-seam-fisconet.ear,jar=jboss-seam-fisconet.jar,name=PeriodServiceBean,service=EJB3
      


        • 1. Re: 4.0.4.GA deploy problem... I think
          drapierwim

          Fecthing eager in an one to many relation causes this,

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=82946

          • 2. no point in starting another topic...
            kh2ouija

            I upgraded my 4.0.4.CR2 installation to 4.0.4.GA and when deploying my Seam app on it, I get a bunch of errors which all seem to be caused by this:

            java.lang.NoClassDefFoundError: javax/ejb/InvocationContext


            I installed it with the ejb3 profile. Is there something I need to change for this? The .ear deploys fine on CR2. Thanks.

            • 3. Re: 4.0.4.GA deploy problem... I think
              kh2ouija

              Found the answer a few topics below :( by bad.

              • 4. Re: 4.0.4.GA deploy problem... I think
                drapierwim

                This has nothing todo with previuos post but I didn't wanted to start a new topic.

                When I undeploy my app it seems that the jBPM tables aren't droped even if the hbm2dll property has been set to create-drop, Is that normal or can it be fixed?

                hibernate-configuration>
                 <session-factory>
                
                 <property name="show_sql">false</property>
                 <property name="connection.datasource">java:/accountingDatasource</property>
                 <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
                 <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
                 <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
                 <property name="hbm2ddl.auto">create-drop</property>
                 <!--property name="transaction.flush_before_completion">true</property-->
                
                 <!-- ############################################ -->
                 <!-- # mapping files with external dependencies # -->
                 <!-- ############################################ -->
                


                • 5. Re: 4.0.4.GA deploy problem... I think
                  elfuhrer

                  This is not a deployment problem this is a packaging problem. Gavin I think you should not be combining all the libraries altogether, I'd suggest that you keep the JBoss libraries as they are since those libraries especially the ejb3x.jar are changing.
                  This error is simple and I solved the problem, I have put the required libraries and changed the javax.interceptors.ActionInvocation occurences to javax.ejb.Invocation context, I have updated all the sources and now everything works fine.

                  let me know guys if more details are required

                  • 6. Re: 4.0.4.GA deploy problem... I think
                    drapierwim

                    Just for time saving I would like to have more details on the required jar stuff

                    Thanks

                    • 7. Re: 4.0.4.GA deploy problem... I think
                      elfuhrer

                      The procedure is simple, update the embedded EJB3 libraries (download the latest ones from sourceforge)
                      then in the seam source code update all the jaxax.interceptor.InvocationContext and the related class files to javax.ejb

                      this is a naming convention change.

                      • 8. Re: 4.0.4.GA deploy problem... I think
                        elfuhrer

                        The procedure is simple, update the embedded EJB3 libraries (download the latest ones from sourceforge)
                        then in the seam source code rename all the jaxax.interceptor.* to javax.ejb.* and generate your own distribution

                        this is a naming convention change.

                        • 9. Re: 4.0.4.GA deploy problem... I think
                          theute

                          The Seam CVS is in synch with 4.0.4.GA on that matter.
                          No need to rename stuff, this has already been done.

                          • 10. Re: 4.0.4.GA deploy problem... I think
                            elfuhrer

                            The CVS libraries are not in sync with JBoss-4.0.4.GA the jboss-ejb3-all.jar needs to be updated to the latest jars included in jboss-EJB-3.0_Embeddable_ALPHA_6 that can be found on sourceforge and the javax.interceptor imports need to be updated to javax.ejb otherwise the application won't deploy because of missing classes in the classpath

                            • 11. Re: 4.0.4.GA deploy problem... I think
                              elfuhrer

                              The CVS libraries are not in sync with JBoss-4.0.4.GA the jboss-ejb3-all.jar needs to be updated to the latest jars included in jboss-EJB-3.0_Embeddable_ALPHA_6 that can be found on sourceforge and the javax.interceptor imports need to be updated to javax.ejb otherwise the application won't deploy because of missing classes in the classpath

                              • 12. Re: 4.0.4.GA deploy problem... I think
                                theute

                                Please check what you say before spreading wrong info.
                                In the final spec of EJB3, ArounInvoke package and such classes has changed FROM javax.ejb TO javax.interceptor

                                I made the changes in the CVS, and i upgraded jboss-ejb3-all.jar with the latest.

                                The fact the latest release of JBoss Embedded is not compliant with the final spec is a different matter.

                                So again, if you want to run Seam on JBoss-4.0.4.GA you need to use the CVS version.

                                • 13. Re: 4.0.4.GA deploy problem... I think
                                  anttijboss

                                  I have the following setup:
                                  jboss-4.0.4.GA and I have ran the EJB3 trail succesfully. When I tried to deploy seam examples with these CVS versions I get errors from JBoss at deployment:
                                  jboss-seam-1.0beta2
                                  jboss-seam-1.0.0.CR3

                                  Thomas Heute said: "if you want to run Seam on JBoss-4.0.4.GA you need to use the CVS version" , so which version should work with GA?

                                  JBoss log while deploying:
                                  11:39:05,781 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0
                                  .4.GA/server/default/tmp/deploy/tmp34210jboss-seam-registration.ear-contents/jbo
                                  ss-seam-registration.war
                                  org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.4.GA/server/def
                                  ault/tmp/deploy/tmp34210jboss-seam-registration.ear-contents/jboss-seam-registra
                                  tion-exp.war/ deployment failed
                                  at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
                                  eployer.java:365)

                                  • 14. Re: 4.0.4.GA deploy problem... I think
                                    anttijboss

                                    Also Eclipse gives the following errors for the downloaded jboss-seam-1.0beta2 (from CVS version)

                                    Severity Description Resource In Folder Location Creation Time Id
                                    2 Project jboss-seam is missing required library: 'embedded-ejb/lib/commons-logging-api.jar' jboss-seam 29. toukokuuta 2006 11:28:30 350
                                    2 Project jboss-seam is missing required library: 'lib/cglib-2.1_2jboss.jar' jboss-seam 29. toukokuuta 2006 11:28:30 351
                                    2 The project cannot be built until build path errors are resolved jboss-seam 29. toukokuuta 2006 11:28:30 352

                                    There was a JBoss client jar alteration from RC2 to GA which prevented the EJB3Trail from deploying(it has been fixed since), is there still some similar issue in jboss-seam-1.0beta2 with GA?

                                    1 2 Previous Next