well, for some reason it happens,
 
if the classes are the same name, it will pick up class from another
application.
could it be because I have CLASSPATH set on the system (linux env.
variable) level to both packages (to /fred and to /bob) ?
shoudl I remove that?
 
thanks for your prompt answer
 
-----Original Message-----
From: Sam Newman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, April 17, 2001 1:06 PM
Subject: Re: question about CLASSPATH

Tomcats special classloader should only access classes for each webapp under your webapp directory. You don't have to worry about classes in webapps/bob/WEB-INF/classes picking up webapps/fred/WEB-INF/classes for example.
 
sam
----- Original Message -----
Sent: Tuesday, April 17, 2001 5:37 PM
Subject: question about CLASSPATH

When setting up different applications in server.xml for an instance of tomcat,
is there a way to setup different CLASSPATH for each application?
Is there are way to setup CLASSPATH to be "application" specific.
For example, if I have two different applications
 
.../jakarta-tomcat/webapps/prod... and
.../jakarta-tomcat/webapps/test...
 
Can I have tomcat use different CLASSPATH for each.
For example, if beyond these directories I have a packages:
.../jakarta-tomcat/webapps/prod/WEB-INF/classes/package
.../jakarta-tomcat/webapps/test/WEB-INF/classes/package
 
and my classes in package are the same, just different versions (like test and prod instances)
how can I make tomcat to use classes from /prod/...package
when I use URL:
http://something/prod/jsp1.jsp - use classes from prod/.../package and
http://something/test/jsp1.jsp - use classes from test/...package
 
Assuming that in my classes (all of them) I use the same import,
import package.*
 
Please help...
Thanks.
 

Reply via email to