2 Replies Latest reply on Feb 5, 2009 11:23 AM by jaikiran pai

    ejb2.x deployment exception jboss 5

    Heiko Heiko Newbie

      upgrading from 4.0.2 to 5.0.0.ga. jboss can't find the local interfaces (ArbeitsstationLocal) referenced to another ejb in an other archive.

      *** CONTEXTS IN ERROR: Name -> Error

      vfszip:/D:/jboss5/server/default/deploy/170Formular.jar -> java.lang.IllegalStateException: Failed to find ContainerDependencyMeta
      Data for interface: de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocal

      inside the ejb-jar.xml, the 170Formular.jar hold a reference to another jar archive (150Anwender.jar#Arbeitsstation):
      ...
      <ejb-local-ref >
      <ejb-ref-name>ejb/Arbeitsstation</ejb-ref-name>
      <ejb-ref-type>Entity</ejb-ref-type>
      <local-home>de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocalHome</local-home>
      de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocal
      <ejb-link>150Anwender.jar#Arbeitsstation</ejb-link>
      </ejb-local-ref>
      ...
      the ejb declaration in ejb-jar.xml for 150Anwender.jar#Arbeitsstation:
      ...

      <![CDATA[EntityBean einer Arbeitsstation.]]>

      <ejb-name>Arbeitsstation</ejb-name>

      de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationHome
      de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationRemote
      <local-home>de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocalHome</local-home>
      de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocal

      <ejb-class>de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationBean</ejb-class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationPK</prim-key-class>
      false
      <resource-ref>
      SAP DB Datenbank
      <res-ref-name>jdbc/SAPDBDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>




      ...

      are ther any conditions to run ejb 2.x jar's in jboss 5.0.0?

      regards

        • 1. Re: ejb2.x deployment exception jboss 5
          Heiko Heiko Newbie

          More information:
          The ejb-jar.xml dtd is:

          <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">


          JBoss deploy info for the bean ArbeitsstationLocal:

          15:02:13,005 INFO [EjbDeployer] installing bean: ejb/#Arbeitsstation,uid31466646
          15:02:13,005 INFO [EjbDeployer] with dependencies:
          15:02:13,005 INFO [EjbDeployer] and supplies:
          15:02:13,005 INFO [EjbDeployer] jndi:Anwender/Arbeitsstation
          15:02:13,005 INFO [EjbDeployer] jndi:Anwender/ArbeitsstationLocal


          The Stacktrace:
          15:02:02,881 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/D:/jboss5/server/default/deploy/17
          0Formular.jar state=ClassLoader mode=Manual requiredState=PostClassLoader
          org.jboss.deployers.spi.DeploymentException: java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for inter
          face: de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocal
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.internalDeploy(MappedReferenceMetaDataResolverDeployer.jav
          a:159)
           at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
           at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentLast(DeployersImpl.java:1299)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1100)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
           at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
           at org.jboss.Main.boot(Main.java:209)
           at org.jboss.Main$1.run(Main.java:547)
           at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for interface: de.gsd.amasys.server.modules
          .anwender.entities.ArbeitsstationLocal
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.resolveEjbInterface(MappedReferenceMetaDataResolverDeploye
          r.java:1146)
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.resolveEjbLocalRefs(MappedReferenceMetaDataResolverDeploye
          r.java:877)
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.resolve(MappedReferenceMetaDataResolverDeployer.java:743)
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.resolve(MappedReferenceMetaDataResolverDeployer.java:768)
           at org.jboss.deployment.MappedReferenceMetaDataResolverDeployer.internalDeploy(MappedReferenceMetaDataResolverDeployer.jav
          a:155)
           ... 20 more
          


          And the deployment summary:
          15:02:14,598 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DE
          TAILS):
          
          *** CONTEXTS IN ERROR: Name -> Error
          
          vfszip:/D:/jboss5/server/default/deploy/170Formular.jar -> java.lang.IllegalStateException: Failed to find ContainerDependencyMeta
          Data for interface: de.gsd.amasys.server.modules.anwender.entities.ArbeitsstationLocal


          somebody an idea?
          regards