2 Replies Latest reply on Feb 7, 2006 3:22 PM by Patrick Angeles

    error deploying seam-booking example...

    Patrick Angeles Novice

      I've got JBoss 4.0.3SP1 from the zip distribution, and I've copied the EJB3 RC5-PFD jars into the "server/all" directory, as per Bill Burke's doc and ran using "run.sh -c all"... so far so good.

      Downloaded a Seam CVS snapshot, jboss-seam-CVS20060203.zip... unzipped, built and deployed the sample jboss-seam-booking.ear file to "server/all/deploy", and I got the following exception on deployment:

      18:49:33,927 INFO [SessionFactoryImpl] closing
      18:49:33,927 INFO [SchemaExport] Running hbm2ddl schema export
      18:49:33,928 INFO [SchemaExport] exporting generated schema to database
      18:49:34,116 INFO [SchemaExport] schema export complete
      18:49:34,120 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=jboss-seam-booking.jar
      java.lang.NullPointerException
       at org.jboss.ejb3.Ejb3Deployment.getPersistenceUnitDeployment(Ejb3Deployment.java:251)
       at org.jboss.ejb3.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:205)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldDependencies(PersistenceContextHandler.java:356)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:413)
       at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
       at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:77)
       at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:406)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:457)
       at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       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:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at sun.reflect.GeneratedMethodAccessor9.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:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy27.start(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
       at sun.reflect.GeneratedMethodAccessor16.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:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      
      


      Any ideas?

        • 1. Re: error deploying seam-booking example...
          Gavin King Master

          I just tested the current CVS of booking app against the current (4.0.4rc1) CVS of JBoss, and all was working fine.

          I have not tried to install the EJB3 release in JBoss 4.0.3SP1, but I understood that Thomas had tried that out and had no problem.

          • 2. Re: error deploying seam-booking example...
            Patrick Angeles Novice

            Thanks Gavin...

            I switched strategies and decided to get 4.0.4 RC1, and that seems to be working fine with the Seam example code. I am now porting my old Seam code. Seems fairly straightforward so far, and really very easy when using Eclipse.

            For others who might be attempting to check out 4.0.4 RC1 from CVS, you want to use the command:

            cvs checkout -r JBoss_4_0_4_RC1 jboss-4.0.x

            (This caused me a bit of confusion at first, trying to figure out which module, then which label to check out.)