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
196 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
Comment Utility
0
 

Author Comment

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

Expert Comment

by:kennethxu
Comment Utility
as I was suggesting you to update to tomcat 4. a better version.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 9

Expert Comment

by:vzilka
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now