cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "manoj" <ma...@omnesysindia.com>
Subject [HELP]JSPReader can be used only in a Servlet/JSP environment
Date Tue, 15 Apr 2003 06:32:25 GMT
Hi Folks,

I am getting the following error while accessing jsp pages via cocoon. This is the block named
jsp.  and accessbile via samples link.

JSPReader can be used only in a Servlet/JSP environment
Description:org.apache.cocoon.ProcessingException: JSPReader can be used only in a Servlet/JSP
environment.

I am using the following environment.

Env details.
Apache Tomcat 4.1.2
Windows 2000

Logsnippets
ERROR   (2003-04-15) 11:37.47:305   [core.xslt-processor] (/cocoon21/samples/jsp/welcome.htm)
Thread-29/TraxErrorHandler: Error in TraxTransformer: javax.xml.transform.TransformerException:
The output format must have a '{http://xml.apache.org/xslt}content-handler' property!
javax.xml.transform.TransformerException: The output format must have a '{http://xml.apache.org/xslt}content-handler'
property!
 at org.apache.xalan.xsltc.trax.TransformerImpl.postErrorToListener(TransformerImpl.java:718)
 at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:642)
 at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:201)
 at org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:205)
 at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)


Sitemap snippets (Default settings)
      <map:match pattern="*.jsp">
        <map:generate type="jsp" src="{1}.jsp"/>
      <map:transform src="context://samples/stylesheets/dynamic-page2html.xsl">
         <map:parameter name="servletPath" value="{request:servletPath}"/>
         <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
         <map:parameter name="contextPath" value="{request:contextPath}"/>
         <map:parameter name="file" value=".jsp"/>
      </map:transform>
        <map:serialize type="html"/>
      </map:match>

Problem page
welcome.jsp

Is it related to site map:match pattern making problem. The error says, the output format
must have a content handler property ? Is not same as the serialiser property that we set
as above?
Any help is greatly appreciated.

Rgs,
Manoj

Mime
View raw message