This problem is not resolved, afaik. The "solution" is to put your
classes/libs in the CLASSPATH under :gotTomcatHome in run.bat. That
way, JNP (or whatever) won't try to remotely load your classes, so there
won't be any class cast problems.
We've been doing it this way since it broke around the beginning of Oct.
Good luck. Let me know if you have more troubles.
> -----Original Message-----
> From: Vincent Sheffer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 20, 2000 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Tomcat ClassLoader Problem
>
>
> I've looked at the archives and see that others were having a
> problem with
> classloaders when using Tomcat.
>
> I get a ClassCastException: $Proxy0 (and a long fairly
> meaningless stack trace)
> when I try to cast my home object (actually the proxy) to the
> interface after
> getting it from a JNDI lookup.
>
> In one of the emails in the archive, Rickard suggests printing out the
> classloader for both the proxy and the interface. When I do
> that I get the
> following:
>
> cl(proxy) = java.net.URLClassLoader@4b6009
> cl(remote) = AdaptiveClassLoader( )
>
> Clearly different classloaders. I've checked and
> AdaptiveClassLoader is
> from Tomcat. So, Tomcat loads my remote interface and JBoss
> is loading the
> proxy. How do I rectify this situation?
>
> I've put my classes everywhere I can think of
> (WEB-INF/classes, in a jar file
> in WEB-INF/lib, and in a jar file added to the main classpath
> for the JVM --
> that is, in the run.sh file) and always get the same result.
>
> I couldn't find where anyone had resolved this issue. If
> anyone has resolved
> it, I would greatly appreciate assistance.
>
> Oh, yeah, I'm using Tomcat 3.2 beta6 (jBoss is from CVS a
> couple of days
> ago) and I've got the following specified in the server.xml file.
> <RequestIntercetor
> className="org.apache.tomcat.request.Jdk12Interceptor"
> debug="0"/>
>
> Thanks
> Vince
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]