Patch posted to JIRA, but the patchdir option has me stumped. The fix works, 
since if I replace the class directly in $JBOSS_HOME/lib/jboss-jmx.jar, my 
program works correctly. However, if i make a jar with the corrected class, put 
the jar in a patches directory and use the --patchdir option, the program still 
throws the ClassCastException => the override isn't happening. Nevertheless, 
the boot.log shows that the Boot url list contains both my patches directory 
and my patch jar file and that a UnifiedClassLoader is created for the patch 
jar file.

Actually, I don't understand how the override is supposed to work. The UCL of 
the patch jar has the boot URL class loader as its parent. This parent loader 
is explicitly given the $JBOSS_HOME/lib/jboss-jmx.jar as a URL to work from. If 
the UCL defers to its parent, doesn't that mean that the 
$JBOSS_HOME/lib/jboss-jmx.jar will always win out over a class with the same 
name in the patch jar? Any help would be appreciated. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859695#3859695

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859695


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to