?
Solved

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

Posted on 2003-12-11
7
Medium Priority
?
209 Views
Last Modified: 2011-09-20
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.
0
Comment
Question by:cindyli
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9925299
0
 

Author Comment

by:cindyli
ID: 9925480
thanks. I have seen this document, which talks about Tomcat 4, not Tomcat 3 though.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9925507
as I was suggesting you to update to tomcat 4. a better version.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 9

Expert Comment

by:vzilka
ID: 9930034
Are you sure the class doesn't exist in the lib directory of Tomcat?
How did you change the Tomcat classpath?
0
 

Author Comment

by:cindyli
ID: 9932355

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.
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9936929
You set the classpath before starting the server.
I assume you put the class files under WEB-INF\classes folder.
0
 
LVL 6

Accepted Solution

by:
jarasa earned 120 total points
ID: 10001534
Tomcat as many servers caches classes so it doesn't have to load them in memory everytime they are used, if the problem is with a packege you made you should consider changin the package name, you can use garbage collector but if the applications are being used at the same time, is hard to tell if the class will be dropped, if the class is from a comercial package you should just update the old one. It should work with the new one.
Javier
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I came across an unsolved Outlook issue and here is my solution.
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
Integration Management Part 2
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question