Hi All,
I have problem with configuring Tomcat. Please help.
Linux - RedHat 7.2 kernel 2.4.7 Java - 1.4.0 (j2sdk-1.4.0) (/usr/java) Tomcat - jakarta-tomcat-4.0.3 (compiled from source)
Tomcat installed in "/usr/tomcat" port 8080
The example servlets which came with the tomcat is running fine.
I want to enable servlets in my "DocumentRoot" My servlets are in "/home/httpd/htdocs/servlet/WEB-INF/classes"
My Tomcat server.xml contains -
<Context path="/servlet" docBase="/home/httpd/htdocs/servlet" debug="9" reloadable="true" > <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_servlet_log." suffix=".txt" timestamp="true"/>
My .../servlet/WEB-INF/web.xml contains -
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app> <servlet> <servlet-name>Hello</servlet-name> <servlet-class>Hello</servlet-class> </servlet>
<servlet> <servlet-name>HelloWorldExample</servlet-name> <servlet-class>HelloWorldExample</servlet-class> </servlet> </web-app>
The context "servlet" loads OK. (I can see the context running in manager)
When I load http://192.168.1.100:8080/servlet/Hello OR http://192.168.1.100:8080/servlet/HelloWorldExample (taken from example dir of Tomcat)
It gives me "404 resource not available."
I also have difficulty compiling and installing mod_jk in apache (1.3.26)
All help and pointers will be greatly appreciated.
TIA for your help With regards,