[jboss-jira] [JBoss JIRA] Commented: (JBAS-5022) WebAppClassLoader is not optimized for RMI
Rᅢᄅmy-Christophe Schermesser (JIRA)
jira-events at lists.jboss.org
Tue Apr 1 06:49:40 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5022?page=comments#action_12406106 ]
Rᅢᄅmy-Christophe Schermesser commented on JBAS-5022:
----------------------------------------------------
Hi,
We had the problem of the all classpath that was sent across the network. We are using JBoss 4.0.5.
I think that I have found the method that is responsible for the problem : org.jboss.aspects.remoting.InvokeRemoteInterceptor.
In the invoke method, you just have to create a empty ClassLoader and pass it to the class org.jboss.remoting.Client.
The constructor that I am using is deprecated. So I don't know if my patch is a good one.
I will attach the patch for JBoss 4.0.5 and for the trunk later on.
Cheers
> 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
> Fix For: JBossAS-5.0.0.CR1
>
>
> 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