cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: subsitemaps in a WAR
Date Thu, 24 Jul 2003 01:19:46 GMT
map:mount seems to be ok. For me the url of the subsitemap seemed to be 
wrong: 
cocoon_vdab18653.war!/sitemap.xmapextractie/algemeen/sitemap.xmap. It 
looks like a path resolving bug to me. We know of different ones of them 
already (see bugzilla for them). The path resolving is too much 
container dependent.

But if you think that's not the case here ... I don't know, maybe anyone 
else can have a look on it.

Joerg

Geert Van Damme wrote:

> In de main sitemap i mount like this :
> 
> 	 <map:match pattern="extractie/**">
> 		 <map:mount uri-prefix="extractie" check-reload="yes" src="extractie/sitemap.xmap"
/>
> 	 </map:match>
> 
> Then in the 'extractie' directory :
> 
> 		 <map:match pattern="algemeen/**">
> 			 <map:mount uri-prefix="algemeen" check-reload="yes" src="algemeen/sitemap.xmap"
/>
> 		 </map:match>
> 
> Finally the 'algemeen' sitemap does the actual processing (generation/transformation/serialization).
> 
> I don't think the problem is related to the mounting, but it's a general problem locating
_any_ file in the war, as I get the same problem when I try to use an XSL file for transformation
from the main sitemap)... I also get this problem using the unmodified cocoon.war from the
cocoon distribution. I suspect this is a weblogic specific problem (--> see error message
below 'weblogic.utils.zip.ZipURLConnection.getInputStream') ???
> 
> Thanks for the response, I'm going nuts :-S
> 
> The error message for the (=any) XSL is :
> 
>  resource was not found
> org.apache.cocoon.ResourceNotFoundException: Resource not found zip:/appl/build61/prj/cocoon/runtime/cocoon/config/coco
> ondomain/applications/.wlnotdelete/stylesheets/remove_namespaces.xsl: java.io.FileNotFoundException:
zip:/appl/build61/
> prj/cocoon/runtime/cocoon/config/cocoondomain/applications/.wlnotdelete/stylesheets/remove_namespaces.xsl
>         at org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:280)
>         at org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(AbstractStreamSource.java:161)
>         at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)
>         at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
>         at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
>         at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:310)
>         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
>         at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:313)
>         at org.apache.cocoon.www.zip_.appl.build61.prj.cocoon.runtime.cocoon.config.cocoondomain.applications.__wlnotde
> lete.wlap45875.cocoon_vdab_war_.sitemap_xmap.matchN1027D(/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/ap
> plications/.wlnotdelete/wlap45875/WEB-INF/_tmp_war_cocoondomain_cocoon_cocoon-vdab/cocoon-files/org/apache/cocoon/www/z
> ip_/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applications/__wlnotdelete/wlap45875/cocoon_vdab_war_/si
> temap_xmap.java:1821)
>         at org.apache.cocoon.www.zip_.appl.build61.prj.cocoon.runtime.cocoon.config.cocoondomain.applications.__wlnotde
> lete.wlap45875.cocoon_vdab_war_.sitemap_xmap.process(/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applic
> ations/.wlnotdelete/wlap45875/WEB-INF/_tmp_war_cocoondomain_cocoon_cocoon-vdab/cocoon-files/org/apache/cocoon/www/zip_/
> appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applications/__wlnotdelete/wlap45875/cocoon_vdab_war_/sitema
> p_xmap.java:1495)
>         at org.apache.cocoon.www.zip_.appl.build61.prj.cocoon.runtime.cocoon.config.cocoondomain.applications.__wlnotde
> lete.wlap45875.cocoon_vdab_war_.sitemap_xmap.process(/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applic
> ations/.wlnotdelete/wlap45875/WEB-INF/_tmp_war_cocoondomain_cocoon_cocoon-vdab/cocoon-files/org/apache/cocoon/www/zip_/
> appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applications/__wlnotdelete/wlap45875/cocoon_vdab_war_/sitema
> p_xmap.java:1423)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
>         at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
>         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
>         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2678)
>         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2412)
>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:140)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:121)
> java.io.FileNotFoundException: zip:/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applications/.wlnotdelet
> e/stylesheets/remove_namespaces.xsl
>         at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:56)
>         at org.apache.cocoon.components.source.URLSource.getInputStream(URLSource.java:275)
>         at org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(AbstractStreamSource.java:161)
>         at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)
>         at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
>         at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
>         at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:310)
>         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
>         at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:313)
>         at org.apache.cocoon.www.zip_.appl.build61.prj.cocoon.runtime.cocoon.config.cocoondomain.applications.__wlnotde
> ...
> ...
> 
>>>>joerg.heinicke@gmx.de 07/23/03 01:11pm >>>
> 
> I guess zip: is not the problem, but 
> cocoon_vdab18653.war!/sitemap.xmapextractie/algemeen/sitemap.xmap at the 
> end of this file name. There is twice sitemap.xmap in it. In which way 
> did you write this <map:mount/>?
> 
> Joerg
> 
> Geert Van Damme wrote:
> 
>>Hi,
>>
>>Can I use subsitemaps when deploying Cocoon (2.0.4) as a WAR ?
>>I get the error 
>>
>>"java.io.FileNotFoundException: zip:/appl/build61/prj/cocoon/runtime/cocoon/config/cocoondomain/applications/.wlnotdelete/cocoon_vdab18653.war!/sitemap.xmapextractie/algemeen/sitemap.xmap"
>>
>>I kinda understand why the file cannot be found (zip:), but does anyone know how to
solve this problem ? 
>>
>>Thanks !
>>Geert


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


Mime
View raw message