cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " ITANI Mohamed (LB Soft)" <mohamed.it...@softsolutions.fr>
Subject Encoding problem
Date Tue, 15 Jan 2002 19:31:49 GMT
Hi,

I'm trying to get the xml content of the jsp file below using the
following :

Document doc = parser.parse(new

InputSource("http://localhost:8080/NetApplication/SnaP/Common/Cmbs/Distributor.jsp"));

I'm using cocoon 1.8 with tomcat 3.2 under NT, I succeded to get the xml
and append it to the xsp page
when the xml content has no latin or special characters. But when the
content contains those characters I'm
getting the following exception:

org.xml.sax.SAXParseException: File
"http://localhost:8080/NetApplication/SnaP/Common/Cmbs/Distributor.jsp"
not
found.
        at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)

        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1179)
        at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)

        at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:310)

        at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1034)
        at
org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
        at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
        at
_C_._jakarta_tomcat._NetApplication._SnaP._Nego._Synth._Calcul._ListSynthCal.populateDocument(_ListSynthCal.java:125)

        at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
        at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:494)

        at org.apache.cocoon.Engine.handle(Engine.java:359)
        at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)

        at org.apache.tomcat.core.Handler.service(Handler.java:263)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)

        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

        at java.lang.Thread.run(Thread.java:484)


The file has been executed but when parsing it with parser.parse it's
giving that exception. Apparently it' an encoding
problem , how can I set the encoding of the parser?? or get the content
of the jsp file in another way??

Itani


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


Mime
View raw message