Omar Vega [
https://community.jboss.org/people/ovegag] created the discussion
"Re: How do I make RAR classes visible to separate EAR modules? JBoss 7.1.1.Final,
IronJacamar 1.0.16.Final, JDK 6"
To view the discussion, visit:
https://community.jboss.org/message/816611#816611
--------------------------------------------------------------
After a careful reading
https://community.jboss.org/message/626315#626315
https://community.jboss.org/message/626315#626315 and
https://community.jboss.org/thread/219118 https://community.jboss.org/thread/219118 and
https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 I was able to fix the
issue above by modifying the jboss-deployment-structure.xml on the EAR file as well as the
jboss-deployment-structure.xml on the RAR.
The contents of the jboss-deployment-structure.xml file on the RAR
(sevensys-cloud-adapter-aws.rar):
*<?xml version="1.0" encoding="UTF-8"?>*
*<jboss-deployment-structure>*
* <deployment>*
* <exports>*
* <include path="mx/sevensys/cloud/api**"
/>*
* <include path="org/jclouds**" />*
* </exports>*
* <dependencies>*
* <module name="javax.inject.api"/>*
* <module name="javax.ws.rs.api"/>*
* <module name="javax.annotation.api"/>*
* </dependencies>*
* </deployment>*
*</jboss-deployment-structure>*
The contents of the jboss-deployment-structure.xml file on the EAR:
*<?xml version="1.0" encoding="UTF-8"?>*
*<jboss-deployment-structure>*
* <ear-subdeployments-isolated>false</ear-subdeployments-isolated>*
* <sub-deployment name="sample-ear-ejb.jar">*
* <dependencies>*
* <module name="deployment.sevensys-cloud-adapter-aws.rar"/>*
* </dependencies>*
* </sub-deployment>*
*</jboss-deployment-structure>*
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/816611#816611]
Start a new discussion in IronJacamar at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]