Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 22242 invoked by uid 500); 7 Feb 2002 06:55:25 -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 22224 invoked from network); 7 Feb 2002 06:55:24 -0000 Message-ID: <3C6224BF.F6AE50C2@softsolutions.fr> Date: Thu, 07 Feb 2002 08:54:55 +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 , cocoon-users@xml.apache.org Subject: JSPGenerator problem Content-Type: multipart/alternative; boundary="------------688642343B63F365EA92BB66" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------688642343B63F365EA92BB66 Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 8bit 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: � �� ��� ��� ��� �� 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 � --------------688642343B63F365EA92BB66 Content-Type: text/html; charset=x-user-defined Content-Transfer-Encoding: 7bit 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
  --------------688642343B63F365EA92BB66--