Olumide wrote:

Hello

I'm sure this is a FAQ and I've tried to retrieve the list of FAQ's without success, so please bear with me.

I find this hard to believe. You're saying that you cannot view http://jakarta.apache.org/tomcat/faq ?

I am trying to run the "Hello World" sample servlet (http://www.servlets.com/jservlet2/examples/ch02/HelloWorld.java) in Jason Hunter's book, Java Servlet Programming. I have successfully complied the "HelloWorld" source code and placed the *.class file in the directory: server_root/webapps/ROOT/WEB-INF/classes.

Most servlet books are out of date. They were written when Tomcat had something called "the Invoker servlet" enabled by default. This is no longer the case, because the Invoker servlet is a security risk, so in later versions of Tomcat (released after the book was published) the Invoker is disabled. Thus, the example from the book will not work.


See:

http://jakarta.apache.org/tomcat/faq/misc.html#compile
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
http://jakarta.apache.org/tomcat/faq/misc.html#evil

Also, as a novice, you are setting yourself up for some potential grief by using Apache. There is no requirement to use Apache to learn JSP and servlet development. You will make things much easier on yourself if you ignore Apache for now and simply use Tomcat. Tomcat is perfectly capable of handling all of your needs, both as a normal web server and as a servlet container for JSP and servlet development.

You can always add Apache into your environment later should you feel the need to do so.

John




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to