You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rob Jellinghaus <ro...@unrealities.com> on 2002/03/30 01:36:29 UTC

Does Bonebreaker sample still work with Cocoon 2.0.2?

[Vadim: I am trying to make it so Mozilla sends plain text email; I 
apologize from the bottom of my heart if I fail :-) ]

I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02.  I have 
been able to run the esql samples against both the built-in hsql DB and 
against my own mysql DB, so I know that I have *something* working :-)

I have just downloaded bonebreaker.zip and unzipped it into 
%CATALINA_HOME%/webapps/cocoon/bonebreaker.  I have made the changes to 
my main sitemap.xmap as specified on 
http://www.cocooncenter.de/cc/documents/resources/navigation/installation.html 
:

<map:pipeline>

  <!-- match the Bonebreaker homepage -->
  <map:match pattern="bonebreaker">
    <map:mount uri-prefix="bonebreaker" check-reload="yes"
      reload-method="synchron" src="bonebreaker/"/>
  </map:match>

  <!-- match all other Bonebreaker pages -->
  <map:match pattern="bonebreaker/**">
    <map:mount uri-prefix="bonebreaker" check-reload="yes"
      reload-method="synchron" src="bonebreaker/"/>
  </map:match>

</map:pipeline>

The problem is that when I go to 
http://localhost:8080/cocoon/bonebreaker/  I get a simple directory 
listing, not a Cocoon-rendered HTML page.  Here is the access.log 
(slightly cleaned up):

DEBUG   (2002-03-29) 16:31.30:470   [access](/cocoon/bonebreaker/) 
HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in 
context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
DEBUG   (2002-03-29) 16:31.30:540   [access](/cocoon/bonebreaker/) 
HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 
'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap'
Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
Changing Cocoon context
   from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
  to context(sitemap.xmap) and prefix()
  at URI bonebreaker/
New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
Resolving 'stylesheets/system/directory2html.xsl' in context 
'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
Resolved to 'file:/D:/dev/Tomcat 
4.0/webapps/cocoon/stylesheets/system/directory2html.xsl'
Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/'
Set the URI Prefix (OLD=, NEW=)
Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds.

So I tried going to 
http://localhost:8080/cocoon/bonebreaker/home/home.section but that 
gives me a 404.  The access.log says:

Changing Cocoon context
  from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
  to context(sitemap.xmap) and prefix()
  at URI bonebreaker/home/home.section
New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
Set the URI Prefix (OLD=, NEW=)
Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
WARN    (2002-03-29) 16:31.46:663   
[access](/cocoon/bonebreaker/home/home.section) 
HttpProcessor[8080][0]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched 
request: /bonebreaker/home/home.section
    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3175)
    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489)
    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
    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:998)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Unknown Source)
INFO    (2002-03-29) 16:31.46:703   
[access](/cocoon/bonebreaker/home/home.section) 
HttpProcessor[8080][0]/CocoonServlet: 'bonebreaker/home/home.section' 
Processed by Apache Cocoon 2.0.2 in 100 milliseconds.

Is Bonebreaker... well... broken under Cocoon 2.0.2?  I am going to keep 
working on this, but some clues from you would be terribly helpful.

Cheers,
Rob



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

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


RE: Does Bonebreaker sample still work with Cocoon 2.0.2?

Posted by Rob Jellinghaus <ro...@unrealities.com>.
No, this was the *first* pipeline element.  (Don't tell me that was wrong 
too!  Thank goodness for /mount!)

Cheers,
Rob


At 09:27 PM 3/29/2002 -0500, Vadim Gritsenko wrote:
> > From: Rob Jellinghaus [mailto:robj@unrealities.com]
> >
> > ...and following myself up... it turns out that if I just put the
> > bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit
> > bonebreaker/sitemap.xmap to have "/cocoon/mount/bonebreaker" as the
> > base-url, then it works!  (without editing the toplevel sitemap.xmap,
>even!)
> >
> > So the question now is, why does the recommended top-level
>sitemap.xmap
> > information below *not* work?
>
>May be you added this snippet in the wrong place. May be you added it
>after the last pipeline element. This last pipeline element has **/
>match which shows directory listing.
>
> > >[Vadim: I am trying to make it so Mozilla sends plain text email; I
> > >apologize from the bottom of my heart if I fail :-) ]
>
>[Congrats, you have got it!]
>
>Vadim
>
>
> > And why not make this the standard way to
> > install bonebreaker?
> >
> > But in any case I'm happy now :-)
> > Cheers!
> > Rob
> >
> >
> >
> >
> > At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote:
> > >[Vadim: I am trying to make it so Mozilla sends plain text email; I
> > >apologize from the bottom of my heart if I fail :-) ]
> > >
> > >I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02.  I
>have
> > >been able to run the esql samples against both the built-in hsql DB
>and
> > >against my own mysql DB, so I know that I have *something* working
>:-)
> > >
> > >I have just downloaded bonebreaker.zip and unzipped it into
> > >%CATALINA_HOME%/webapps/cocoon/bonebreaker.  I have made the changes
>to my
> > >main sitemap.xmap as specified on
> >
> >http://www.cocooncenter.de/cc/documents/resources/navigation/installati
>on.htm
> > l
> > >:
> > >
> > ><map:pipeline>
> > >
> > >  <!-- match the Bonebreaker homepage -->
> > >  <map:match pattern="bonebreaker">
> > >    <map:mount uri-prefix="bonebreaker" check-reload="yes"
> > >      reload-method="synchron" src="bonebreaker/"/>
> > >  </map:match>
> > >
> > >  <!-- match all other Bonebreaker pages -->
> > >  <map:match pattern="bonebreaker/**">
> > >    <map:mount uri-prefix="bonebreaker" check-reload="yes"
> > >      reload-method="synchron" src="bonebreaker/"/>
> > >  </map:match>
> > >
> > ></map:pipeline>
> > >
> > >The problem is that when I go to
> > >http://localhost:8080/cocoon/bonebreaker/ I get a simple directory
> > >listing, not a Cocoon-rendered HTML page.  Here is the access.log
> > >(slightly cleaned up):
> > >
> > >DEBUG   (2002-03-29) 16:31.30:470   [access](/cocoon/bonebreaker/)
> > >HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap'
>in
> > >context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> > >DEBUG   (2002-03-29) 16:31.30:540   [access](/cocoon/bonebreaker/)
> > >HttpProcessor[8080][0]/AbstractEnvironment: Resolved to
> > >'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap'
> > >Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> > >Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> > >Changing Cocoon context
> > >   from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
> > >  to context(sitemap.xmap) and prefix()
> > >  at URI bonebreaker/
> > >New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> > >Resolving 'stylesheets/system/directory2html.xsl' in context
> > >'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> > >Resolved to 'file:/D:/dev/Tomcat
> > >4.0/webapps/cocoon/stylesheets/system/directory2html.xsl'
> > >Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat
>4.0/webapps/cocoon/'
> > >Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/'
> > >Set the URI Prefix (OLD=, NEW=)
> > >Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> > >'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds.
> > >
> > >So I tried going to
> > >http://localhost:8080/cocoon/bonebreaker/home/home.section but that
>gives
> > >me a 404.  The access.log says:
> > >
> > >Changing Cocoon context
> > >  from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
> > >  to context(sitemap.xmap) and prefix()
> > >  at URI bonebreaker/home/home.section
> > >New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> > >Set the URI Prefix (OLD=, NEW=)
> > >Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> > >WARN    (2002-03-29) 16:31.46:663
> > >[access](/cocoon/bonebreaker/home/home.section)
> > >HttpProcessor[8080][0]/CocoonServlet: The resource was not found
> > >org.apache.cocoon.ResourceNotFoundException: No pipeline matched
>request:
> > >/bonebreaker/home/home.section
> > >    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat
> > > 4.0\work\localhost\cocoon\cocoon-
> > files\org/apache/cocoon/www\sitemap_xmap.java:3175)
> > >    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat
> > > 4.0\work\localhost\cocoon\cocoon-
> > files\org/apache/cocoon/www\sitemap_xmap.java:2489)
> > >    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> > >    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:998)
> > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >    at
> > >
> >
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>tionFi
> > lterChain.java:247)
> > >    at
> > >
> >
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>erChai
> > n.java:193)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>e.java
> > :243)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:566
> > )
> > >    at
> > >
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>72)
> > >    at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>e.java
> > :201)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:566
> > )
> > >    at
> > >
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>72)
> > >    at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >    at
> > >
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
>4)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>:164)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:566
> > )
> > >    at
> > >
> >
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
>lve.ja
> > va:170)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:564
> > )
> > >    at
> > >
> >
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>:170)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:564
> > )
> > >    at
> > >
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
>)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:564
> > )
> > >    at
> > >
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>72)
> > >    at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>java:1
> > 63)
> > >    at
> > >
> >
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
>va:566
> > )
> > >    at
> > >
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>72)
> > >    at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >    at
> > >
> >
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
>ava:10
> > 11)
> > >    at
> > >
> >
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
>1106)
> > >    at java.lang.Thread.run(Unknown Source)
> > >INFO    (2002-03-29) 16:31.46:703
> > >[access](/cocoon/bonebreaker/home/home.section)
> > >HttpProcessor[8080][0]/CocoonServlet: 'bonebreaker/home/home.section'
> > >Processed by Apache Cocoon 2.0.2 in 100 milliseconds.
> > >
> > >Is Bonebreaker... well... broken under Cocoon 2.0.2?  I am going to
>keep
> > >working on this, but some clues from you would be terribly helpful.
> > >
> > >Cheers,
> > >Rob
> > >
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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


RE: Does Bonebreaker sample still work with Cocoon 2.0.2?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Rob Jellinghaus [mailto:robj@unrealities.com]
> 
> ...and following myself up... it turns out that if I just put the
> bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit
> bonebreaker/sitemap.xmap to have "/cocoon/mount/bonebreaker" as the
> base-url, then it works!  (without editing the toplevel sitemap.xmap,
even!)
> 
> So the question now is, why does the recommended top-level
sitemap.xmap
> information below *not* work? 

May be you added this snippet in the wrong place. May be you added it
after the last pipeline element. This last pipeline element has **/
match which shows directory listing.

> >[Vadim: I am trying to make it so Mozilla sends plain text email; I
> >apologize from the bottom of my heart if I fail :-) ]

[Congrats, you have got it!]

Vadim


> And why not make this the standard way to
> install bonebreaker?
> 
> But in any case I'm happy now :-)
> Cheers!
> Rob
> 
> 
> 
> 
> At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote:
> >[Vadim: I am trying to make it so Mozilla sends plain text email; I
> >apologize from the bottom of my heart if I fail :-) ]
> >
> >I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02.  I
have
> >been able to run the esql samples against both the built-in hsql DB
and
> >against my own mysql DB, so I know that I have *something* working
:-)
> >
> >I have just downloaded bonebreaker.zip and unzipped it into
> >%CATALINA_HOME%/webapps/cocoon/bonebreaker.  I have made the changes
to my
> >main sitemap.xmap as specified on
>
>http://www.cocooncenter.de/cc/documents/resources/navigation/installati
on.htm
> l
> >:
> >
> ><map:pipeline>
> >
> >  <!-- match the Bonebreaker homepage -->
> >  <map:match pattern="bonebreaker">
> >    <map:mount uri-prefix="bonebreaker" check-reload="yes"
> >      reload-method="synchron" src="bonebreaker/"/>
> >  </map:match>
> >
> >  <!-- match all other Bonebreaker pages -->
> >  <map:match pattern="bonebreaker/**">
> >    <map:mount uri-prefix="bonebreaker" check-reload="yes"
> >      reload-method="synchron" src="bonebreaker/"/>
> >  </map:match>
> >
> ></map:pipeline>
> >
> >The problem is that when I go to
> >http://localhost:8080/cocoon/bonebreaker/  I get a simple directory
> >listing, not a Cocoon-rendered HTML page.  Here is the access.log
> >(slightly cleaned up):
> >
> >DEBUG   (2002-03-29) 16:31.30:470   [access](/cocoon/bonebreaker/)
> >HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap'
in
> >context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> >DEBUG   (2002-03-29) 16:31.30:540   [access](/cocoon/bonebreaker/)
> >HttpProcessor[8080][0]/AbstractEnvironment: Resolved to
> >'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap'
> >Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> >Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> >Changing Cocoon context
> >   from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
> >  to context(sitemap.xmap) and prefix()
> >  at URI bonebreaker/
> >New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> >Resolving 'stylesheets/system/directory2html.xsl' in context
> >'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
> >Resolved to 'file:/D:/dev/Tomcat
> >4.0/webapps/cocoon/stylesheets/system/directory2html.xsl'
> >Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat
4.0/webapps/cocoon/'
> >Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/'
> >Set the URI Prefix (OLD=, NEW=)
> >Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> >'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds.
> >
> >So I tried going to
> >http://localhost:8080/cocoon/bonebreaker/home/home.section but that
gives
> >me a 404.  The access.log says:
> >
> >Changing Cocoon context
> >  from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
> >  to context(sitemap.xmap) and prefix()
> >  at URI bonebreaker/home/home.section
> >New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> >Set the URI Prefix (OLD=, NEW=)
> >Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
> >WARN    (2002-03-29) 16:31.46:663
> >[access](/cocoon/bonebreaker/home/home.section)
> >HttpProcessor[8080][0]/CocoonServlet: The resource was not found
> >org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request:
> >/bonebreaker/home/home.section
> >    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat
> > 4.0\work\localhost\cocoon\cocoon-
> files\org/apache/cocoon/www\sitemap_xmap.java:3175)
> >    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat
> > 4.0\work\localhost\cocoon\cocoon-
> files\org/apache/cocoon/www\sitemap_xmap.java:2489)
> >    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> >    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:998)
> >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >    at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFi
> lterChain.java:247)
> >    at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChai
> n.java:193)
> >    at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java
> :243)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >    at
> >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >    at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java
> :201)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >    at
> >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >    at
> >
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4)
> >    at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >    at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.ja
> va:170)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >    at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >    at
> >
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >    at
> >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >    at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:1
> 63)
> >    at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >    at
> >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >    at
> >
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:10
> 11)
> >    at
> >
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106)
> >    at java.lang.Thread.run(Unknown Source)
> >INFO    (2002-03-29) 16:31.46:703
> >[access](/cocoon/bonebreaker/home/home.section)
> >HttpProcessor[8080][0]/CocoonServlet: 'bonebreaker/home/home.section'
> >Processed by Apache Cocoon 2.0.2 in 100 milliseconds.
> >
> >Is Bonebreaker... well... broken under Cocoon 2.0.2?  I am going to
keep
> >working on this, but some clues from you would be terribly helpful.
> >
> >Cheers,
> >Rob
> >


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

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


Re: Does Bonebreaker sample still work with Cocoon 2.0.2?

Posted by Rob Jellinghaus <ro...@unrealities.com>.
...and following myself up... it turns out that if I just put the 
bonebreaker dir under %CATALINA_HOME%/webapps/cocoon/mount and edit 
bonebreaker/sitemap.xmap to have "/cocoon/mount/bonebreaker" as the 
base-url, then it works!  (without editing the toplevel sitemap.xmap, even!)

So the question now is, why does the recommended top-level sitemap.xmap 
information below *not* work?  And why not make this the standard way to 
install bonebreaker?

But in any case I'm happy now :-)
Cheers!
Rob




At 04:36 PM 3/29/2002 -0800, Rob Jellinghaus wrote:
>[Vadim: I am trying to make it so Mozilla sends plain text email; I 
>apologize from the bottom of my heart if I fail :-) ]
>
>I have Cocoon 2.0.2 running with Tomcat 4.0.1 and Java 1.3.1_02.  I have 
>been able to run the esql samples against both the built-in hsql DB and 
>against my own mysql DB, so I know that I have *something* working :-)
>
>I have just downloaded bonebreaker.zip and unzipped it into 
>%CATALINA_HOME%/webapps/cocoon/bonebreaker.  I have made the changes to my 
>main sitemap.xmap as specified on 
>http://www.cocooncenter.de/cc/documents/resources/navigation/installation.html 
>:
>
><map:pipeline>
>
>  <!-- match the Bonebreaker homepage -->
>  <map:match pattern="bonebreaker">
>    <map:mount uri-prefix="bonebreaker" check-reload="yes"
>      reload-method="synchron" src="bonebreaker/"/>
>  </map:match>
>
>  <!-- match all other Bonebreaker pages -->
>  <map:match pattern="bonebreaker/**">
>    <map:mount uri-prefix="bonebreaker" check-reload="yes"
>      reload-method="synchron" src="bonebreaker/"/>
>  </map:match>
>
></map:pipeline>
>
>The problem is that when I go to 
>http://localhost:8080/cocoon/bonebreaker/  I get a simple directory 
>listing, not a Cocoon-rendered HTML page.  Here is the access.log 
>(slightly cleaned up):
>
>DEBUG   (2002-03-29) 16:31.30:470   [access](/cocoon/bonebreaker/) 
>HttpProcessor[8080][0]/AbstractEnvironment: Resolving 'sitemap.xmap' in 
>context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
>DEBUG   (2002-03-29) 16:31.30:540   [access](/cocoon/bonebreaker/) 
>HttpProcessor[8080][0]/AbstractEnvironment: Resolved to 
>'file:/D:/dev/Tomcat 4.0/webapps/cocoon/sitemap.xmap'
>Resolving '' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
>Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
>Changing Cocoon context
>   from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
>  to context(sitemap.xmap) and prefix()
>  at URI bonebreaker/
>New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
>Resolving 'stylesheets/system/directory2html.xsl' in context 
>'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
>Resolved to 'file:/D:/dev/Tomcat 
>4.0/webapps/cocoon/stylesheets/system/directory2html.xsl'
>Resolving 'bonebreaker' in context 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/'
>Resolved to 'file:/D:/dev/Tomcat 4.0/webapps/cocoon/bonebreaker/'
>Set the URI Prefix (OLD=, NEW=)
>Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
>'bonebreaker/' Processed by Apache Cocoon 2.0.2 in 10.385 seconds.
>
>So I tried going to 
>http://localhost:8080/cocoon/bonebreaker/home/home.section but that gives 
>me a 404.  The access.log says:
>
>Changing Cocoon context
>  from context(file:/D:/dev/Tomcat 4.0/webapps/cocoon/) and prefix()
>  to context(sitemap.xmap) and prefix()
>  at URI bonebreaker/home/home.section
>New context is file:/D:/dev/Tomcat 4.0/webapps/cocoon/
>Set the URI Prefix (OLD=, NEW=)
>Reset context to file:/D:/dev/Tomcat 4.0/webapps/cocoon/
>WARN    (2002-03-29) 16:31.46:663
>[access](/cocoon/bonebreaker/home/home.section) 
>HttpProcessor[8080][0]/CocoonServlet: The resource was not found
>org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: 
>/bonebreaker/home/home.section
>    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 
> 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3175)
>    at org.apache.cocoon.www.sitemap_xmap.process(D:\dev\Tomcat 
> 4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2489)
>    at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>    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:998)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>    at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>    at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>    at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>    at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>    at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>    at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>    at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>    at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>    at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>    at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>    at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>    at java.lang.Thread.run(Unknown Source)
>INFO    (2002-03-29) 16:31.46:703
>[access](/cocoon/bonebreaker/home/home.section) 
>HttpProcessor[8080][0]/CocoonServlet: 'bonebreaker/home/home.section' 
>Processed by Apache Cocoon 2.0.2 in 100 milliseconds.
>
>Is Bonebreaker... well... broken under Cocoon 2.0.2?  I am going to keep 
>working on this, but some clues from you would be terribly helpful.
>
>Cheers,
>Rob
>
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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