Hello Ben,
The deployment descriptor in folder webapps\testservlet\WEB-INF
----------------------------------------------------------------
<?xml version="1.0"?>
<!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>testservlet</servlet-name>
<servlet-class>testservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>testservlet</servlet-name>
<url-pattern>/servlet/testservlet</url-pattern>
</servlet-mapping>
</web-app>
The class file - testservlet.class , is in folder webapps\testservlet\WEB-INF\classes
---------------------------------------------------------------------------
Apache httpd is having the following entry...
--------------------------------------------
LoadModule jk_module modules/mod_jk.so
<IfModule mod_jk.c>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Alias /jsp-examples "D:/ApacheSoftwareFoundation/Tomcat5.5/webapps/jsp-examples/"
<Directory "D:/ApacheSoftwareFoundation/Tomcat5.5/webapps/jsp-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
Alias /servlets-examples "D:/ApacheSoftwareFoundation/Tomcat5.5/webapps/servlets-examples/"
<Directory "D:/ApacheSoftwareFoundation/Tomcat5.5/webapps/servlets-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
<Location /*/WEB-INF/*>
AllowOverride None
deny from all
</Location>
JkMount /jsp-examples/*.jsp example
JkMount /servlets-examples/* example
JkMount /testservlet/* example
</IfModule>
The mod_jk modules is in modules folder
---------------------------------------
D:\ApacheSoftwareFoundation\Apache2.2\modules
'Apache/2.2.3(Win32)mod_jk/1.2.19' is displayed in the status bar of the
Apache Service Monitor screen.
The following worked fine...
----------------------------
Published site knobe.org
http://www.knobe.org - the default page obtained
http://www.knobe.org:8080 - the default Tomcat page displayed
http://www.knobe.org/jsp-examples/ - defauls
JSP examples page displayed
http://www.knobe.org/servlets-examples/ - displays default servlets examples page.Able to run the examples links in that page(eg. HelloWorld,functions ...etc)
and now this brings in the error...
-------------------------------
http://www.knobe.org/html/test.html - the page displayed with a submit button. POST to
action="http://www.knobe.org/testservlet/servlet/testservlet"
On clicking on the button the above mentioned error is displayed.
I hope it is now clear.
[ November 14, 2006: Message edited by: chelakkad ben ]