2 context
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zheng_yu
Posted On:   Monday, July 23, 2001 01:51 AM

Tomcat 3.2.1 + linux 6.2 I have installed Tomcat and it works fine . Today i add 2 similar context to server.xml ( say one is cweb , the other is sytlib ) . And i copy the same servlet class file to its directory( .../WEB-INF/classes/) , then i update my servlet source .( say change background color form white to blue ) ,and i only copy the new class to cweb context . that means old class under sytlib context is not overwritten . Then i input some url to test my servlet .when i input "http://..../cweb/servlet/Calendar" , it seems ok , background is blue . but when i input "http://.../sytlib/servlet/Calendar" , its background become blue too . I dont know why , c   More>>

Tomcat 3.2.1 + linux 6.2


I have installed Tomcat and it works fine . Today i add 2 similar context to server.xml ( say one is cweb , the other is sytlib ) .


And i copy the same servlet class file to its directory( .../WEB-INF/classes/) , then i update my servlet source .( say change background color form white to blue ) ,and i only copy the new class to cweb context . that means old class under sytlib context is not overwritten .


Then i input some url to test my servlet .when i input "http://..../cweb/servlet/Calendar" , it seems ok , background is blue . but when i input "http://.../sytlib/servlet/Calendar" , its background become blue too .


I dont know why , can anyone give me explannation ?


Thanx in advance


ZY

   <<Less

Re: 2 context

Posted By:   zheng_yu  
Posted On:   Monday, July 23, 2001 03:14 AM


I have solved this problem . It is caused by my CLASSPATH setting .It always point to my directory where my source code reside ( unfortunately , i first compile the source in local directory , and then use BAT file to copy it to certain context ) ,so All these 2 context use the same class file , actually .



Sorry


zy

Re: 2 context

Posted By:   Sujat_Saxena  
Posted On:   Monday, July 23, 2001 02:53 AM

It seems to me that your docBase parameter for both your context tags is the same.
About | Sitemap | Contact