"Services with missing/unavailable dependencies" for ear/lib jars
metalsnake84 Jul 22, 2013 4:49 AMHi all. I'm porting an application from JBoss 4.2 to JBoss 7.1 on behalf of the company for which I work. I'm trying to deploy the application as standalone. The application is an exploded ear with the following structure (results of jar tf):
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
lib/
lib/acegi-security-1.0.6.jar
lib/acegi-security-tiger-1.0.6.jar
lib/activation-1.1.jar
lib/amqp-client-2.8.7.jar
lib/antlr-2.7.6.jar
lib/aopalliance-1.0.jar
lib/asm-2.2.2.jar
lib/asm-attrs-1.5.3.jar
lib/asm-commons-2.2.2.jar
lib/aspectjrt-1.5.1a.jar
lib/aspectjweaver-1.5.1a.jar
lib/axis-1.4.jar
lib/axis-jaxrpc-1.4.jar
lib/axis-saaj-1.4.jar
lib/axis-wsdl4j-1.5.1.jar
lib/backport-util-concurrent-3.0.jar
lib/cglib-nodep-2.1_3.jar
lib/cognos-axis-8.0.jar
lib/cognos-client-8.0.jar
lib/commons-attributes-api-2.1.jar
lib/commons-attributes-compiler-2.1.ja
lib/commons-beanutils-1.6.1.jar
lib/commons-cli-1.2.jar
lib/commons-collections-3.2.jar
lib/commons-dbcp-1.2.1.jar
lib/commons-digester-1.8.jar
lib/commons-discovery-0.2.jar
lib/commons-el-1.0.jar
lib/commons-lang-2.1.jar
lib/commons-pool-1.3.jar
lib/ehcache-1.3.0.jar
lib/geronimo-jta_1.0.1B_spec-1.0.1.jar
lib/groovy-1.6-beta-1.jar
lib/hibernate-3.2.0.cr2.jar
lib/hibernate-core-3.3.0.SP1.jar
lib/jamonapi-2.2.jar
lib/jcl104-over-slf4j-1.3.1.jar
lib/jep-2.4.0.jar
lib/jsr107cache-1.0.jar
lib/jug-2.0.0-asl.jar
lib/junit-3.8.1.jar
lib/ldapbp-1.2.4.jar
lib/log4j-1.2.9.jar
lib/mail-1.4.jar
lib/mockito-all-1.9.0.jar
lib/mockobjects-core-0.09.jar
lib/mule-core-1.4.1.jar
lib/mule-module-builders-1.4.1.jar
lib/mule-module-management-1.4.1.jar
lib/mule-module-spring-1.4.1.jar
lib/mule-transport-tcp-1.4.1.jar
lib/mule-transport-vm-1.4.1.jar
lib/mvclient-10.2.0.jar
lib/opencsv-2.1.jar
lib/oro-2.0.8.jar
lib/protobuf-java-2.3.0.jar
lib/quartz-1.5.2.jar
lib/slf4j-api-1.4.2.jar
lib/slf4j-log4j12-1.3.1.jar
lib/snmp-5_1.jar
lib/spring-aop-2.5.1.jar
lib/spring-beans-2.5.1.jar
lib/spring-context-2.5.1.jar
lib/spring-context-support-2.5.1.jar
lib/spring-core-2.5.1.jar
lib/spring-jdbc-2.5.1.jar
lib/spring-ldap-1.1.2.jar
lib/spring-orm-2.5.1.jar
lib/spring-test-2.5.1.jar
lib/spring-tx-2.5.1.jar
lib/spring-web-2.5.1.jar
lib/spring-webmvc-2.5.1.jar
lib/testng-5.8-jdk15.jar
lib/xmlpull-1.1.3.1.jar
lib/xpp3_min-1.1.4c.jar
lib/xstream-1.4.3.jar
alarmServices-v6.13.2.1b1_PR.jar
caServices-v6.13.2.1b1_PR.jar
commonServices-v6.13.2.1b1_PR.jar
coreFramework-v6.13.2.1b1_PR.jar
esbServices-v6.13.2.1b1_PR.jar
naServices-v6.13.2.1b1_PR.jar
saServices-v6.13.2.1b1_PR.jar
trw-transport-snmp-v6.13.2.1b1_PR.jar
userExport-v6.13.2.1b1_PR.jar
uumNotification-v6.13.2.1b1_PR.jar
uaWeb.war
When I start the server the deployment fails and in the .failed file I have the following message:
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"uaEar.ear\".PARSEjboss.deployment.subunit.\"uaEar.ear\".\"lib/spring-context-2.5.1.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/spring-ldap-1.1.2.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/axis-saaj-1.4.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/aspectjrt-1.5.1a.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/mule-transport-vm-1.4.1.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/commons-collections-3.2.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/spring-beans-2.5.1.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/hibernate-3.2.0.cr2.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/spring-orm-2.5.1.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/mule-core-1.4.1.jar\".STRUCTURE, jboss.deployment.subunit.\"uaEar.ear\".\"lib/axis-jaxrpc-1.4.jar\".STRUCTURE, .........
The complete message is in the attached file, but summarizing it seems that it needs some dependencies for all jars under ear/lib directory. Am I interpreting this message the right way? How can I solve this dependencies issue? How can I solve this problem using the jboss-deployment-structure.xml file (is it sufficient to use informations from tattletale report and insert them into the file or not)?
Any help would be really appreciated.
Thanks
Filippo
-
uaEar.ear.failed.zip 911 bytes