cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santiago Gala <sg...@hisitech.com>
Subject Re: problem with sitemap_xmap.java
Date Fri, 20 Apr 2001 18:02:12 GMT
Ola Lundqvist wrote:

> On Fri, Apr 20, 2001 at 01:56:29PM +0200, Schmitt, Christian wrote:
> 
>> Ola,
>> try to add the following in Cocoon's web.xml:
> 
> 
> Thanks a lot for the quick response!
> 
> 
>> 	<init-param>
>> 	 <param-name>work-directory</param-name>
>> 	 <param-value>WEB-INF/classes</param-value>
>> 	</init-param>
>> 
>> I put it right underneath:
>> 
>>   <init-param>
>>    <param-name>log-level</param-name>
>>    <param-value>DEBUG</param-value>
>>   </init-param>
>> 
> 
> But what does it do? I can see that it works a lot better but I can not
> understand why...
> 

It will use WEB-INF/classes to compile generated files. I'm not sure it 
is a good idea.

I discussed the issue with Craig (Catalina) about classloading and 
permission problems in C2. He told me we should look at the way jasper 
loads the generated classes. The classes are generated in the "work" 
directory, as in cocoon, but jasper loads them with a codebase of 
"WEB-INF/classes", to avoid permission issues.

That is essentially what this change does.

I told Ricardo, but he is inventing something great :), and completely 
missing. Anybody else that knows the xps classloading mechanisms?


> But it still not works perfect but a bit better. :)
> 
> So I'll attach the new log and the corresponding sitemap.java file.
> ... Well it seems not to have changed... But the error message did,
> I think (can not go back and take a look :) ).
> 
> 

I think bsf.jar is missing from the WEB-INF/LIB

(see the long classpath line in the trace)

(...)
> DEBUG   664     [cocoon  ] (Thread-10): Classpath = /var/lib/tomcat/webapps/cocoon/WEB-INF/classes:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/Tidy.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/avalonapi.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/batik-all.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/cocoon2.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/hsqldb.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/jakarta-regexp-1.2.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/jstyle.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/junit.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/logkit.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/maybeupload.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/rhino.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/velocity-1.0.1-rc1.jar:/var/lib/tomcat/webapps/cocoon/WEB-INF/lib/xt.jar:/usr/share/java/repository:/usr/lib/j2sdk1.3/jre/lib/rt.jar:/usr/lib/j2sdk1.3/lib/tools.jar:/usr/share/tomcat/lib/bsf.jar:/usr/share/tomcat/lib/fop-0.17.0.jar:/!
usr/share/tomcat/lib/servlet.jar:/usr/share/tomcat/lib/tomcat.jar:/usr/share/tomcat/lib/xalan2.jar:/usr/share/tomcat/lib/xerces.jar:


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message