Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context configuration

 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
hello jan,

delete cat_hom/work everytime you make config changes.

many greetings,
jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic