classloader in tomcat

M

Mr. Miguel

I've extended ClassLoader and we use it from our servlets to load custom
validation classes. We just moved from an IIS running java (all M$ stuff) to
using tomcat. For some reason the classloader doesn't seem to work. The
classes do compile properly without any problems. Is there some obvious
problem with what I'm trying to do?
 
L

Lee Fesperman

Mr. Miguel said:
I've extended ClassLoader and we use it from our servlets to load custom
validation classes. We just moved from an IIS running java (all M$ stuff) to
using tomcat. For some reason the classloader doesn't seem to work. The
classes do compile properly without any problems. Is there some obvious
problem with what I'm trying to do?

You didn't clarify at all what "doesn't seem to work" meant, so the most obvious
consideration is that Tomcat runs its own configuration of classloaders. This could have
implications for your classloader. Check their docs; they're decent enough about
their classloaders.
 
M

Miguel De Anda

Mr. Miguel said:
I've extended ClassLoader and we use it from our servlets to load custom
validation classes. We just moved from an IIS running java (all M$ stuff) to
using tomcat. For some reason the classloader doesn't seem to work. The
classes do compile properly without any problems. Is there some obvious
problem with what I'm trying to do?

The reason for the errors is that it can't find the files. I was just
thinking about it, and I'm no longer sure if this is what I need. I'm
creating a new post for this issue. The title for it will be "ClassLoader or
Class.newInstance" (for anybody interested)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top