Hi,
I am trying to deploy a WAR which has a dependency on ASM 4.0, which has been packaged in its web-inf/lib directory. The issue I am having is that it seems to be picking up the version defined in the jboss 7 modules which is ASM 3.3.1. As a result I get the following error when trying to enable the application:-
"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test-2.0-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test-2.0-SNAPSHOT.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"test-2.0-SNAPSHOT.war\"
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"test-2.0-SNAPSHOT.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"test-2.0-SNAPSHOT.war\".beanmanager]"]
I have tried adding a jboss-deployment-structure.xml config file to the web-inf folder of the war with the following entry defined:-
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<exclusions>
<module name="asm.asm" />
</exclusions>
<dependencies>
<module name="deployment.asm" />
</dependencies>
</deployment>
<module name="deployment.asm" >
<resources>
<resource-root path="asm-4.0.jar" />
</resources>
</module>
</jboss-deployment-structure>
This didn't make the slightest difference. Does anyone have any suggestions - am I barking up the wrong tree? Any help would be much appreciated.
Cheers