0 Replies Latest reply on Jun 21, 2003 11:19 AM by billelmehdi

    problem deploy second jar ejb

    billelmehdi Newbie

      Hi, I've an other prroblem. I can't deploy an other EJB jar file:

      this is ejb-jar.xml descriptor for DataJar.jar EJB:

      <?xml version="1.0"?>

      <ejb-jar>
      This is EJB descriptor for Manager Bean
      <enterprise-beans>

      LinkedNode Bean
      <display-name>LikedNode</display-name>
      <ejb-name>LinkedNode</ejb-name>
      data.LinkedNodeHome
      data.LinkedNode
      <ejb-class>data.LinkedNodeBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.Object</prim-key-class>
      False
      <ejb-ref>
      Reference to Attribute Bean
      <ejb-ref-name>ejb/SimpleAttribute</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.AttributeHome
      model.Attribute
      <ejb-link>Attribute</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to Entity Bean
      <ejb-ref-name>ejb/SimpleEntity</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.NEntiyHome
      model.NEntity
      <ejb-link>NEntity</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to Relation Bean
      <ejb-ref-name>ejb/SimpleRelation</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.RelationHome
      model.Relation
      <ejb-link>Relation</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to AttEntManager Bean
      <ejb-ref-name>ejb/AttEntManager</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      model.AttEntManagerHome
      model.AttEntManager
      <ejb-link>AttEntManager</ejb-link>
      </ejb-ref>
      <resource-ref>
      <res-ref-name>jdbc/ModelDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth> Container</res-auth>
      </resource-ref>


      <!-- The Node Bean-->


      Node Bean
      <display-name>Node</display-name>
      <ejb-name>Node</ejb-name>
      data.NodeHome
      data.Node
      <ejb-class>data.NodeBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.Object</prim-key-class>
      False
      <ejb-ref>
      Reference to Attribute Bean
      <ejb-ref-name>ejb/SimpleAttribute</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.AttributeHome
      model.Attribute
      <ejb-link>Attribute</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to Entity Bean
      <ejb-ref-name>ejb/SimpleEntity</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.NEntiyHome
      model.NEntity
      <ejb-link>NEntity</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to Relation Bean
      <ejb-ref-name>ejb/SimpleRelation</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      model.RelationHome
      model.Relation
      <ejb-link>Relation</ejb-link>
      </ejb-ref>
      <ejb-ref>
      Reference to AttEntManager Bean
      <ejb-ref-name>ejb/AttEntManager</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      model.AttEntManagerHome
      model.AttEntManager
      <ejb-link>AttEntManager</ejb-link>
      </ejb-ref>
      <resource-ref>
      <res-ref-name>jdbc/ModelDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth> Container</res-auth>
      </resource-ref>

      </enterprise-beans>
      </ejb-jar>


      this ejb uses ModelJar.jar that was deployed befor it.

      I got this message wen I attempt to deploy it:

      17:05:53,626 INFO [MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.4/server/default/deploy/DataJar.jar
      17:05:54,017 INFO [EJBDeployer]
      Bean : LinkedNode
      Method : public String ejbCreate(String, String, String) throws CreateException
      Section: 9.2.3
      Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.

      17:05:54,017 INFO [EJBDeployer]
      Bean : LinkedNode
      Method : public String ejbCreate(String, String) throws CreateException
      Section: 9.2.3
      Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.

      17:05:54,027 INFO [EJBDeployer]
      Bean : LinkedNode
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The return type of the ejbFindByPrimaryKey method must be the primary key type.

      17:05:54,027 INFO [EJBDeployer]
      Bean : LinkedNode
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The ejbFindByPrimaryKey method must be a single-object finder.

      17:05:54,027 INFO [EJBDeployer]
      Bean : LinkedNode
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The finder method return type must be either the entity bean's primary key type or an instance of the Enumeration or the Collection interface.

      17:05:54,057 INFO [EJBDeployer]
      Bean : Node
      Method : public String ejbCreate(String, String) throws CreateException
      Section: 9.2.3
      Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.

      17:05:54,057 INFO [EJBDeployer]
      Bean : Node
      Method : public String ejbCreate(String, String, String) throws CreateException
      Section: 9.2.3
      Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.

      17:05:54,067 INFO [EJBDeployer]
      Bean : Node
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The return type of the ejbFindByPrimaryKey method must be the primary key type.

      17:05:54,067 INFO [EJBDeployer]
      Bean : Node
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The ejbFindByPrimaryKey method must be a single-object finder.

      17:05:54,097 INFO [EJBDeployer]
      Bean : Node
      Method : public String ejbFindByPrimaryKey(String) throws FinderException
      Section: 9.2.5
      Warning: The finder method return type must be either the entity bean's primary key type or an instance of the Enumeration or the Collection interface.

      17:05:54,117 INFO [EjbModule] Creating
      17:05:54,267 INFO [EjbModule] Deploying LinkedNode
      17:05:54,317 INFO [EjbModule] Deploying Node
      17:05:54,447 INFO [EjbModule] Created
      17:05:54,447 INFO [EjbModule] Starting
      17:05:54,447 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=Node,service=EJB
      org.jboss.deployment.DeploymentException: Bean Relation not found within this application.
      at org.jboss.ejb.Container.setupEnvironment(Container.java:909)
      at org.jboss.ejb.Container.start(Container.java:566)
      at org.jboss.ejb.EntityContainer.start(EntityContainer.java:366)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy5.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy58.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy5.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy9.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:395)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      17:05:54,457 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=LinkedNode,service=EJB
      org.jboss.deployment.DeploymentException: Bean Relation not found within this application.
      at org.jboss.ejb.Container.setupEnvironment(Container.java:909)
      at org.jboss.ejb.Container.start(Container.java:566)
      at org.jboss.ejb.EntityContainer.start(EntityContainer.java:366)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy5.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy58.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      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 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy5.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy9.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:395)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      17:05:54,467 INFO [EjbModule] Started
      17:05:54,467 INFO [MainDeployer] Deployed package: file:/E:/jboss-3.0.4/server/default/deploy/DataJar.jar
      17:05:54,467 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@5e393cf7 { url=file:/E:/jboss-3.0.4/server/default/deploy/http-invoker.sar/invoker.war/ }
      deployer: null
      status: Starting
      state: INIT_WAITING_DEPLOYER
      watch: file:/E:/jboss-3.0.4/server/default/deploy/http-invoker.sar/invoker.war/
      lastDeployed: 1056207042606
      lastModified: 1045232549295
      mbeans:
      , org.jboss.deployment.DeploymentInfo@42dcdb4 { url=file:/E:/jboss-3.0.4/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/E:/jboss-3.0.4/server/default/deploy/jmx-console.war/
      lastDeployed: 1056207055234
      lastModified: 1056119385792
      mbeans:
      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@42dcdb4 { url=file:/E:/jboss-3.0.4/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/E:/jboss-3.0.4/server/default/deploy/jmx-console.war/
      lastDeployed: 1056207055234
      lastModified: 1056119385792
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:jndiName=Node,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Bean Relation not found within this application., ObjectName: jboss.j2ee:jndiName=LinkedNode,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Bean Relation not found within this application.]


      I think it can't find the refered ejbs.
      please give me a solution.
      Thanks.