0 Replies Latest reply on Aug 5, 2011 6:33 AM by pankti.joshipura

    jboss version upgradation issues

    pankti.joshipura

      Hi,

       

      I am trying to deploy my old application written in EJB2 on JBOSS 6x. Earlier we were using JBOSS 3.2.6 and things were running smoothly. Now while migrating to JBOSS 6, my EAR was deployed smoothly but SAR is not getting deployed. SAR has dependency on EAR for client jars as there is a call going from SAR to EAR. Following error is thrown as I put following tag in my jboss-service.xml of SAR

       

      <depends>jboss.j2ee:ear=1rating.ear,jar=rating-ejb.jar,name=rating-ejb,service=EJB3</depends>

       

      ERROR:

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss:service=EliteRatingServiceManager" is missing the following dependencies:
          Dependency "jboss.j2ee:ear=1rating.ear,jar=rating-ejb.jar,name=rating-ejb,service=EJB3" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=1rating.ear,jar=rating-ejb.jar,name=rating-ejb,service=EJB3' **")

      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:ear=1rating.ear,jar=rating-ejb.jar,name=rating-ejb,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=1rating.ear,jar=rating-ejb.jar,name=rating-ejb,service=EJB3' **

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
      at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartSer

       

      Now, if I remove this <depends> tag it gives me NoClassDefFoundError in start() method of MBean which makes call to one of the class file available in rating-ejb.jar which is lying in 1rating.ear

       

      Can anyone guide me on this? I would be highly obliged.