Unable to deploy exploded SAR with module dependencies
prashanto.chatterjee Apr 19, 2013 1:46 AMHi,
I am facing some starter problems using JBoss AS 7. Please pardon my ignorance if this has been answered earlier. I searched the forum and searched the web and after 4 days of toil I resorted to posting on the forum.
I am trying to deploy an exploded SAR with compiled classes. The compiled classes have a dependency on a few JARs that I have placed under a module 'xyz.common'. In my SAR, I have added jboss-deployment-structure.xml as follows:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="xyz.common" export="true" />
</dependencies>
</deployment>
</jboss-deployment-structure>
When I try to deploy the SAR, I am getting the following exception:
10:27:48,224 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "AAATMProp.sar"
10:27:48,391 ERROR [stderr] (MSC service thread 1-2) java.lang.ClassNotFoundException: com/avaya/mgmt/trust/data/TMClientInventory_Header
10:27:48,392 ERROR [stderr] (MSC service thread 1-2) Continuing ...
10:27:48,394 ERROR [stderr] (MSC service thread 1-2) java.lang.NoSuchMethodException: <unbound>=XMLDecoder.new();
10:27:48,394 ERROR [stderr] (MSC service thread 1-2) Continuing ...
10:27:48,395 ERROR [stderr] (MSC service thread 1-2) java.lang.IllegalStateException: The outer element does not return value
10:27:48,395 ERROR [stderr] (MSC service thread 1-2) Continuing ...
10:27:48,396 ERROR [stderr] (MSC service thread 1-2) java.lang.IllegalStateException: The outer element does not return value
10:27:48,396 ERROR [stderr] (MSC service thread 1-2) Continuing ...
The class is present in one of the JARs that I have packaged under the 'xyz.common' module.
Can someone kindly point out what I have missed out? I am stuck for the last few days and no amount of searching on the web and pouring through the documentation has helped.
My SAR structure is as follows:
deployments
- AAATMProp.sar
- com
- <compiled classes>
- META-INF
- jboss-deployment-structure.xml
- jboss-service.xml
- MANIFEST.MF
The manifest file does not contain any dependencies or classpath settings.
Regards,
Prashanto Chatterjee