I'm using the TomcatService, instead of the EmbededTomcatService (that
spelling should be corrected) because it's more natural for people that
already know how to use Tomcat.

I have applied the Tomcat patch (I don't see a change either way).

My guess is that work is focused on the embedded service, so the bugs
I'm seeing using the TomcatService are not noticed.  I haven't used the
embedded service, but it sounds like it's quite a bit different.

-Kevin

> -----Original Message-----
> From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 10, 2000 6:23 PM
> To: jBoss
> Subject: RE: [jBoss-User] ClassCastException
> atcom.sun.corba.se.internal...
> 
> 
>       The new changes as in the embedded Tomcat setup with 
> the patch to
> Tomcat source and everything?  I didn't know that.  I haven't 
> worked with
> that yet.  But if that's really what you're doing, then this 
> problem is
> more serious - you should talk to Sebastien.  You're not 
> supposed to need
> the classes in Tomcat's path - it should use them directly 
> from the jBoss
> environment, if I understand correctly.
> 
> Aaron
> 
> On Tue, 10 Oct 2000, Kevin Lewis wrote:
> > Actually, I had that in, but took it out after determining that the
> > behavior didn't change.
> > 
> > I'm using JDK 1.3.  Does that interceptor still have value?
> > 
> > Part of the problem I am having is the new Tomcat 
> integration changes
> > seem to prevent Tomcat from automatically loading things in the
> > WEB-INF/lib directory.
> > 
> > I'm working around it by adding the things I need to the
> > TOMCAT_CLASSPATH (or whatever) in the run script.
> > 
> > Thanks.
> > 
> > > -----Original Message-----
> > > From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 10, 2000 3:52 PM
> > > To: jBoss
> > > Subject: RE: [jBoss-User] ClassCastException
> > > atcom.sun.corba.se.internal...
> > > 
> > > 
> > >   It sounds like you worked around this, but another 
> > > thing you could
> > > do is to add the Jdk12Interceptor to Tomcat and that 
> should solve this
> > > problem as well.  See http://www.jboss.org/tomcat.htm
> > > 
> > > Aaron
> > > 
> > > On Tue, 10 Oct 2000, Kevin Lewis wrote:
> > > > Right.  Definitely different.
> > > > 
> > > > JNDI: sun.rmi.server.LoaderHandler$Loader@27f9dc
> > > > Interface: AdaptiveClassLoader(  )
> > > > 
> > > > I added the interface directly to the Tomcat class 
> loader so that it
> > > > wasn't being loaded over by RMI, and it seems to work, now.
> > > > 
> > > > Thanks, Rickard.  I appreciate your time.
> > > > 
> > > > > -----Original Message-----
> > > > > From: Rickard �berg [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, October 10, 2000 11:40 AM
> > > > > To: jBoss
> > > > > Subject: Re: [jBoss-User] ClassCastException
> > > > > atcom.sun.corba.se.internal...
> > > > > 
> > > > > 
> > > > > Hi!
> > > > > 
> > > > > Kevin Lewis wrote:
> > > > > > Thanks for the response, Rickard.
> > > > > > 
> > > > > > So it seems reasonable that my 
> > > PortableRemoteObject.narrow would be
> > > > > > going through com.sun.corba.se.internal stuff?
> > > > > > 
> > > > > > I checked my classes, and I think they match on both sides.
> > > > > 
> > > > > Do this: when you get the object from the JNDI lookup, 
> > > print out the
> > > > > following:
> > > > > System.out.println(obj.getClass().getInterfaces()[0].getClassL
> > > > > oader());
> > > > > and
> > > > > System.out.println(theRemoteInterface.class.getClassLoader());
> > > > > 
> > > > > and see if they match.
> > > > > 
> > > > > /Rickard
> > > > > 
> > > > > > 
> > > > > > > -----Original Message-----
> > > > > > > From: Rickard �berg [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Tuesday, October 10, 2000 11:26 AM
> > > > > > > To: jBoss
> > > > > > > Subject: Re: [jBoss-User] ClassCastException
> > > > > > > atcom.sun.corba.se.internal...
> > > > > > >
> > > > > > >
> > > > > > > Hi!
> > > > > > >
> > > > > > > Kevin Lewis wrote:
> > > > > > > >
> > > > > > > > In August, Werner Ramaekers reported a problem 
> exactly like
> > > > > > > I'm having
> > > > > > > > now.
> > > > > > > >
> > > > > > > > When I do a PortableRemoteObject.narrow from Tomcat 
> > > (using the
> > > > > > > > TomcatService), I get a class cast.
> > > > > > > >
> > > > > > > > The object I'm casting is the result of a JNDI 
> lookup.  It
> > > > > > > reports to be
> > > > > > > > of type "$Proxy7", but implements the interface 
> to which I
> > > > > > > am casting (I
> > > > > > > > printed them out), so I'm thinking the lookup 
> is correct.
> > > > > > > >
> > > > > > > > Does anyone know what I am doing wrong to get 
> this problem?
> > > > > > >
> > > > > > > Most likely a classloader problem: the interface to 
> > > the bean is
> > > > > > > available in two places, and the proxy uses one and your
> > > > > > > client code the
> > > > > > > other. This will give you these types of problems.
> > > > > > >
> > > > > > > /Rickard
> > > > > > >
> > > > > > > --
> > > > > > > Rickard �berg
> > > > > > >
> > > > > > > Email: [EMAIL PROTECTED]
> > > > > > > http://www.telkel.com
> > > > > > > http://www.jboss.org
> > > > > > > http://www.dreambean.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > 
> --------------------------------------------------------------
> > > > > > > To subscribe:        [EMAIL PROTECTED]
> > > > > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > > > > Problems?:           [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > > 
> > > > > > --
> > > > > > 
> --------------------------------------------------------------
> > > > > > To subscribe:        [EMAIL PROTECTED]
> > > > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > > > Problems?:           [EMAIL PROTECTED]
> > > > > 
> > > > > -- 
> > > > > Rickard �berg
> > > > > 
> > > > > Email: [EMAIL PROTECTED]
> > > > > http://www.telkel.com
> > > > > http://www.jboss.org
> > > > > http://www.dreambean.com
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > --------------------------------------------------------------
> > > > > To subscribe:        [EMAIL PROTECTED]
> > > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > > Problems?:           [EMAIL PROTECTED]
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe:        [EMAIL PROTECTED]
> > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > Problems?:           [EMAIL PROTECTED]
> > > > 
> > > 
> > > 
> > > 
> > > --
> > > --------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Problems?:           [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Problems?:           [EMAIL PROTECTED]
> > 
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 
> 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to