You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Arumugam, SenthilX" <se...@intel.com> on 2000/08/14 18:51:36 UTC

RE:Thanks and one more Help please!!!

Thanks lot for your kind info! and now according to your advise on web.wml,
now http://localhost/Cocoon.xml  working.
But Whenever I try one somple from apache named DefaultApplyXSl servlet
under xalan_1_0_1, i am getting the
following error. I used the samples\wap\example-portfolio.xml and
corresponding .xsl for that servlet class.
The error says as follows

500 Internal Server Error
Exception occurred during Transformation: 
Parsing XML Document from request parameter:
http://jkao2-desk1/cocoonwap/example-portfolio.xml 
Parsing XSL Stylesheet Document from request parameter:
http://jkao2-desk1/cocoonwap/portfolio-html.xsl 
Parsing XML Document from request parameter:
http://jkao2-desk1/cocoonwap/example-portfolio.xml 
The markup in the document following the root element must be well-formed. 

 org.apache.xalan.xslt.XSLProcessorException: The markup in the document
following the root element must be well-formed.
	at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1630)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:7
22)
	at ApplyXSL.process(ApplyXSL.java:331)
	at ApplyXSL.doGet(ApplyXSL.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
	at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
	at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
---------
org.xml.sax.SAXException: XercesLiaison.parse error
	at
org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:291)
	at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:262)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:7
15)
	at ApplyXSL.process(ApplyXSL.java:331)
	at ApplyXSL.doGet(ApplyXSL.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
	at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
	at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
---------
org.xml.sax.SAXParseException: The markup in the document following the root
element must be well-formed.
	at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:969)
	at
org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispat
ch(XMLDocumentScanner.java, Compiled Code)
	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java, Compiled Code)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
	at
org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:273)
	at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:262)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:7
15)
	at ApplyXSL.process(ApplyXSL.java:331)
	at ApplyXSL.doGet(ApplyXSL.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
)
	at allaire.jrun.servlet.Invoker.service(Invoker.java:84)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled
Code)
	at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
	at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
 


Thanks,
Senthil kumar Arumugam

-----Original Message-----
From: Baback Elmieh [mailto:belmieh@ccs.neu.edu]
Sent: Friday, August 11, 2000 2:32 PM
To: 'xalan-dev@xml.apache.org'
Subject: Re: Help please!!!


I think cocoon.xml is an internal file to Cocoon. If you have the servlet
correctly installed you just need to type:

http://localhost/Cocoon.xml in to your web browser and you will see the
page. (not the capital C)

Make sure that the servlet definition tags in your http server are in
between the <web-app> tags. I got it configured on resin using the
following tags:
<!-- Start Cocoon Section -->
      <servlet servlet-name='org.apache.cocoon.Cocoon'
servlet-class='org.apache.cocoon.Cocoon'>
        <init-param properties='WEB-INF/classes/cocoon.properties'
info='WEB-INF/classes/cocoon.properties'/>
      </servlet>

      <servlet-mapping servlet-name='org.apache.cocoon.Cocoon'
url-pattern='*.xml' />
<!--    End Cocoon Section -->

Make sure that the cocoon.properties file is where the init-param says it
is.

- Baback

On Fri, 11 Aug 2000, Arumugam, SenthilX wrote:

> Hello,
>  I want to know where is the cocoon.xml file which is not available in
> cocoon-1.7.4.zip file.
> I also tried in the repository column of apache web site for cocoon.
> I couldnt get this file. Also I want to know how to configure cocoon in
jrun
> servlet engine with IIS,jdk1.2.2.
> please help me.
> Thanks,
> Senthil
>