Link to home
Start Free TrialLog in
Avatar of cindyli
cindyli

asked on

Does Tomcat 3 get confused when there are two classes of diff version, but of same name in the class path?

Hi experts,

We are using tomcat 3 on our server, where multiple applicatons are running. Each application has its own folder under Tomcat, each folder has its own WEB-INF directory where we put our class file. Somehow, there are two application using the same classes, but different version, which means the class names are the same, but the codes are different.

Strangely, the one application which was installed on the machine earlier than the other seems "over power" the other that the newly installed application only sees the class version on the other directory, but not the one on its own WEB-INF directory. How to fix this and why?

Thanks.
Avatar of kennethxu
kennethxu

Avatar of cindyli

ASKER

thanks. I have seen this document, which talks about Tomcat 4, not Tomcat 3 though.
as I was suggesting you to update to tomcat 4. a better version.
Are you sure the class doesn't exist in the lib directory of Tomcat?
How did you change the Tomcat classpath?
Avatar of cindyli

ASKER


My understanding is you don't set classpath for Tomcat, it looks for certain directory itself. Yes, the classes do not exist in lib, but just under WEB-INF of each application.
You set the classpath before starting the server.
I assume you put the class files under WEB-INF\classes folder.
ASKER CERTIFIED SOLUTION
Avatar of jarasa
jarasa
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial