File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes org.apache.jasper.JasperException: Advice/Help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "org.apache.jasper.JasperException: Advice/Help needed" Watch "org.apache.jasper.JasperException: Advice/Help needed" New topic

org.apache.jasper.JasperException: Advice/Help needed

Alex Hartman

Joined: Oct 11, 2009
Posts: 7
Hey All,

I am running the example code in the Head First Servlet book, specifically the BeerSelect version 3. I checked and re-checked my directory structure and the code and it all seems correct. Nevertheless, when running the code, I get the following error message:

Now, in the first line it says "org.apache.jasper.JasperException: org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/web.xml: (line 5, col 16)
Below is my XML file

Line 5 would be "version="2.4">" and I don't see any mistakes in that line.
Then "org.xml.sax.SAXParseException: The prefix "xlmns" for attribute "xlmns:xsi" associated with an element type "web-app" is not bound." I am really kind of lost here as I am new to servlets. If somebody could give me some advice on how to resolve this, I would really appreciate it.


samir singha

Joined: Mar 17, 2008
Posts: 23
if your application is running on Tomcat. open a web.xml file from tomcat/webappsservlet-example/WEB-INF directory. copy the the upper portion of the xml file upto <web-app> tag in your web.xml file. your web.xml file seems missing something like <?xml-version="1.0 encoding="IS0-8859-1">. restart tomcat and check again. Hope this will help.
Alex Hartman

Joined: Oct 11, 2009
Posts: 7
Thank you Samir ;
that did the trick.
I agree. Here's the link:
subject: org.apache.jasper.JasperException: Advice/Help needed
jQuery in Action, 3rd edition