[
https://issues.jboss.org/browse/AS7-2595?page=com.atlassian.jira.plugin.s...
]
Mike Clark updated AS7-2595:
----------------------------
Workaround Description:
One has two options to work around the problem. One is to place the classes in the root,
outside a jar archive:
mbean.sar
mbean.sar/META-INF
mbean.sar/META-INF/jboss-service.xml
mbean.sar/META-INF/MANIFEST.MF
mbean.sar/some/company/JmxThing.class
mbean.sar/some/company/JmxThingMBean.class
or one can add a jboss-deployment-structure.xml to the sar's META-INF:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.module.nested"/>
</dependencies>
</deployment>
<module name="deployment.module.nested">
<resources>
<resource-root path="some.jar"/>
</resources>
</module>
</jboss-deployment-structure>
was:
One has two options to work around the problem. One is to place the classes in the root,
outside a jar archive:
mbean.sar
├── some/company/JmxThing.class
├── some/company/JmxThingMBean.class
└── META-INF
├── jboss-service.xml
└── MANIFEST.MF
or one can add a jboss-deployment-structure.xml to the sar's META-INF:
jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.module.nested"/>
</dependencies>
</deployment>
<module name="deployment.module.nested">
<resources>
<resource-root path="some.jar"/>
</resources>
</module>
</jboss-deployment-structure>
Workaround: Workaround Exists
Description:
In previous versions, a sar archive includes classes in the sar archive's root on the
sar's classpath. It is quite common to have a structure such as:
mbean.sar
mbean.sar/META-INF
mbean.sar/META-INF/jboss-deployment-structure.xml
mbean.sar/META-INF/jboss-service.xml
mbean.sar/META-INF/MANIFEST.MF
mbean.sar/mbean.jar
However, this does not work. The classes in some.jar are not available.
was:
In previous versions, a sar archive includes classes in the sar archive's root on the
sar's classpath. It is quite common to have a structure such as:
mbean.sar
├── some.jar
└── META-INF
├── jboss-service.xml
└── MANIFEST.MF
However, this does not work. The classes in some.jar are not available.
Jars in root of a sar archive not added to the sar's classpath
--------------------------------------------------------------
Key: AS7-2595
URL:
https://issues.jboss.org/browse/AS7-2595
Project: Application Server 7
Issue Type: Bug
Components: Deployment
Affects Versions: 7.1.0.Final
Reporter: Mike Clark
Assignee: Thomas Diesler
In previous versions, a sar archive includes classes in the sar archive's root on the
sar's classpath. It is quite common to have a structure such as:
mbean.sar
mbean.sar/META-INF
mbean.sar/META-INF/jboss-deployment-structure.xml
mbean.sar/META-INF/jboss-service.xml
mbean.sar/META-INF/MANIFEST.MF
mbean.sar/mbean.jar
However, this does not work. The classes in some.jar are not available.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira