Hello,

I have just installed Apache Jakarta Tomcat 4.0.3, Java 2 SDK 1.4.0,
and Java 2 SDK EE 1.3.1 on a Red Hat 7.3 Linux platform. I appended
the following lines to my personal ~/.bash_profile file:

export PATH="$PATH:/usr/local/jdk/bin"
export JAVA_HOME="/usr/local/j2sdk1.4.0"
export CLASSPATH=".:/usr/local/j2sdkee1.3.1/lib/j2ee.jar"
export CATALINA_HOME="/usr/local/jakarta-tomcat-4.0.3"
export CLASSPATH="$CLASSPATH:/usr/local/saxon/saxon.jar"

I can view the following file:

/usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/index.html

by pointing my browser to http://localhost:8080/

However when I tried to run a servlet by creating directory:

/usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes

and placing class file HelloWorldServlet.class there and

accessing http://localhost:8080/servlet/HelloWorldServlet

I get the following error:

Apache Tomcat/4.0.3 - HTTP Status 404 - /servlets/HelloWorldServlet

!!!!!!!!!!

Why? I can view the example servlet files just fine.
Is there some file such as web.xml or so which I need
to configure to be able to view HelloWorldServlet in
this directory (which I believe is the standard place
where servlets should be put)?

Thanks a lot,

Neil


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

Reply via email to