10 Replies Latest reply: May 11, 2012 3:46 AM by jaikiran pai RSS

errors migrating EAR from 4.2.3 to 7.1.1 final (New missing/unsatisfied dependencies)

pep grifell Newbie

hi,

 

we have an EAR with some WARS and JARS (some with EJB 2.1). I have created a EAR/lib folder and moved there all the nonEJB JARS.  If a EJB JAR has in its MANIFEST.MF file the following classpath:

 

Class-Path: framework.jar

 

and I have moved the framework.jar to EAR/lib ... Does I have to modify the classpath to:

 

 Class-Path: ./lib/framework.jar

 

When deploying the EAR I get these errors:

 

BAS014775:    New missing/unsatisfied dependencies:
      service jboss.module.spec.service."deployment.systao.ear.framework.jar".main (missing) dependents: [service jboss.module.service."deployment.systao.ear.AgendaEJB.jar".main, service jboss.module.service."deployment.systao.ear.EventsListenerEJB.jar".main, service jboss.module.service."deployment.systao.ear.RemoteProcessorWeb.war".main, service jboss.module.service."deployment.systao.ear.LISWeb.war".main, JBAS014799: ... and 15 more ] 

10:39:28,847 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.module.service.\"deployment.systao.ear.AgendaEJB.jar\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".mainMissing[jboss.module.service.\"deployment.systao.ear.AgendaEJB.jar\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".main]","jboss.module.service.\"deployment.systao.ear\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".mainMissing[jboss.module.service.\"deployment.systao.ear\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".main]","jboss.module.service.\"deployment.systao.ear.EventsListenerEJB.jar\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".mainMissing[jboss.module.service.\"deployment.systao.ear.EventsListenerEJB.jar\".mainjboss.module.spec.service.\"deployment.systao.ear.framework.jar\".main]"...

 

It seems like all these jars are missing framework.jar...

 

By now I have not included a jboss-deployment-structure.xml in EAR/META-INF. It's mandatory to include one ?

 

I tried also to create a module (modules/com/nte/framework/main including module.xml and framework.jar) and reference it in MANIFEST.MF as

 

Dependencies:  com.nte.framework

 

<module xmlns="urn:jboss:module:1.0" name="com.nte.framework">
  <resources>
    <resource-root path="framework.jar"/>
  </resources>
  <dependencies>
  </dependencies>  
</module>

 

but I get the same errors.

 

Any clue about this error ? 

 

thanks in advance.