2 Replies Latest reply on Oct 16, 2001 1:21 AM by Michael Magnaye

    EJB Deployment Failed in JBoss

    koundinya Newbie

      Hi Guys,

      When I try to deploy the student.jar(Bean) in JBoss I got following errors and deployment failed.What
      could be the problem for the failure and how to rectify the problem



      [AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/deploy/student.jar
      [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/deploy/student.jar
      [J2eeDeployer] Create application student.jar
      [J2eeDeployer] install EJB module student.jar
      [Container factory] Deploying:file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/student.jar
      [Verifier] Verifying file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/student.jar/ejb1005.jar
      [Verifier]
      Bean : statelessSession
      Section: 9.2.2
      Warning: The entity bean's class must implement, directly or indirectly, the javax.ejb.EntityBean interface.

      [Verifier]
      Bean : statelessSession
      Method : public void ejbCreate()
      Section: 9.2.3
      Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.

      [Verifier]
      Bean : statelessSession
      Method : public void ejbCreate()
      Section: 9.2.4
      Warning: For each ejbCreate(...) method, the entity bean class must define a matching ejbPostCreate(...)
      method.

      [Verifier]
      Bean : statelessSession
      Section: 9.4.7.1
      Warning: The primkey-field element must name a public field in the bean implementation class.





      [Container factory] org.jboss.ejb.DeploymentException: Bean student.StudentBean not found within this
      application.
      [Container factory] at org.jboss.ejb.Container.setupEnvironment(Container.java:480)
      [Container factory] at org.jboss.ejb.Container.init(Container.java:356)
      [Container factory] at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:152)
      [Container factory] at org.jboss.ejb.Application.init(Application.java:202)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Container factory] at $Proxy0.start(Unknown Source)
      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.Main.(Main.java:221)
      [Container factory] at org.jboss.Main$1.run(Main.java:127)
      [Container factory] at java.security.AccessController.doPrivileged(Native Method)
      [Container factory] at org.jboss.Main.main(Main.java:123)
      [J2EE Deployer Default] Starting student.jar failed!


      ThanX in advance
      Sudhakar