0 Replies Latest reply on Jul 18, 2006 4:34 AM by seema seema

    deployment of EJB in jboss 4

    seema seema Newbie

      I am learning EJB from one of the book and got stuck on the deployment of first EJB . It is stateful Session Bean
      the jboss.xml is

      <?xml version="1.0" encoding = UTF-8" ?>



      <enterprise-beans>

      <ejb-name>SignOnEJB</ejb-name>
      <jndi-name>day05/SignOnHome</jndi-name>

      </enterprise-beans>





      ejb-jar.xml is

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE ejb-jar
      PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise Javabeans 2.0//EN"
      "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>SignOnEJB</ejb-name>
      day05.SignOnHome
      day05.SignOn
      <ejb-class>day05.SignOnEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <env-entry>
      <env-entry-name>student</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>password</env-entry-value>
      </env-entry>
      <env-entry>
      <env-entry-name>student1</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>password1</env-entry-value>
      </env-entry>


      </enterprise-beans>

      </ejb-jar>



      This book is Jboss 3 and I am using JBoss 4.0.4

      when I deploy my ejb jar file (day05-signon.jar) which is having all class file and Meta-INf
      I got error message

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@4c050b2b { url=file:/C:/jboss-4.0.4/jboss-4.
      0.4.GA/server/default/deploy/day05_Signon.jar }
      deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
      status: null
      state: FAILED
      watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/day05_Signon.
      jar
      altDD: null
      lastDeployed: 1153249201578
      lastModified: 1153249201546
      mbeans:

      org.jboss.deployment.DeploymentInfo@592997e2 { url=file:/C:/jboss-4.0.4/jboss-4.
      0.4.GA/server/default/deploy/META-INF/ejb-jar.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/META-INF/ejb-
      jar.xml
      altDD: null
      lastDeployed: 1153249202656
      lastModified: 1153249202656
      mbeans:

      org.jboss.deployment.DeploymentInfo@2070e0ce { url=file:/C:/jboss-4.0.4/jboss-4.
      0.4.GA/server/default/deploy/META-INF/jboss.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/META-INF/jbos
      s.xml
      altDD: null
      lastDeployed: 1153249202656
      lastModified: 1153249202656
      mbeans:


      12:00:03,031 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
      -8080
      12:00:03,265 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      12:00:03,390 INFO [JkMain] Jk running ID=0 time=0/172 config=null
      12:00:03,406 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos


      Pls help .