• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Samir ;
that did the trick.
 
Are we home yet? Wait, did we forget the tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic