• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

2 context

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
zheng yu
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic