Try something like this:
 
<map:match pattern="recsal.html**">
  <map:generate type="jsp" src=""/>
  <map:serialize type="html"/>
</map:match>
----- Original Message -----
Sent: Thursday, February 20, 2003 17:43
Subject: Why this doesn't work???

Hello,
 
    I am confused about this:
 
    The following map runs ok and the file test.jsp exists:
 
<map:match pattern="recsal.html">
  <map:generate type="jsp" src=""/>
  <map:serialize type="html"/>
</map:match>
 
    But the following doesn't work: (I have just added a parameter in querystring that does nothing into the .jsp file). (The test.jsp is the same one).
   
<map:match pattern="recsal.html">
  <map:generate type="jsp" src=""/>
  <map:serialize type="html"/>
</map:match>
 
    And the following produces exactly same error that previous map: (And the file doesn't exists!!!!)
 
<map:match pattern="recsal.html">
  <map:generate type="jsp" src=""/>
  <map:serialize type="html"/>
</map:match>
 
    And the error produced by the second and third examples is: (replace test.jsp with whathappen.jsp if you want). (Extracted from core.log):
 
DEBUG   (2003-02-20) 14:27.59:659   [core.manager] (/pec/recsal.html) Thread-19/JspGenerator: JspGenerator executing JSP:/services/test.jsp?myparam=hello
DEBUG   (2003-02-20) 14:27.59:728   [core.manager] (/pec/recsal.html) Thread-19/JspGenerator: SAXException JspGenerator.generate()
org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1244)
 at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(XMLDocumentScannerImpl.java:587)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
 at org.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:77)
 at org.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:50)
 at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:129)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
 at org.apache.cocoon.www.sitemap_xmap.matchN4000C5(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:908)
 at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:657)
 at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:589)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
 at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
 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:260)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
 at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
 at java.lang.Thread.run(Thread.java:536)
 
Thanks in advance.
 
Eduardo.

Reply via email to