This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Context path in tomcat 5.5 problems with mod_jk  RSS feed

Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im doing migration from tomcat 4 to tomcat 5.5
im using apache 1.3 with mod_jk when I used tomcat 4 my app root was in different place and not in webapps directory
and I did the redirection with this simple tag in the server.xml
<Context path="" docBase="/bld/blah/Run/ " debug="0"/>
and all my web pages was working from this dir and jsp pages are redirected to tomcat
but now when I migrated to the new tomcat 5.5 I don�t see this tag any more ..
when I was reading about the new config I tried to add this server.xml

<Context docBase="/bld/blah/Run/ " path="/bld/blah/Run/" privileged="true" antiResourceLocking="false" antiJARLo

but it doesn't work , what im doing wrong here?
Ben Souther
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The path attribute should be that part of the URL that the user would type just after the domain.

You might want to get this up and running on Tomcat as a standalone before getting tangled up in connector issues.

Also, check with the Tomcat documentation.
The recommended best practice has changed now that they've introduced context fragments (The <Context ... /> portion of your server.xml file can now be placed in a separate file under conf/Catalina/localhost (or whatever host you're using) with the path as it's name.

Example: myApp.xml

Also, the path attribute is ignored.
Tomcat uses the file's name (minus the .xml) as the path.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!