Lally Singh pisze:
Hey all, here's a thinker for you.
I have two sitemap entries, both based off the example block. One, an
empty pattern, displays the 1 line of text I want. The second gives
me an error 500:
javax.servlet.ServletException: No block for /qgenerator/test
at
org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
...
I have the simplest sitemap.xmap I can imagine:
<map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:flow language="javascript">
<map:script src="survey.js" />
</map:flow>
<map:pipelines>
<map:pipeline id="demo">
<map:match pattern="">
<map:call function="beginSurvey" />
</map:match>
<map:match pattern="screens/demo">
<map:generate src="demo.xml" type="jx"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="test">
<map:call function="beginSurvey" />
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Just tested it on SVN:Head. Any ideas?
What you describe is really odd, I'll look into it tomorrow. It may be that you just have found bug in servlet-service-fw. Thanks for giving
really simple example, it really helps debugging the problem.
--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]