0 Replies Latest reply on Apr 16, 2002 10:52 AM by De Bosscher Nicolas

    My bean can't deploy

    De Bosscher Nicolas Newbie

      I write a bean from an example in an wrox book and I have this message :
      My JDK is 1.4.0 and my Jboss 2.4.4

      [INFO,AutoDeployer] Auto deploy of file:/usr/local/JBoss-2.4.4/deploy/toto.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/usr/local/JBoss-2.4.4/deploy/toto.jar
      [INFO,J2eeDeployer] Create application toto.jar
      [INFO,J2eeDeployer] install EJB module ejb-jar-ic3.jar
      [INFO,J2eeDeployer] add all ejb jar files to the common classpath
      [INFO,ContainerFactory] Deploying:file:/usr/local/JBoss-2.4.4/tmp/deploy/Default/toto.jar
      [INFO,ContainerFactory] Deploying bonjour
      [ERROR,ContainerFactory] DeploymentError
      java.lang.ClassCastException: $Proxy2
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.getEJBLocalHome(BaseLocalContainerInvoker.java:180)
      at org.jboss.ejb.Container.init(Container.java:357)
      at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:152)
      at org.jboss.ejb.Application.init(Application.java:202)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [ERROR,J2eeDeployer] Starting toto.jar failed!
      [ERROR,Default] java.lang.NullPointerException
      [ERROR,Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.stop(JRMPContainerInvoker.java:318)
      [ERROR,Default] at org.jboss.ejb.StatelessSessionContainer.stop(StatelessSessionContainer.java:220)
      [ERROR,Default] at org.jboss.ejb.Application.stop(Application.java:231)
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:400)
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      [ERROR,Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      [ERROR,Default] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      [ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      [ERROR,Default] at $Proxy0.start(Unknown Source)
      [ERROR,Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR,Default] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR,Default] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR,Default] at java.lang.reflect.Method.invoke(Method.java:324)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default] at org.jboss.Main.(Main.java:208)
      [ERROR,Default] at org.jboss.Main$1.run(Main.java:110)
      [ERROR,Default] at java.security.AccessController.doPrivileged(Native Method)
      [ERROR,Default] at org.jboss.Main.main(Main.java:106)
      [INFO,J2eeDeployer] Module toto.jar is not running
      [INFO,J2eeDeployer] Destroying application toto.jar
      [ERROR,AutoDeployer] DeploymentInfo failed:file:/usr/local/JBoss-2.4.4/deploy/toto.jar
      org.jboss.deployment.J2eeDeploymentException: Error while starting toto.jar: null, Cause: java.lang.NullPointerException
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:530)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      Caused by: java.lang.NullPointerException
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.stop(JRMPContainerInvoker.java:318)
      at org.jboss.ejb.StatelessSessionContainer.stop(StatelessSessionContainer.java:220)
      at org.jboss.ejb.Application.stop(Application.java:231)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:400)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      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:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      ... 30 more