-
Bug
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.2
-
None
-
Most likely all JBoss 5.x before EAP 5.1.3
-
Release Notes
-
-
Documented as Resolved Issue
-
NEW
A *-service.xml that defines a classpath, who archive contains a META-INF/MANIFEST.MF Class-Path referencing another jar does not get added to the classpath of the *-service.xml.
Testing show that the classpath is added if done with an ear containing a war and jars, and also the test worked in JBoss EAP 4.x.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE server PUBLIC
"-//JBoss//DTD MBean Service 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_5_0.dtd">
<server>
<classpath codebase="test" archives="x.jar"/>
<mbean code="com.jboss.examples.mbean.SimpleMBean"
name="com.jboss.examples.mbean:service=SimpleMBean"/>
</server>
Setup put jars here
$JBOSS_HOME/server/$PROFILE/test/x.jar
$JBOSS_HOME/server/$PROFILE/test/z.jar
Deploy a test mbean with the xml above that references the x.jar but not the z.jar. The z.jar is listed in the MANIFEST.MF of the Class-Path of the x.jar.
$JBOSS_HOME/server/$PROFILE/deploy/test-service.xml