You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "MOODAD (Shadi LB Soft)" <sh...@softsolutions.fr> on 2002/02/07 07:54:55 UTC

JSPGenerator problem

Hi,
I'm trying to execute a jsp file under cocoon but I have a small porblem
that i didn't found a solution.
I'm using this configuration:
� <map:pipeline>
�� <map:match pattern="**.jsp">
��� <map:generate type="jsp" src="../../{1}.xml"/>
��� <!--map:transform src="../../xml2fo.xsl"/-->
��� <map:serialize/>
�� </map:match>
� </map:pipeline>

so when executing a jsp I got the following error:
org.xml.sax.SAXParseException: Document root element is missing.
������� at
org.apache.cocoon.components.parser.JaxpParser.fatalError(JaxpParser.java:182)

������� at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038)
������� at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)

but the jsp is a well formed xml and it execute from the tomcat.
so i trace the error in the code of the JSPGenerator.class and I found
that the request URI is correct but the size of the
httpRequest.getInputStream().available() is = 0.????? strange.

I'll be very thanxfull if someone have an ideas on that problem or could
give me some hints to the solution.

thanx in advance
--
Soft Solutions, Liban
Net Developper
Moodad Shadi

www.softsolutions.fr
�

Re: JSPGenerator problem

Posted by "MOODAD (Shadi LB Soft)" <sh...@softsolutions.fr>.
Hi
in fact yes it points to the jsp pages but this is an typing error.
until now i didn't find the solution

Chitharanjan Das wrote:

> Hello,
> ������� Shouldn't your generator point to JSP pages....
> <map:generate type="jsp" src="../../{1}.jsp"/>
>
> Regds,
> Chiths
>
> -----Original Message-----
> From: MOODAD (Shadi LB Soft) [mailto:shadi.moodad@softsolutions.fr]
> Sent: Wednesday, February 06, 2002 10:55 PM
> To: cocoon-dev; cocoon-users@xml.apache.org
> Subject: JSPGenerator problem
>
> Hi,
> I'm trying to execute a jsp file under cocoon but I have a small porblem
> that i didn't found a solution.
> I'm using this configuration:
> � <map:pipeline>
> �� <map:match pattern="**.jsp">
> ��� <map:generate type="jsp" src="../../{1}.xml"/>
> ��� <!--map:transform src="../../xml2fo.xsl"/-->
> ��� <map:serialize/>
> �� </map:match>
> � </map:pipeline>
> so when executing a jsp I got the following error:
> org.xml.sax.SAXParseException: Document root element is missing.
> ������� at
> org.apache.cocoon.components.parser.JaxpParser.fatalError(JaxpParser.jav
> a:182)
> ������� at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038)
> ������� at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)
> but the jsp is a well formed xml and it execute from the tomcat.
> so i trace the error in the code of the JSPGenerator.class and I found
> that the request URI is correct but the size of the
> httpRequest.getInputStream().available() is = 0.????? strange.
> I'll be very thanxfull if someone have an ideas on that problem or could
> give me some hints to the solution.
> thanx in advance
> --
> Soft Solutions, Liban
> Net Developper
> Moodad Shadi
> www.softsolutions.fr
> �
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

--
Soft Solutions, Liban
Net Developper
Moodad Shadi

www.softsolutions.fr
�


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: JSPGenerator problem

Posted by Chitharanjan Das <cd...@accordiasys.com>.
Hello,
	Shouldn't your generator point to JSP pages....
<map:generate type="jsp" src="../../{1}.jsp"/>

Regds,
Chiths

-----Original Message-----
From: MOODAD (Shadi LB Soft) [mailto:shadi.moodad@softsolutions.fr] 
Sent: Wednesday, February 06, 2002 10:55 PM
To: cocoon-dev; cocoon-users@xml.apache.org
Subject: JSPGenerator problem

Hi, 
I'm trying to execute a jsp file under cocoon but I have a small porblem
that i didn't found a solution. 
I'm using this configuration: 
  <map:pipeline> 
   <map:match pattern="**.jsp"> 
    <map:generate type="jsp" src="../../{1}.xml"/> 
    <!--map:transform src="../../xml2fo.xsl"/--> 
    <map:serialize/> 
   </map:match> 
  </map:pipeline> 
so when executing a jsp I got the following error: 
org.xml.sax.SAXParseException: Document root element is missing. 
        at
org.apache.cocoon.components.parser.JaxpParser.fatalError(JaxpParser.jav
a:182) 
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3038) 
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023) 
but the jsp is a well formed xml and it execute from the tomcat. 
so i trace the error in the code of the JSPGenerator.class and I found
that the request URI is correct but the size of the
httpRequest.getInputStream().available() is = 0.????? strange. 
I'll be very thanxfull if someone have an ideas on that problem or could
give me some hints to the solution. 
thanx in advance 
-- 
Soft Solutions, Liban 
Net Developper 
Moodad Shadi 
www.softsolutions.fr 
 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>