• 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

500 ERROR HELP!!!!!

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is the run down
i am trying to call a simple servlet (lets call it 'Love')
i compliled it and put the class file into the examples folder:
install dir/webapps/examples/WEB-INF/classes
i call it from the html like so:
http://localhost:8080/examples/servlet/Love
i registered it in the web.xml file found here:
install dir/webapps/examples/WEB-INF/
it looks like this:
=======================
<servlet>
<servlet-name>Love</servlet-name>
<servlet-class>Love</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Love</servlet-name>
<url-pattern>/Love</url-pattern>
</servlet-mapping>
==============================

i do all this and i still "Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error"
the error page reads:


sombody please help me out, my brain hurts
[ April 14, 2004: Message edited by: Caliph Herald ]
 
Caliph Herald
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anybody??
[ April 20, 2004: Message edited by: Caliph Herald ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you may have been bitten by the "invoker" servlet conventions.
See this FAQ here at the ranch.
Also put your servlet class in a package, it prevents many odd errors.
If you had browsed around in the last two weeks of messages you would have seen many similar problems - with fixes.
Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic