> -----Original Message-----
> From: burtonator [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 12, 2000 6:32 PM
>
> Neeme Praks wrote:
> >
> > Every time a java class is generated from XSP file, it is stored in
> > repository as _<jetspeed root>/_jetspeed.java (in my case
> > repository\_D_\_Turbine\_webapps\_jetspeed\_jetspeed.java). This is
> > definitely not correct, otherwise we could have only one
> XSP page per
> > jetspeed installation ;-)
> >
> > I'll try to find where does this occur, but I think Kevin
> would probably
> > find it faster ;-)
>
> cocoon.properties
>
> Your "repository" is probably set to "."
>
> ... just point it to a shared directory.
well repository is set at
processor.xsp.repository = ./repository
But I think that you didn't catch the main point: Cocoon checks the file
where it was called from so it can put the java source and compiled
class in a proper directory in the repository.
It has different handling of this for different cases:
Under Servlet 2.1, it
1. finds out the calling path by calling request.getServletPath()
2. maps this to filesystem by calling ServletContext.getRealPath(path)
Under JServ and in offline mode it calls request.getPathTranslated()
As I'm running Tomcat, it goes to the Servlet 2.1 path and gets the
servlet path, instead of the actual XSP page path. And this results in
all the XSP files having the same name, as the servlet name is the same.
Under JServ, this doesn't happen.
Neeme
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]