Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alex Hartman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks,

alex
 
samir singha
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Samir ;
that did the trick.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic