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
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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 40 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

Industry Leaders: 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

Suggested Solutions

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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