Exclude JMX-RI from jar file?
Brought to you by:
chrisco500,
crsadun
When I deploy jpoller the ManagedDirectoryPoller as a SAR on JBoss 4.0.5, I need to exclude jmxri.jar from jpollmgt.jar, because these classes interfere with JBoss JMX implementation.
The initial problem was that preRegister() was not being called and so the ObjectName was not being set, and an exception thrown.
Further debugging showed that the javax.management.* classes were being loaded by two seperate classloaders, leading to incompatible versions of the same classes.
It might be worth considering an option in the build.xml to not include jmxri.jar in jpollmgt.jar. I don't it's correct to tie in Sun's Reference Implementation of JMX.
Logged In: YES
user_id=15880
Originator: NO
You have a point there. The issue is to have the JMX interfaces ready at compile time with pre-jdk1.5 SDKs. I'll check it out for the next release.