XSP error
Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp=http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP error
Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP error
Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP error
Hi, with IE 6.0 should work.. no idea Ruben |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 02:26 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: RE: XSP error | --| Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP error
This problem looks very strange. When this problem appended, I tried to test a simple helloworld application (without XSP): map:pipeline map:match pattern=helloworld map:generate src=helloworld.xml/ map:transform src=helloworld2html.xsl/ map:serialize/ /map:match /map:pipeline and the result was a HTML page which looks like: -html -body h1Hello World/h1 /body /html The HTML tags wasn't interpreted! It's very strange. I have reloaded Tomcat three or four times and now the helloworld example above AND the XSP helloworld example (with the xml serializer) work very well. Now I have another XSP problem: Error: 500 Location: /cocoon/logicsheettest Internal Servlet Error: java.lang.IllegalAccessError: try to access method org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(Lorg/apache/cocoon/components/language/markup/AbstractMarkupLanguage$LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/SourceResolver;)V from class org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter.processingInstruction(XSPMarkupLanguage.java:352) at org.xml.sax.helpers.XMLFilterImpl.processingInstruction(XMLFilterImpl.java:651) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.processingInstruction(XSPMarkupLanguage.java:222) at org.apache.xerces.parsers.SAXParser.processingInstruction(SAXParser.java:1537) at org.apache.xerces.validators.common.XMLValidator.callProcessingInstruction(XMLValidator.java:1696) etc... No idea what it is! Thank you Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:42 À: [EMAIL PROTECTED] Objet: RE: XSP error Hi, with IE 6.0 should work.. no idea Ruben |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 02:26 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: RE: XSP error | --| Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml
RE: XSP error
That first problem sounds suspiciously like your browser caching the mime type for the url. If it happens again, close your browser, open a new one and try again. Geoff Howard --- [EMAIL PROTECTED] wrote: This problem looks very strange. When this problem appended, I tried to test a simple helloworld application (without XSP): map:pipeline map:match pattern=helloworld map:generate src=helloworld.xml/ map:transform src=helloworld2html.xsl/ map:serialize/ /map:match /map:pipeline and the result was a HTML page which looks like: -html -body h1Hello World/h1 /body /html The HTML tags wasn't interpreted! It's very strange. I have reloaded Tomcat three or four times and now the helloworld example above AND the XSP helloworld example (with the xml serializer) work very well. __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsp error! please help!
Group, I am developing a dynamic page with xml. I have included several packages (such as javax.parsers transform ...etc... in my xml file). What I have is java code (xsp:logic) that adds a child node to another xml file on my server. I think the problem is to do with the cocoon classpath but I can't figure out the exact problem. I have added the classpath to catalina.bat file, so that all the xml-related jar files are included in Tomcat's JVM but still no luck. Can anyone spot the problem? Where do I put my jar files then? My xml file that includes the xsp code is in the webapps/cocoon/proj/xsp/ directory... and my jar files are in C:/javaxml/ directory. Also, I added an entry to the sitemap so that it knows were to look for the xsp file Here's what I get: The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Language Exception More precisely: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling testxsp_xml: Line 172, column 4: Class org.apache.cocoon.www.proj.xsp.Document not found. Line 172, column 28: Class org.apache.cocoon.www.proj.xsp.Document not found. Line 173, column 4: Class org.apache.cocoon.www.proj.xsp.DocumentBuilderFactory not found. Line 173, column 37: Class org.apache.cocoon.www.proj.xsp.DocumentBuilderFactory not found. Line 173, column 37: Undefined variable or class name: DocumentBuilderFactory Line 177, column 6: Class org.apache.cocoon.www.proj.xsp.DocumentBuilder not found. Line 180, column 6: Class org.apache.cocoon.www.proj.xsp.Element not found. Line 180, column 22: Class org.apache.cocoon.www.proj.xsp.Element not found. Line 182, column 6: Class org.apache.cocoon.www.proj.xsp.NodeList not found. Line 203, column 8: Class org.apache.cocoon.www.proj.xsp.Node not found. Line 210, column 10: Class org.apache.cocoon.www.proj.xsp.NodeList not found. Line 212, column 12: Class org.apache.cocoon.www.proj.xsp.Node not found. Line 214, column 14: Class org.apache.cocoon.www.proj.xsp.Element not found. Line 214, column 28: Class org.apache.cocoon.www.proj.xsp.Element not found. Line 235, column 6: Class org.apache.cocoon.www.proj.xsp.Node not found. Line 235, column 19: Class org.apache.cocoon.www.proj.xsp.Node not found. Line 239, column 6: Class org.apache.cocoon.www.proj.xsp.TransformerFactory not found. Line 239, column 36: Class org.apache.cocoon.www.proj.xsp.TransformerFactory not found. Line 239, column 36: Undefined variable or class name: TransformerFactory Line 240, column 6: Class org.apache.cocoon.www.proj.xsp.Transformer not found. Line 241, column 6: Class org.apache.cocoon.www.proj.xsp.DOMSource not found. Line 241, column 29: Class org.apache.cocoon.www.proj.xsp.DOMSource not found. Line 242, column 6: Class org.apache.cocoon.www.proj.xsp.StreamResult not found. Line 242, column 32: Class org.apache.cocoon.www.proj.xsp.StreamResult not found. Line 254, column 11: Class org.apache.cocoon.www.proj.xsp.ParserConfigurationException not found. Line 264, column 11: Class org.apache.cocoon.www.proj.xsp.TransformerConfigurationException not found. Line 276, column 11: Class org.apache.cocoon.www.proj.xsp.TransformerException not found. Line 0, column 0: 27 errors _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP Error
This differs from the one mentioned in the FAQ. I tried the renaming trick and that had no effect. I'm using Cocoon 1.8.2 and Tomcat 3.2.3. This is the output from trying the First XSP Page sample: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.cocoon.processor.xsp.language.java.SunJavaCompiler.compile(SunJavaCompiler.java:68) at org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java:132) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:522) at org.apache.cocoon.Engine.handle(Engine.java:384) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Thanks - Tod - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP Error
That did it, I must have screwed something up in my JDK install. Thanks - Tod Christopher Painter-Wakefield wrote: Tod, it looks as if you're trying to run Cocoon under the JRE rather than the full JDK. The error you are getting is just saying that the compiler classes are missing. Try installing the full JDK. -Christopher - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP error
Please rename xml.jar and parser.jar such that they both come after x: i.e:xml-zxml.jar, parser-zparser.jar, Since tomcat generates classpath automaticaly, it adds xml and parser packagesbefore xalan,xerces..The error you got is classpath problem. - Original Message - From: Sehiya Jalaludheen To: [EMAIL PROTECTED] Sent: Monday, July 24, 2000 2:46 PM Subject: XSP error Hi, I am using Cocoon on Tomcat and while loading the XSP examples provided in the samples/xsp of Cocoon , i got the following error. --- Error found handling the request.java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not foundat org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess(XSPJavaPreprocessor.java:81)at org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, Compiled Code)at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)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:404)at org.apache.tomcat.core.Handler.service(Handler.java:286)at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)at java.lang.Thread.run(Thread.java:479) - The lib directory of tomcat now contains the following .jar files in the order below. 1.ant_1_1.jar.jar 2.xerces_1_2.jar3.jasper.jar4.jaxp.jar5.parser.jar6.servlet_2_2.jar7.webserver.jar8.bsf.jar.jar9.bsfengines.jar.jar10.fop_0_13_0.jar11.stylebook-1.0-b2.jar12.turbine-pool.jar13.xalan_1_2_D02.jar14.cocoon.jar 15.xml.jar Hope you can help. Thank you sehiya
XSP error
Hi, I am using Cocoon on Tomcat and while loading the XSP examples provided in the samples/xsp of Cocoon , i got the following error. --- Error found handling the request.java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not foundat org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XSPJavaPreprocessor.java, Compiled Code)at org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess(XSPJavaPreprocessor.java:81)at org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, Compiled Code)at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)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:404)at org.apache.tomcat.core.Handler.service(Handler.java:286)at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)at java.lang.Thread.run(Thread.java:479) - The lib directory of tomcat now contains the following .jar files in the order below. 1.ant_1_1.jar.jar 2.xerces_1_2.jar3.jasper.jar4.jaxp.jar5.parser.jar6.servlet_2_2.jar7.webserver.jar8.bsf.jar.jar9.bsfengines.jar.jar10.fop_0_13_0.jar11.stylebook-1.0-b2.jar12.turbine-pool.jar13.xalan_1_2_D02.jar14.cocoon.jar 15.xml.jar Hope you can help. Thank you sehiya