I'm stuck getting the MVC BeeServlet example to work. Here's what I have so far.
- I copied jr.jar to /usr/local/tomcat/lib/
- I copied Bee.jsp to /usr/local/tomcat/webapps/ROOT/
- I compile BeeServlet using -classpath /usr/local/tomcat/lib/servlet-api.jar
This gives me BeeServlet.class, BeeServlet$1.class, and BeeServlet$Default.class.
(Does jr.jar also need to be in the classpath?)
- I move the three class files to /usr/local/tomcat/webapps/ROOT/WEB-INF/classes
- I point my browser to
http://localhost:8080/servlet/BeeServlet and get HTTP Status 500, The Server encountered an internal error etc.
- I also tried putting the three class files in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/com/javaranch/drive/ and then point my browser to
http://localhost:8080/servlet/com/javaranch/drive/BeeServlet and get HTTP Status 404 - requested resource is not available.
Any help would be most appreciated!
Thanks.
- Dan