I still can't see my servlet even that I added the servlet mapping.
I changed in the apache httpd.conf to take all the servlets under the myApp
so its looks like :
JkMount /myApp/* testWorker
im trying to browse as
http://sun:9999/Testing http://sun:9999/myApp/Testing http://sun:9999/myApp/servlet/Testing but with no lock �
the web.xml now looks like this :
<?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>Testing</servlet-name>
<servlet-class>TestingServlet</servlet-class>
<servlet-mapping>
<servlet-name>Testing</servlet-name>
<url-pattern>/Testing</url-pattern>
</servlet-mapping>
</servlet>
</web-app>
the jk_mod log says :
[Tue Jun 27 13:19:34 2006] [jk_ajp_common.c (537)]: ajp_unmarshal_response: Header[1] [Content-Language] = [en]
[Tue Jun 27 13:19:34 2006] [jk_ajp_common.c (851)]: received from ajp13 #731
[Tue Jun 27 13:19:34 2006] [jk_ajp_common.c (851)]: received from ajp13 #2
[Tue Jun 27 13:19:34 2006] [jk_ajp_common.c (1716)]: Into jk_endpoint_t:
one, recycling connection
[Tue Jun 27 13:19:44 2006] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 27 13:19:44 2006] [jk_uri_worker_map.c (459)]: Attempting to map URI '/myApp/servlet/Testing'
[Tue Jun 27 13:19:44 2006] [jk_uri_worker_map.c (483)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match testWor
ker -> /myApp/
that means what ? that tomcat did found it ? but why it does not show it?
in the localhost_log.2006-06-27.txt log I see :
2006-06-27 12:49:40 StandardManager[/myApp]: Seeding random number generator class java.security.SecureRandom
2006-06-27 12:49:40 StandardManager[/myApp]: Seeding of random number generator has been completed
2006-06-27 12:49:40 StandardWrapper[/myApp
efault]: Loading container servlet default
2006-06-27 12:49:40 StandardWrapper[/myApp:invoker]: Loading container servlet invoker
2006-06-27 13:09:41 WebappLoader[/myApp]: Deploying class repositories to work directory /bld/rnde/RunEnv/apache/tomcat/work/S
tandalone/localhost/myApp
2006-06-27 13:09:41 WebappLoader[/myApp]: Deploy class files /WEB-INF/classes to /bld/rnde/RunEnv/apache/tomcat/webapps/myApp/
WEB-INF/classes
2006-06-27 13:09:41 StandardManager[/myApp]: Seeding random number generator class java.security.SecureRandom
2006-06-27 13:09:41 StandardManager[/myApp]: Seeding of random number generator has been completed
2006-06-27 13:09:41 StandardWrapper[/myApp
efault]: Loading container servlet default
2006-06-27 13:09:41 StandardWrapper[/myApp:invoker]: Loading container servlet invoker
2006-06-27 13:19:26 WebappLoader[/myApp]: Deploying class repositories to work directory /bld/rnde/RunEnv/apache/tomcat/work/S
tandalone/localhost/myApp
2006-06-27 13:19:26 WebappLoader[/myApp]: Deploy class files /WEB-INF/classes to /bld/rnde/RunEnv/apache/tomcat/webapps/myApp/
WEB-INF/classes
2006-06-27 13:19:26 StandardManager[/myApp]: Seeding random number generator class java.security.SecureRandom
2006-06-27 13:19:26 StandardManager[/myApp]: Seeding of random number generator has been completed
2006-06-27 13:19:26 StandardWrapper[/myApp
efault]: Loading container servlet default
2006-06-27 13:19:26 StandardWrapper[/myApp:invoker]: Loading container servlet invoker
what im doing wrong here ? I don�t understand .