Meaningless Drivel is fun!*
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
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "BeeServlet Example JSP 500 error" Watch "BeeServlet Example JSP 500 error" New topic
Author

BeeServlet Example JSP 500 error

Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
Afternoon

I have tried to do the new BeeServlet example on
http://www.javaranch.com/drive/servlet/index.jsp#reverse

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.

Thanks

Dan

margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 317
    
    5

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.
 
wood burning stoves
 
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