Thank you for your replies, yogi and Jean.
Jean, I did the simple tests you suggested and both tests returned
false, indeed. So, those two classes come from different class loaders.
However, all external jars are already in WEB-INF/lib folder, so I
don't understand why both classes aren't loaded by the same class
loader.
Regards,
LA
> > ps instanceof DelegatingPreparedStatement is false
>
[quoted text clipped - 18 lines]
>
> Regards
Luís Amorim - 18 Sep 2006 16:12 GMT
Strange thing happened. I just deleted the jar that includes the
DelegatingPreparedStatement class from the WEB-INF/lib folder and now
the tests return true, which means both classes have been loaded by the
same class loader.
Oh well...
> Thank you for your replies, yogi and Jean.
>
[quoted text clipped - 30 lines]
> >
> > Regards
Andrea Desole - 19 Sep 2006 09:06 GMT
> Strange thing happened. I just deleted the jar that includes the
> DelegatingPreparedStatement class from the WEB-INF/lib folder and now
> the tests return true, which means both classes have been loaded by the
> same class loader.
>
> Oh well...
be careful. If it's still working it means that you are using the
Tomcat's jar. This can be good for you if you are using only Tomcat, but
your application might not work on other servers.
You should look better at how class loading in Tomcat works. There is
probably a way to tell Tomcat to load your jar file instead of the server's