[ http://jira.jboss.com/jira/browse/JBJMX-82?page=comments#action_12315344 
]
     
Adrian Brock commented on JBJMX-82:
-----------------------------------

So the problem is that the property editor uses the context classloader
which I would think is the classloader of the sar deployer?

When it should be using the deployment classloader from the loaderName.

That looks like a reasonable fix to me.

I see you are correctly only switching the context for the callout
to the property editor. Otherwise you could confuse the core
deployer into loading the wrong classes from the isolated deployment.

This highlights another problem I was already aware of.

The PropertyEditorManager being a global singleton has no
notion of being able to override or even use property editors
from isolated deployments inside the application.

> MBean attribute classes not loaded with deployment classloader
> --------------------------------------------------------------
>
>          Key: JBJMX-82
>          URL: http://jira.jboss.com/jira/browse/JBJMX-82
>      Project: JBoss JMX
>         Type: Bug
>     Versions: JBossAS-3.2.6, JBossAS-3.2.7
>  Environment: Windows XP SP2, j2sdk_1.4.2_07
>     Reporter: Tomas Carlsson
>  Attachments: jmxbug.ear, jmxbug.patch.gz
>
>
> If an MBean descriptor contains attributes that is of type Class, these 
> classes will not be loaded using the deployment classloader. If using a 
> private <loader-repository> for an ear that contains a sar the deployment 
> will fail if the MBean descriptor references a class that is only available 
> in the ear or sar.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to