You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Laurent Comte <la...@oodrive.fr> on 2003/02/19 13:24:34 UTC

Simple pb with subsitemap mount

Hi,

I just try to create subsitemap as written in docs.

I have :

[sitemap.xmap]
...
  <map:pipelines>
    <!-- very simple test -->
    <map:pipeline>
	<map:match pattern="view/**">
	    <map:mount uri-prefix="view" check-reload="true"
src="file:///D:\work\web.xmap" />
	</map:match>
    </map:pipeline>
  </map:pipelines>
...


[D:\work\web.xmap]
...
    <map:pipelines>
    <map:pipeline>
      <map:match pattern="**/index.xml">
		<map:generate src="index.xml"/>
		<map:transform src="index.xsl"/>
		<map:serialize/>
      </map:match>
    </map:pipeline>
  </map:pipelines>
...


So, when I type http://localhost:8080/cocon/view/index.xml, i've got this
beautiful thing :



description org.apache.cocoon.ProcessingException: Exception during
processing of file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl
(The system cannot find the file specified)

sender org.apache.cocoon.servlet.ParanoidCocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl (The system
cannot find the file specified)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:211)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.FileNotFoundException: \index.xsl (The system cannot find
the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:103)
	at
org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
a:140)
	at
org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
ractStreamSource.java:161)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
	... 47 more
java.io.FileNotFoundException: \index.xsl (The system cannot find the file
specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:103)
	at
org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
a:140)
	at
org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
ractStreamSource.java:161)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:536)


request-uri

/web/view/index.xml

path-info

view/index.xml



Of course, my xsl and xml files are in D:\work\ folder.

Any ideas ?

Cocoon 2.0.4 ; J2SE 1.4.1 ; Tomcat 4.1.18 ; Win2000 SP3

Laurent


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Is this question too simple to be answered ?

Posted by Lionel Crine <cr...@4dconcept.fr>.
i''m using cocoon 2.0.4 and tomcat 3.3.1. I didn't encounter this trouble.
It's working fine for me.
If your subsitemap is not reloaded you should look at te different option 
in <map:mount ...>




At 11:23 20/02/2003 +0100, you wrote:
>Hi, and thanks for your reply :)
>
><quote>
>Try relative location for your files.
></quote>
>
>The problem is that my subsitemap is not located in a subfolder
>under the main sitemap. So I must specify as "src" something like
>"../../../Apache/htdocs/myFolder/itsHere". Humf!
>
>==> BUT, finally I found 2 interesting things :
>
>1/ Even in Windows, if I specify the path as "file:///D:/work/web.xmap"
>    instead "file:///D:\work\web.xmap", it works ! Not really logic.
>
>2/ When I change something in the main sitemap without updating the
>subsitemap
>    file, it fails ! I must make a "fake" modification in the subsitemap file
>to
>    make things working ...
>
>
>A little bit confusing, isn't it ?
>
>BTW, do you have the same behaviours (I use 2.0.4) ???
>
>Laurent.
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Is this question too simple to be answered ?

Posted by Laurent Comte <la...@oodrive.fr>.
Hi, and thanks for your reply :)

<quote>
Try relative location for your files.
</quote>

The problem is that my subsitemap is not located in a subfolder
under the main sitemap. So I must specify as "src" something like
"../../../Apache/htdocs/myFolder/itsHere". Humf!

==> BUT, finally I found 2 interesting things :

1/ Even in Windows, if I specify the path as "file:///D:/work/web.xmap"
   instead "file:///D:\work\web.xmap", it works ! Not really logic.

2/ When I change something in the main sitemap without updating the
subsitemap
   file, it fails ! I must make a "fake" modification in the subsitemap file
to
   make things working ...


A little bit confusing, isn't it ?

BTW, do you have the same behaviours (I use 2.0.4) ???

Laurent.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Is this question too simple to be answered ?

Posted by Lionel Crine <cr...@4dconcept.fr>.
here is what I did  :

In the main sitemap :
     <!-- ======================= mount sub sitemap 
=========================== -->
     <map:pipeline>
       <map:match pattern="request/*">
         <map:mount uri-prefix="request" check-reload="true" 
src="demo/sitemap.xmap" method-reload="synchron"/>
       </map:match>
     </map:pipeline>
     <!-- ========================================================== -->

In the subsitemap :

<map:match pattern="request">
       <map:generate type="serverpages" src="request.xsp"/>
       <map:transform type="xslt" src="request.xsl"/>-->
       <map:transform type="xslt" src="documents.xsl"/>
       <map:serialize type="html"/>
</map:match>

Try relative location for your files.



Hope this help


At 10:27 20/02/2003 +0100, you wrote:
>Hi,
>
>is this question too simple to be answered ?
>
>-----Message d'origine-----
>De : Laurent Comte [mailto:laurent@oodrive.fr]
>Envoyé : mercredi 19 février 2003 13:25
>A : cocoon-users@xml.apache.org
>Objet : Simple pb with subsitemap mount
>
>
>
>Hi,
>
>I just try to create subsitemap as written in docs.
>
>I have :
>
>[sitemap.xmap]
>...
>   <map:pipelines>
>     <!-- very simple test -->
>     <map:pipeline>
>         <map:match pattern="view/**">
>             <map:mount uri-prefix="view" check-reload="true"
>src="file:///D:\work\web.xmap" />
>         </map:match>
>     </map:pipeline>
>   </map:pipelines>
>...
>
>
>[D:\work\web.xmap]
>...
>     <map:pipelines>
>     <map:pipeline>
>       <map:match pattern="**/index.xml">
>                 <map:generate src="index.xml"/>
>                 <map:transform src="index.xsl"/>
>                 <map:serialize/>
>       </map:match>
>     </map:pipeline>
>   </map:pipelines>
>...
>
>
>So, when I type http://localhost:8080/cocon/view/index.xml, i've got this
>beautiful thing :
>
>
>
>description org.apache.cocoon.ProcessingException: Exception during
>processing of file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl
>(The system cannot find the file specified)
>
>sender org.apache.cocoon.servlet.ParanoidCocoonServlet
>
>source Cocoon servlet
>
>stack-trace
>
>org.apache.cocoon.ProcessingException: Exception during processing of
>file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl (The system
>cannot find the file specified)
>         at
>org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
>mSource.java:211)
>         at
>org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
>LTProcessorImpl.java:268)
>         at
>org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
>LTProcessorImpl.java:239)
>         at
>org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
>298)
>         at
>org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
>stractEventPipeline.java:215)
>         at
>org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
>tPipeline.java:278)
>         at
>org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
>ngEventPipeline.java:141)
>         at
>org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
>treamPipeline.java:317)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
>cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
>)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
>work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
>work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>         at
>org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
>ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
>         at
>org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
>n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
>         at
>org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
>n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>         at
>org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>         at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247)
>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:193)
>         at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:260)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:191)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>         at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:174)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
>1040)
>         at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
>)
>         at java.lang.Thread.run(Thread.java:536)
>Caused by: java.io.FileNotFoundException: \index.xsl (The system cannot find
>the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.(FileInputStream.java:103)
>         at
>org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
>a:140)
>         at
>org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
>ractStreamSource.java:161)
>         at
>org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
>mSource.java:206)
>         ... 47 more
>java.io.FileNotFoundException: \index.xsl (The system cannot find the file
>specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.(FileInputStream.java:103)
>         at
>org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
>a:140)
>         at
>org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
>ractStreamSource.java:161)
>         at
>org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
>mSource.java:206)
>         at
>org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
>LTProcessorImpl.java:268)
>         at
>org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
>LTProcessorImpl.java:239)
>         at
>org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
>298)
>         at
>org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
>stractEventPipeline.java:215)
>         at
>org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
>tPipeline.java:278)
>         at
>org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
>ngEventPipeline.java:141)
>         at
>org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
>treamPipeline.java:317)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
>cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
>)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
>work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
>         at
>org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
>work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>         at
>org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
>ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
>         at
>org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
>n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
>         at
>org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
>n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>         at
>org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>         at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247)
>         at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:193)
>         at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:260)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:191)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>         at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>         at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:174)
>         at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>         at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
>1040)
>         at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
>)
>         at java.lang.Thread.run(Thread.java:536)
>
>
>request-uri
>
>/web/view/index.xml
>
>path-info
>
>view/index.xml
>
>
>
>Of course, my xsl and xml files are in D:\work\ folder.
>
>Any ideas ?
>
>Cocoon 2.0.4 ; J2SE 1.4.1 ; Tomcat 4.1.18 ; Win2000 SP3
>
>Laurent
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Is this question too simple to be answered ?

Posted by Laurent Comte <la...@oodrive.fr>.
Hi,

is this question too simple to be answered ?

-----Message d'origine-----
De : Laurent Comte [mailto:laurent@oodrive.fr]
Envoyé : mercredi 19 février 2003 13:25
A : cocoon-users@xml.apache.org
Objet : Simple pb with subsitemap mount



Hi,

I just try to create subsitemap as written in docs.

I have :

[sitemap.xmap]
...
  <map:pipelines>
    <!-- very simple test -->
    <map:pipeline>
	<map:match pattern="view/**">
	    <map:mount uri-prefix="view" check-reload="true"
src="file:///D:\work\web.xmap" />
	</map:match>
    </map:pipeline>
  </map:pipelines>
...


[D:\work\web.xmap]
...
    <map:pipelines>
    <map:pipeline>
      <map:match pattern="**/index.xml">
		<map:generate src="index.xml"/>
		<map:transform src="index.xsl"/>
		<map:serialize/>
      </map:match>
    </map:pipeline>
  </map:pipelines>
...


So, when I type http://localhost:8080/cocon/view/index.xml, i've got this
beautiful thing :



description org.apache.cocoon.ProcessingException: Exception during
processing of file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl
(The system cannot find the file specified)

sender org.apache.cocoon.servlet.ParanoidCocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/index.xsl: java.io.FileNotFoundException: \index.xsl (The system
cannot find the file specified)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:211)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.FileNotFoundException: \index.xsl (The system cannot find
the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:103)
	at
org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
a:140)
	at
org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
ractStreamSource.java:161)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
	... 47 more
java.io.FileNotFoundException: \index.xsl (The system cannot find the file
specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:103)
	at
org.apache.cocoon.components.source.FileSource.getInputStream(FileSource.jav
a:140)
	at
org.apache.cocoon.components.source.AbstractStreamSource.getInputSource(Abst
ractStreamSource.java:161)
	at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:206)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:268)
	at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
	at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.matchN10224(D:\Java\Oodrive\Tom
cat\work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1530
)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1439)
	at
org.apache.cocoon.www.file_.D_.work.web_xmap.process(D:\Java\Oodrive\Tomcat\
work\cocoon-files\org/apache/cocoon/www/file_/D_/work\web_xmap.java:1385)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.www.sitemap_xmap.matchN1020C(D:\Java\Oodrive\Tomcat\work\c
ocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1447)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1394)
	at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:536)


request-uri

/web/view/index.xml

path-info

view/index.xml



Of course, my xsl and xml files are in D:\work\ folder.

Any ideas ?

Cocoon 2.0.4 ; J2SE 1.4.1 ; Tomcat 4.1.18 ; Win2000 SP3

Laurent


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>