Having got by the handler error (at least for now), I now have this
error in working through the tutorials.
The new error is a missing stylesheet
...\samples\stylesheets\apache.xsl (The system cannot find the file
specified)
org.apache.cocoon.ProcessingException: Unable to get transformer handler
for file:/c:/tomcat/webapps/RonCocoon/samples/stylesheets/apache.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler
cause: java.io.FileNotFoundException:
c:\tomcat\webapps\RonCocoon\samples\stylesheets\apache.xsl (The system
cannot find the file specified)
I can not find the file either. I did find 2 files with this name under
different directories but they are radically different in size.
Ron
Ron Wheeler wrote:
I am trying to walk through the tutorial.
If I replace the pipeline in /samples/sitemap.xmap with the text from
the tutorial at
http://localhost:8080/cocoon/docs/tutorial/tutorial-develop-webapp.html
I get the following error mesage when I try to access
http://localhost:8080/RonCocoon/samples
It shows http://localhost:8080/RonCocoon/samples/home.html in the
address bar and this (with a lot of other text ) in the window.
Incomplete pipeline: 'handle-error' without a 'type' must include a
generator, at
file:/c:/tomcat/webapps/RonCocoon/samples/sitemap.xmap:93:22 Either
add a generator (preferred) or a type='500' attribute (deprecated) on
'handle-errors'
In the sitemap.xmap the handles-errors section has this code
<map:handle-errors>
<map:transform src="stylesheets/system/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
I tried to follow the instructions so I did leave the non-pipeline
information from the original sitemap.xmap.
THe whole sitemap is <?xml version="1.0" encoding="UTF-8"?><!--
Copyright 1999-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><!-- CVS $Id: sitemap.xmap 76060 2004-11-16 23:46:46Z antonio $
--><map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- ========================= Components
================================ -->
<map:components>
<map:generators default="file">
<map:generator name="linkstatus"
src="org.apache.cocoon.generation.LinkStatusGenerator"/>
<map:generator name="calendar"
src="org.apache.cocoon.generation.CalendarGenerator"/>
</map:generators>
</map:components>
<!-- =========================== Views
=================================== -->
<map:views>
<map:view from-label="content" name="content">
<map:serialize type="xml"/>
</map:view>
<map:view from-label="content" name="pretty-content">
<map:transform src="context://stylesheets/system/xml2html.xslt"/>
<map:serialize type="html"/>
</map:view>
<map:view from-position="last" name="links">
<map:serialize type="links"/>
</map:view>
</map:views>
<!-- ========================== Pipelines
================================ -->
<map:pipelines>
<map:component-configurations>
<global-variables>
<!--+
| Define global parameters, used in the input modules
GlobalInputModule demo.
+-->
<global-sitemap>This value is defined in the
samples/sitemap.xmap</global-sitemap>
<global-sitemap-override>This value is defined in the
samples/sitemap.xmap, should be overridden by
samples/modules/sitemap.xmap</global-sitemap-override>
</global-variables>
</map:component-configurations>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="home.html"/>
</map:match>
<map:match pattern="**.xml">
<map:generate src="docs/{1}.xml"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="**.html">
<map:generate src="docs/{1}.xml"/>
<map:transform src="stylesheets/apache.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="images/**.gif">
<map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
</map:match>
<map:match pattern="images/**.jpg">
<map:read src="resources/images/{1}.jpg" mime-type="image/jpg"/>
</map:match>
<map:match pattern="images/**.png">
<map:read src="resources/images/{1}.png" mime-type="image/png"/>
</map:match>
<map:match pattern="resources/**.css">
<map:read src="resources/styles/{1}.css" mime-type="text/css"/>
</map:match>
<map:match pattern="resources/**.js">
<map:read src="resource/styles/{1}.js"
mime-type="application/x-javascript"/>
</map:match>
<map:handle-errors>
<map:transform src="stylesheets/system/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Ron
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]