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/compiler/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

Reply via email to