[jboss-jira] [JBoss JIRA] Commented: (JBAS-5022) WebAppClassLoader is not optimized for RMI
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Tue May 13 09:27:38 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5022?page=comments#action_12412599 ]
Adrian Brock commented on JBAS-5022:
------------------------------------
The Ant Compiler and URLs in general cannot work with the new classloader.
We have to use the Eclipse compiler which properly understands the classloading rules.
e.g. things a list of urls doesn't give you:
* filtered packages
* OSGi style imports and uses constraints from other deployments
* AOP enhanced classes
etc.
Having said that we should probably look at fixing this once and for all in the
JBossRMIClassLoader::getClassAnnotation()
rather having each classloader hack its own solution (which may not always be possible?)
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/main/src/main/org/jboss/system/JBossRMIClassLoader.java?revision=64576&view=markup
> WebAppClassLoader is not optimized for RMI
> ------------------------------------------
>
> Key: JBAS-5022
> URL: http://jira.jboss.com/jira/browse/JBAS-5022
> Project: JBoss Application Server
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Reporter: Adrian Brock
> Assigned To: Remy Maucherat
> Fix For: JBossAS-5.0.0.CR1
>
> Attachments: jboss-trunk.diff, jboss4.0.5.diff
>
>
> The WebAppClassLoader used by web applications to scope classes does not override
> getURLs() to return new URL[0]
> This means that if a webapp makes an RMI request using a class from inside the web app,
> all the WEB-INF/lib and WEB-INF/classes urls are sent across the wire as class annotations.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list