Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 28408 invoked by uid 500); 10 Jun 2002 12:10:26 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 28395 invoked from network); 10 Jun 2002 12:10:25 -0000 Message-ID: <3D04A559.F19E091A@softsolutions.fr> Date: Mon, 10 Jun 2002 15:10:49 +0200 From: "MOODAD Shadi (LB Soft)" X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Is this a bug??? within cocoon (JspGenerator) X-Priority: 2 (High) References: <3CFF879B.EDDFC1FE@softsolutions.fr> Content-Type: multipart/alternative; boundary="------------62A020E3BF990349710939E4" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------62A020E3BF990349710939E4 Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 8bit Hi, I tried to follow this problem and found the following: within the following class-method: � org.apache.cocoon.generation.JspGenerator.generate() the variable variable url being passed to the JspEngineImpl has the value = src.getSystemId() so it will have the following string file//full_path_to_the_application/fileName.jsp wich will coz a problem within the Jasper class (file not found) when searching for the propertie "javax.servlet.include.servlet_path" so by replacing the url variable by the following value: httpRequest.getServletPath(); everything work fine. so is this a bug or this is a configuration step I missed somewhere. Tanx in advance. � "MOODAD Shadi (LB Soft)" wrote: > Hi > > I'm trying to execute a JSP file under cocoon2 wich is running under > jakarta 4 as a servlet. > but the jsp isn't executed and i got the next error: > > It seems that it enters JspGenerator but when executing the servlet by > JspEngineImpl the jsp file isn't executed and the byte stream is emty > and i don't find any error report. > could any one give me some hints on solving this probleme, or where can' > i find the logs of the jspengine. > > org.apache.cocoon.ProcessingException: SAXException > JspGenerator.generate() > �at > org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:142) > > �at > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251) > > �at > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) > > �at > org.apache.cocoon.www.conf.cocoon.sitemap_xmap.matchN10155(sitemap_xmap.java:1357) > > �at > org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:1134) > > �at > org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:1046) > > �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(Thread.java:484)-- > > Soft Solutions > Net Developper > Moodad Shadi > > www.softsolutions.fr > � > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org -- Soft Solutions, Liban Net Developper Moodad Shadi www.softsolutions.fr � --------------62A020E3BF990349710939E4 Content-Type: text/html; charset=x-user-defined Content-Transfer-Encoding: 7bit Hi,
I tried to follow this problem and found the following:
within the following class-method:
  org.apache.cocoon.generation.JspGenerator.generate()

the variable variable url being passed to the JspEngineImpl has the value = src.getSystemId()
so it will have the following string file//full_path_to_the_application/fileName.jsp
wich will coz a problem within the Jasper class (file not found) when searching for the propertie "javax.servlet.include.servlet_path"
so by replacing the url variable by the following value: httpRequest.getServletPath();
everything work fine.

so is this a bug or this is a configuration step I missed somewhere.

Tanx in advance.
 

"MOODAD Shadi (LB Soft)" wrote:

Hi

I'm trying to execute a JSP file under cocoon2 wich is running under
jakarta 4 as a servlet.
but the jsp isn't executed and i got the next error:

It seems that it enters JspGenerator but when executing the servlet by
JspEngineImpl the jsp file isn't executed and the byte stream is emty
and i don't find any error report.
could any one give me some hints on solving this probleme, or where can'
i find the logs of the jspengine.

org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate()
 at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:142)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)

 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

 at
org.apache.cocoon.www.conf.cocoon.sitemap_xmap.matchN10155(sitemap_xmap.java:1357)

 at
org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:1134)

 at
org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:1046)

 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(Thread.java:484)--

Soft Solutions
Net Developper
Moodad Shadi

www.softsolutions.fr
 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

--
Soft Solutions, Liban
Net Developper
Moodad Shadi

www.softsolutions.fr
  --------------62A020E3BF990349710939E4--