cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck>
Subject Re: [Help] Failing "Path translated" under Tomcat served pages
Date Thu, 08 Jun 2000 14:38:38 GMT
I've just answered my own question, so I'll post the result if anyone else  
needs to know.

It turns out to be partly related to the new web application contexts in  
Java Servlet 2.2.  I have a feeling that request.getPathTranslated() should  
be working nevertheless, but, in its absence the same information can be  
obtained with:




On Thursday, June 8, 2000, at 11:28 AM, Stuart Roebuck wrote:

> I've just moved development from Cocoon 1.7.4 running under JServ under  
Apache on MacOS X
> DP4 to Cocoon 1.7.4 running directly under TomCat 3.1 under MacOS X DP4. 
> Everything seems fine except that the request.getPathTranslated() method  
> null.  I've searched my archives for comments on this and can't find  
anything.  Does anyone
> have any clues, is it:
> 1.  A change in JSDK?
> 2.  A function not provided using Tomcat?
> 3.  Something up with my installation?
> I've used this in the past in order to to have XSP Java scan directories  
for new files to allow
> auto content inclusion.  Now I can't determine the base directory from  
which to locate the
> files.  If my problem with getPathTranslated() is as a result of  
suggestions 1 or 2 above, is
> there an alternative way of identifying the location of the currently  
served page in the
> local filesystem?
> I note that new File(".") appears to point to my user directory, and new 
> File(System.getProperty("user.dir")) does the same.  This is odd in  
itself, because,
> whilst the served files are located within a subdirectory of my user  
directory, Tomcat is
> running as root.
> Any suggestions, help, much appreciated.
> Stuart Roebuck.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message