Forums Register Login

BeeServlet Example JSP 500 error

+Pie Number of slices to send: Send
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

+Pie Number of slices to send: Send
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.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1759 times.
Similar Threads
IDE or bust?
Cant run JAR file
java.lang.OutOfMemoryError: Java heap space
error java.lang.NoClassDefFoundError: javax/servlet/Servlet
Package does not exist
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:38:44.