I believe that relative docBase paths are only supposed to be used with autodeployment (and they are taken to be relative to the autodeployment base dir). Also, I put a wiki page many months ago on the Roller wiki that talks about all of the names that should really agree in order for Tomcat's autodeployment code not to get confused in various points if you have a context.xml. The code assumes that these names cannot differ since it thinks it is in the autodeployment case.

http://www.rollerweblogger.org/wiki/Wiki.jsp?page=RollerAlternateURI

--a.



----- Original Message ----- From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 06, 2005 12:43 PM
Subject: Context "path" attribute doesn't seem to work on Tomcat 5.5.9


This is more of a Tomcat issue than a Roller issue, but I figured I'd
ask it here anyway. ;-)

Setup: JDK 5, Linux, Tomcat 5.5.9, Roller from CVS
Roller installed in $CATALINA_HOME/webapps/roller

If I use an absolute docBase attribute in my context file, everything
works and Roller is deployed at "/blog".

<Context path="/blog"
docBase="/Users/mraible/dev/roller_2.0/build/roller" debug="99"
reloadable="false"
   antiJARLocking="true" antiResourceLocking="false">

However, if I use a relative docBase (i.e. docBase="roller"), Roller
gets deployed at "/roller" and it seems the path attribute is ignored.
This seems like a bug to me. I can use an absolute path to get what I
want, just wanted to see if this was "as designed".

Thanks,

Matt

Reply via email to