• 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

context configuration

 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

i'm experiencing inconsistencies in tomcat configuration. it seems that some of my changes are evaluated just sometimes, while others seem to work fine.

i am working with tomcat 5.5.17 on windows xp. to avoid side effects with auto-loading, i restart tomcat every single time i make a config change.

according to the context documentation, tomcat has a certain evaluation order. that's how i understand it

(1) try to read a context from cat_hom/conf/server.xml (discouraged...)
(2) cat_hom/conf/context.xml (empty for me)
(3) cat_hom/conf/engine/host/context.xml.default (not existing for me)
(4) cat_hom/conf/engine/host/webapp.xml (not existing for me)
(5) (if 4 was not found) /META-INF/context.xml (that's where i try to make my config)

to make a long story (and a long night) short:

changes in (1) are evaluated immediately, all others are more or less ignored.

i'm trying to set docBase / path, to achieve absolut referencing to ressources (/img/myPic.gif over img/myPic.gif). for example, if i set a non-valid docbase in (1), tomcat starts with a corresponding error. if i delete the docbase config from (1) and put it to (5) nothing happens. furthermore _sometimes_ the adressing works, sometimes not. if i add an xml-error to (5), i get an immediate xml-parse-exception...

as mentioned, i do restart tomcat after every single change. browser cache is deactivated. this drives me crazy.

any ideas?

many thanks,
jan
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello jan,

delete cat_hom/work everytime you make config changes.

many greetings,
jan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic