Re: Re: classloader problem

2000-02-08 Thread Robert Krüger
At 19:19 08.02.00 , Robert Krüger wrote: >>te that the above list is simplified but it demonstrates the general >>principle. In reality it is a tree - not a list, and each >>loader is a node. My recommendation is to put TunnelServlet at the >>Servlet/Beans level (usually where it belongs) and >>to

Re: Re: classloader problem

2000-02-08 Thread Robert Krüger
snip >A class is *not* (common mistake) defined by name, but by name + loader. >Lack of this knowledge is what leads to a lot of ClassCastException >questions >in various forums. The serializer does not have a problem finding the class, >it simply does object.getClass(), the deserializer however

Re: Re: classloader problem

2000-02-08 Thread Magnus Stenman
> >for magnus: it still behaves like that in 0.9.1g (you said that you'd > >fixed several classloader bugs. if this is one, it's still there) > > No, this is not a bug, this is how classloader delegation works in a JVM. I'll try expanding some on what Luke said: A class is *not* (common mis

Fwd: Re: classloader problem

2000-02-08 Thread Robert Krüger
>ups, forgot to reply to the list. > >At 16:35 08.02.00 , you wrote: >>Hi Robert, >> >>I'd get TunnelServlet out of the global classpath, and into a >>different namespace that includes everything that it wants to accept >>serialised objects for. If you need access from more namespaces, just >>h

Re: classloader problem

2000-02-08 Thread Luke Gorrie
Hi Robert, I'd get TunnelServlet out of the global classpath, and into a different namespace that includes everything that it wants to accept serialised objects for. If you need access from more namespaces, just have a different copy of TunnelServlet for each namespace - Classes are cheap. P.S.,