tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadia.denaantrek...@axa-bank.be
Subject starting a servlet gives a 404 Not found error from Tomcat
Date Fri, 04 May 2001 08:21:23 GMT
Hi ,

We are running :

- AIX 4.3.3.0
- IBM HTTPServer powered by apache
- Java 1.1.8
- TOMCAT Version 3.2.1


Can anyone help me on the following ???

When I try to start a servlet I get a 404 Not found error from Tomcat.

( http://s205.axa-bank.be/try/servlet/Hello )

    Not Found (404)

    Original request: /try/servlet/Hello

    Not found request: /try/servlet/Hello


Getting an html file http://s205.axa-bank.be/try/index.html works, so I
think the apache definitions are OK


On the console where tomcat was started I get the following:

        2001-05-03 12:03:16 - Ctx( /try ): 404 R( /try + /servlet/Hello
+ null) null


This is the mod_jk.log extract:

[jk_uri_worker_map.c (327)]: Into jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (389)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 6
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 6
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 6
[jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
[jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12
start sequence
[jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
[jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the
terminating mark
[jk_ajp12_worker.c (472)]: ajpv12_handle_request done
[jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
[jk_ajp12_worker.c (488)]: Into ajpv12_handle_response
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 404 Not
Found
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=404 Not
Found
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type:
text/html
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Content-Type=text/html
[jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header
arrays
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Length:
183
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Content-Length=183
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Engine:
Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.1.8; AIX 4.3
POWER_PC; java.vendor=IBM Corporation)
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Servlet-Engine=Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.1.8; AIX 4.3 POWER_PC; java.vendor=IBM Corporation)
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read
[jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done
[jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response
[jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response body

[jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is done

[jk_ajp12_worker.c (602)]: ajpv12_handle_response done
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done



access.log:

172.16.2.1 - - [03/May/2001:12:03:16 +0200] "GET /try/servlet/Hello
HTTP/1.0" 404 183


httpd.conf:

#Configure mod_jk

JkWorkersFile /usr/HTTPServer/tomcat/conf/workers.properties
JkLogFile /usr/HTTPServer/logs/mod_jk.log
JkLogLevel debug


### Initial security setup

<Directory /www>

AllowOverride AuthConfig Limit
Options FollowSymLinks
</Directory>

### Initial setup for virtual hosting

NameVirtualHost 172.16.2.205

### Axa virtual hosts

<VirtualHost 172.16.2.205>
</VirtualHost>

<VirtualHost s205.axa-bank.be>
DocumentRoot    /www/S205/
ServerName      s205.axa-bank.be
ScriptAlias     /cgi-bin/ /www/S205/cgi-bin/
Alias           /icons/ /www/S205/icons/
</VirtualHost>


#
#
Alias /try "/www/S205/try"
<Directory "/www/S205/try">
    Options Indexes FollowSymLinks
</Directory>

#
# The following line mounts all JSP files and the /servlet/ uri to
tomcat
#
JkMount /try/servlet/* ajp12


server.xml

<Context path="/try"
                 docBase="/www/S205/try"
                 crossContext="true"
                 debug="0"
                 reloadable="true"
                 trusted="false" >
 </Context>





Mime
View raw message