wood burning stoves 2.0*
The moose likes Cattle Drive and the fly likes BeeServlet Example JSP 500 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "BeeServlet Example JSP 500 error" Watch "BeeServlet Example JSP 500 error" New topic

BeeServlet Example JSP 500 error

Dan Rh Jones

Joined: Aug 16, 2011
Posts: 19

I have tried to do the new BeeServlet example on

Everything compiles ok and I have jr.jar in
/usr/local/apache-tomcat-7.0.30/Home/lib folder

I have put the class file in /BeeServlet/WEB-INF/classes/com/javaranch/drive
the jsp is in /BeeServlet

I am getting a 500 error though.

I have googled this and the general consensus is that I am missing a
jar. And that is where I get stuck as I think I have what I need in
the correct place.

Again any pointers are greatly appreciated.



margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 317

You may be missing the servlet-api.jar , on my machine it is in my c:\tomcat\lib\ folder. On yours it would probably be in the same place you have the jr.jar.

Does the tomcat management console work on your machine?

You look like you are on linux, perhaps Ubuntu. Sometimes the Ubuntu setup uses different folders for the libraries than you would expect.
It is sorta covered in the JavaRanch Style Guide.
subject: BeeServlet Example JSP 500 error
Similar Threads
Package does not exist
error java.lang.NoClassDefFoundError: javax/servlet/Servlet
Cant run JAR file
IDE or bust?
java.lang.OutOfMemoryError: Java heap space