I've checked into this and I'm pretty certain there can't be a conflict
as the jsp file is created using an editor (I haven't got as far as
generating JSP documents via XSLT!), unless I'm missing something

David Bull

Duane Morse wrote:

>This may not be the problem you're facing, but it's worth checking out.he
>
>The servlet container may have its own XML jar files, so there could be a
>conflict
>between what you used to generate the .class files and the actual XML
>classes that
>are loaded by the container.
>
>Duane Morse, Eldorado Computing Inc., Phoenix, Arizona
>
>
>-----Original Message-----
>From: David Bull [mailto:[EMAIL PROTECTED]]
>Sent: Friday, February 15, 2002 8:41 AM
>To: [EMAIL PROTECTED]
>Subject: JSP as XML document
>
>
>Hello,
>
>I would be grateful for some help.
>
>I've been trying to test the XML syntax for JSP documents. I have been
>using JDK 1.4, tomcat 4.0.2 and have been testing on the Redhat 7.2
>platform using Netscape 6 and Opera 5.
>
>I have tried various simple examples, including the following published
>by Stephanie Fesler  on the O'Reilly web site
>
><jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"; version="1.2">
><jsp:text>
>  <html>
>  <head>
>  <title> Simple JSP Document </title>
>  </head>
>  <body>
>  <h1>Hello World</h1>
>  </body>
>  </html>
></jsp:text>
></jsp:root>
>
>However, every time I try and access this jsp file I receive the
>following exception:
>
>javax.servlet.ServletException: (class:
>org/apache/jasper/compiler/ParserXJspSaxHandler$Node, method:
>signature:
>(Lorg/apache/jasper/compiler/ParserXJspSaxHandler;Lorg/apache/jasper/compile
>r/ParserXJspSaxHandler$Node;)V)
>Expecting to find object/array on stack
>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>
>Does anyone have any suggestions as to why this is happening? As I
>understand it, the XML syntax should be equally valid (traditional jsp
>pages work fine for me).
>
>In particular, is the namespace correct ( I have seen an alternative:
>http://java.sun.com/jsp_1_2 but that doesn't work either)?
>
>Or have I missed something fundamental in my tomcat configuration?
>
>BTW I have tried adding the <?xml version="1.0"> declaration but this
>didn't help.
>
>Many thanks in advance,
>
>David Bull
>Technology Innovation Centre,
>Millenium Point,
>Birmingham B47XG
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to