You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hracek, Petr" <pe...@siemens-enterprise.com> on 2009/06/15 11:04:00 UTC

Beginner with apache

Hello all,
 
sorry for this beginner question but I do not know who to setup my
servlet.
On the machine is installed and run apache server as well. Version is
2.2.3.
In the configuration file is mentioned:
JkMount /sso/servlet/* ajp13
JkMount /swt/servlet/* ajp13
 
My TOMCAT_HOME directory is /srv/www/tomcat55/base/.
I have to question 
1) My servlets are stored in the another directories e.g.
/opt/sso/servlets, /opt/swt/servlets, etc.
Is it possible somewho to set tomcat so that it will allow to run
servlets from those directories?
 
2) If question 1 is not allowed then not another question from my side
occurs:
- is it possible to make a directory structure as
/srv/www/tomcat55/base/ROOT/sso/WEB-INF and
/srv/www/tomcat55/base/ROOT/swt/WEB-INF
    where will be placed those servlets? How to configure web.xml file?
 
regards
Petr

RE: Beginner with apache

Posted by "Hracek, Petr" <pe...@siemens-enterprise.com>.
Finally the servlet is working.
Could you please tell me how to deploy the application to tomcat from command line?

Is it enough to copy the application to the specific tomcat directories and afterwards
restart tomcat?

regards / S pozdravem
Petr Hráček

-----Original Message-----
From: Hracek, Petr [mailto:petr.hracek@siemens-enterprise.com] 
Sent: Wednesday, June 17, 2009 11:08 AM
To: Tomcat Users List
Subject: RE: Beginner with apache

Output of command find is:
apache:~ # find /opt/secm/servlet -print
/opt/secm/servlet
/opt/secm/servlet/WEB-INF
/opt/secm/servlet/WEB-INF/classes
/opt/secm/servlet/WEB-INF/classes/SecMServlet.class
/opt/secm/servlet/WEB-INF/web.xml
apache:~ #

Full URL is: https://10.6.81.5/SecM/servlet/SecMServlet

HTML Code of return page is:
<html><head><title>Apache Tomcat/5.0 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /SecM/servlet/SecMServlet</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/SecM/servlet/SecMServlet</u></p><p><b>description</b> <u>The requested resource (/SecM/servlet/SecMServlet) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0</h3></body></html>

Rewrite Log is:
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (2) init rewrite engine with requested uri /SecM/servlet/SecMServlet
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (3) applying pattern '/servlet/' to uri '/SecM/servlet/SecMServlet'
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (1) pass through /SecM/servlet/SecMServlet

Output of mod_jk.log is:
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/SecM/servlet/SecMServlet' from 7 maps
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/RepGen/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/SNMP/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/SecM/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/SecM/servlet/*=ajp13'
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_handler::mod_jk.c (2459): Into handler jakarta-servlet worker=ajp13 r->proxyreq=0
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker ajp13
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_maintain::jk_worker.c (339): Maintaining worker ajp13
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type 'ajp13'
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] init_ws_service::mod_jk.c (977): Service protocol=HTTP/1.1 method=GET ssl=true host=(null) addr=10.6.254.22 name=10.6.81.5 port=443 auth=(null) user=(null) laddr=10.6.81.5 raddr=10.6.254.22 uri=/SecM/servlet/SecMServlet
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_get_endpoint::jk_ajp_common.c (2977): acquired connection pool slot=0 after 0 retries
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_service::jk_ajp_common.c (2283): processing ajp13 with 2 retries
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_send_request::jk_ajp_common.c (1501): (ajp13) all endpoints are disconnected.
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (452): socket TCP_NODELAY set to On
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (576): trying to connect socket 17 to 127.0.0.1:8009
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (602): socket 17 connected to 127.0.0.1:8009
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connect_to_endpoint::jk_ajp_common.c (931): Connected socket 17 to (127.0.0.1:8009)
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): sending to ajp13 pos=4 len=696 max=8192
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0000    12 34 02 B4 02 02 00 08 48 54 54 50 2F 31 2E 31  - .4......HTTP/1.1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0010    00 00 19 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74  - .../SecM/servlet
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0020    2F 53 65 63 4D 53 65 72 76 6C 65 74 00 00 0B 31  - /SecMServlet...1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0030    30 2E 36 2E 32 35 34 2E 32 32 00 FF FF 00 09 31  - 0.6.254.22.....1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0040    30 2E 36 2E 38 31 2E 35 00 01 BB 01 00 09 A0 01  - 0.6.81.5........
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0050    01 0F 69 6D 61 67 65 2F 67 69 66 2C 20 69 6D 61  - ..image/gif,.ima
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0060    67 65 2F 78 2D 78 62 69 74 6D 61 70 2C 20 69 6D  - ge/x-xbitmap,.im
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0070    61 67 65 2F 6A 70 65 67 2C 20 69 6D 61 67 65 2F  - age/jpeg,.image/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0080    70 6A 70 65 67 2C 20 61 70 70 6C 69 63 61 74 69  - pjpeg,.applicati
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0090    6F 6E 2F 78 61 6D 6C 2B 78 6D 6C 2C 20 61 70 70  - on/xaml+xml,.app
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00a0    6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 6D 73 2D  - lication/vnd.ms-
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00b0    78 70 73 64 6F 63 75 6D 65 6E 74 2C 20 61 70 70  - xpsdocument,.app
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00c0    6C 69 63 61 74 69 6F 6E 2F 78 2D 6D 73 2D 78 62  - lication/x-ms-xb
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00d0    61 70 2C 20 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - ap,.application/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00e0    78 2D 6D 73 2D 61 70 70 6C 69 63 61 74 69 6F 6E  - x-ms-application
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00f0    2C 20 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E  - ,.application/vn
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0100    64 2E 6D 73 2D 65 78 63 65 6C 2C 20 61 70 70 6C  - d.ms-excel,.appl
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0110    69 63 61 74 69 6F 6E 2F 76 6E 64 2E 6D 73 2D 70  - ication/vnd.ms-p
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0120    6F 77 65 72 70 6F 69 6E 74 2C 20 61 70 70 6C 69  - owerpoint,.appli
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0130    63 61 74 69 6F 6E 2F 6D 73 77 6F 72 64 2C 20 61  - cation/msword,.a
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0140    70 70 6C 69 63 61 74 69 6F 6E 2F 78 2D 73 68 6F  - pplication/x-sho
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0150    63 6B 77 61 76 65 2D 66 6C 61 73 68 2C 20 2A 2F  - ckwave-flash,.*/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0160    2A 00 00 0F 41 63 63 65 70 74 2D 4C 61 6E 67 75  - *...Accept-Langu
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0170    61 67 65 00 00 0E 65 6E 2D 75 73 2C 64 65 3B 71  - age...en-us,de;q
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0180    3D 30 2E 35 00 00 0F 41 63 63 65 70 74 2D 45 6E  - =0.5...Accept-En
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0190    63 6F 64 69 6E 67 00 00 0D 67 7A 69 70 2C 20 64  - coding...gzip,.d
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01a0    65 66 6C 61 74 65 00 A0 0E 00 A1 4D 6F 7A 69 6C  - eflate.....Mozil
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01b0    6C 61 2F 34 2E 30 20 28 63 6F 6D 70 61 74 69 62  - la/4.0.(compatib
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01c0    6C 65 3B 20 4D 53 49 45 20 36 2E 30 3B 20 57 69  - le;.MSIE.6.0;.Wi
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01d0    6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 53 56  - ndows.NT.5.1;.SV
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01e0    31 3B 20 2E 4E 45 54 20 43 4C 52 20 31 2E 30 2E  - 1;..NET.CLR.1.0.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01f0    33 37 30 35 3B 20 2E 4E 45 54 20 43 4C 52 20 32  - 3705;..NET.CLR.2
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0200    2E 30 2E 35 30 37 32 37 3B 20 2E 4E 45 54 20 43  - .0.50727;..NET.C
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0210    4C 52 20 33 2E 30 2E 30 34 35 30 36 2E 33 30 3B  - LR.3.0.04506.30;
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0220    20 2E 4E 45 54 20 43 4C 52 20 31 2E 31 2E 34 33  - ..NET.CLR.1.1.43
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0230    32 32 3B 20 49 6E 66 6F 50 61 74 68 2E 31 3B 20  - 22;.InfoPath.1;.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0240    4D 53 2D 52 54 43 20 4C 4D 20 38 29 00 A0 0B 00  - MS-RTC.LM.8)....
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0250    09 31 30 2E 36 2E 38 31 2E 35 00 A0 06 00 0A 4B  - .10.6.81.5.....K
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0260    65 65 70 2D 41 6C 69 76 65 00 A0 09 00 23 41 53  - eep-Alive....#AS
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0270    55 4E 49 54 59 5F 53 45 53 53 49 4F 4E 3D 2D 54  - UNITY_SESSION=-T
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0280    43 6C 35 67 45 63 64 5A 64 45 30 39 41 39 46 39  - Cl5gEcdZdE09A9F9
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0290    34 00 00 0C 54 49 54 4C 45 5F 50 52 45 46 49 58  - 4...TITLE_PREFIX
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 02a0    00 00 0D 48 69 50 61 74 68 34 30 30 30 20 2D 20  - ...HiPath4000.-.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 02b0    00 A0 08 00 01 30 00 FF 00 00 00 00 00 00 00 00  - .....0..........
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_send_request::jk_ajp_common.c (1560): (ajp13) request body to send 0 - request body to resend 0
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=98 max=8192
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    04 01 94 00 19 2F 53 65 63 4D 2F 73 65 72 76 6C  - ...../SecM/servl
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0010    65 74 2F 53 65 63 4D 53 65 72 76 6C 65 74 00 00  - et/SecMServlet..
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0020    02 00 0C 43 6F 6E 74 65 6E 74 2D 54 79 70 65 00  - ...Content-Type.
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0030    00 17 74 65 78 74 2F 68 74 6D 6C 3B 63 68 61 72  - ..text/html;char
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0040    73 65 74 3D 75 74 66 2D 38 00 00 0E 43 6F 6E 74  - set=utf-8...Cont
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0050    65 6E 74 2D 4C 65 6E 67 74 68 00 00 04 31 30 32  - ent-Length...102
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0060    31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - 1...............
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (660): status = 404
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (667): Number of headers is = 2
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (723): Header[0] [Content-Type] = [text/html;charset=utf-8]
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (723): Header[1] [Content-Length] = [1021]
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=1025 max=8192
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    03 03 FD 3C 68 74 6D 6C 3E 3C 68 65 61 64 3E 3C  - ...<html><head><
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0010    74 69 74 6C 65 3E 41 70 61 63 68 65 20 54 6F 6D  - title>Apache.Tom
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0020    63 61 74 2F 35 2E 30 20 2D 20 45 72 72 6F 72 20  - cat/5.0.-.Error.
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0030    72 65 70 6F 72 74 3C 2F 74 69 74 6C 65 3E 3C 73  - report</title><s
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0040    74 79 6C 65 3E 3C 21 2D 2D 48 31 20 7B 66 6F 6E  - tyle><!--H1.{fon
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0050    74 2D 66 61 6D 69 6C 79 3A 54 61 68 6F 6D 61 2C  - t-family:Tahoma,
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0060    41 72 69 61 6C 2C 73 61 6E 73 2D 73 65 72 69 66  - Arial,sans-serif
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0070    3B 63 6F 6C 6F 72 3A 77 68 69 74 65 3B 62 61 63  - ;color:white;bac
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0080    6B 67 72 6F 75 6E 64 2D 63 6F 6C 6F 72 3A 23 35  - kground-color:#5
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0090    32 35 44 37 36 3B 66 6F 6E 74 2D 73 69 7A 65 3A  - 25D76;font-size:
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00a0    32 32 70 78 3B 7D 20 48 32 20 7B 66 6F 6E 74 2D  - 22px;}.H2.{font-
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00b0    66 61 6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72  - family:Tahoma,Ar
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00c0    69 61 6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63  - ial,sans-serif;c
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00d0    6F 6C 6F 72 3A 77 68 69 74 65 3B 62 61 63 6B 67  - olor:white;backg
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00e0    72 6F 75 6E 64 2D 63 6F 6C 6F 72 3A 23 35 32 35  - round-color:#525
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00f0    44 37 36 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 36  - D76;font-size:16
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0100    70 78 3B 7D 20 48 33 20 7B 66 6F 6E 74 2D 66 61  - px;}.H3.{font-fa
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0110    6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72 69 61  - mily:Tahoma,Aria
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0120    6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63 6F 6C  - l,sans-serif;col
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0130    6F 72 3A 77 68 69 74 65 3B 62 61 63 6B 67 72 6F  - or:white;backgro
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0140    75 6E 64 2D 63 6F 6C 6F 72 3A 23 35 32 35 44 37  - und-color:#525D7
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0150    36 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 34 70 78  - 6;font-size:14px
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0160    3B 7D 20 42 4F 44 59 20 7B 66 6F 6E 74 2D 66 61  - ;}.BODY.{font-fa
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0170    6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72 69 61  - mily:Tahoma,Aria
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0180    6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63 6F 6C  - l,sans-serif;col
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0190    6F 72 3A 62 6C 61 63 6B 3B 62 61 63 6B 67 72 6F  - or:black;backgro
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01a0    75 6E 64 2D 63 6F 6C 6F 72 3A 77 68 69 74 65 3B  - und-color:white;
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01b0    7D 20 42 20 7B 66 6F 6E 74 2D 66 61 6D 69 6C 79  - }.B.{font-family
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01c0    3A 54 61 68 6F 6D 61 2C 41 72 69 61 6C 2C 73 61  - :Tahoma,Arial,sa
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01d0    6E 73 2D 73 65 72 69 66 3B 63 6F 6C 6F 72 3A 77  - ns-serif;color:w
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01e0    68 69 74 65 3B 62 61 63 6B 67 72 6F 75 6E 64 2D  - hite;background-
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01f0    63 6F 6C 6F 72 3A 23 35 32 35 44 37 36 3B 7D 20  - color:#525D76;}.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0200    50 20 7B 66 6F 6E 74 2D 66 61 6D 69 6C 79 3A 54  - P.{font-family:T
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0210    61 68 6F 6D 61 2C 41 72 69 61 6C 2C 73 61 6E 73  - ahoma,Arial,sans
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0220    2D 73 65 72 69 66 3B 62 61 63 6B 67 72 6F 75 6E  - -serif;backgroun
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0230    64 3A 77 68 69 74 65 3B 63 6F 6C 6F 72 3A 62 6C  - d:white;color:bl
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0240    61 63 6B 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 32  - ack;font-size:12
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0250    70 78 3B 7D 41 20 7B 63 6F 6C 6F 72 20 3A 20 62  - px;}A.{color.:.b
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0260    6C 61 63 6B 3B 7D 41 2E 6E 61 6D 65 20 7B 63 6F  - lack;}A.name.{co
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0270    6C 6F 72 20 3A 20 62 6C 61 63 6B 3B 7D 48 52 20  - lor.:.black;}HR.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0280    7B 63 6F 6C 6F 72 20 3A 20 23 35 32 35 44 37 36  - {color.:.#525D76
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0290    3B 7D 2D 2D 3E 3C 2F 73 74 79 6C 65 3E 20 3C 2F  - ;}--></style>.</
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02a0    68 65 61 64 3E 3C 62 6F 64 79 3E 3C 68 31 3E 48  - head><body><h1>H
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02b0    54 54 50 20 53 74 61 74 75 73 20 34 30 34 20 2D  - TTP.Status.404.-
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02c0    20 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74 2F 53  - ./SecM/servlet/S
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02d0    65 63 4D 53 65 72 76 6C 65 74 3C 2F 68 31 3E 3C  - ecMServlet</h1><
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02e0    48 52 20 73 69 7A 65 3D 22 31 22 20 6E 6F 73 68  - HR.size="1".nosh
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02f0    61 64 65 3D 22 6E 6F 73 68 61 64 65 22 3E 3C 70  - ade="noshade"><p
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0300    3E 3C 62 3E 74 79 70 65 3C 2F 62 3E 20 53 74 61  - ><b>type</b>.Sta
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0310    74 75 73 20 72 65 70 6F 72 74 3C 2F 70 3E 3C 70  - tus.report</p><p
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0320    3E 3C 62 3E 6D 65 73 73 61 67 65 3C 2F 62 3E 20  - ><b>message</b>.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0330    3C 75 3E 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74  - <u>/SecM/servlet
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0340    2F 53 65 63 4D 53 65 72 76 6C 65 74 3C 2F 75 3E  - /SecMServlet</u>
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0350    3C 2F 70 3E 3C 70 3E 3C 62 3E 64 65 73 63 72 69  - </p><p><b>descri
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0360    70 74 69 6F 6E 3C 2F 62 3E 20 3C 75 3E 54 68 65  - ption</b>.<u>The
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0370    20 72 65 71 75 65 73 74 65 64 20 72 65 73 6F 75  - .requested.resou
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0380    72 63 65 20 28 2F 53 65 63 4D 2F 73 65 72 76 6C  - rce.(/SecM/servl
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0390    65 74 2F 53 65 63 4D 53 65 72 76 6C 65 74 29 20  - et/SecMServlet).
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03a0    69 73 20 6E 6F 74 20 61 76 61 69 6C 61 62 6C 65  - is.not.available
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03b0    2E 3C 2F 75 3E 3C 2F 70 3E 3C 48 52 20 73 69 7A  - .</u></p><HR.siz
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03c0    65 3D 22 31 22 20 6E 6F 73 68 61 64 65 3D 22 6E  - e="1".noshade="n
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03d0    6F 73 68 61 64 65 22 3E 3C 68 33 3E 41 70 61 63  - oshade"><h3>Apac
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03e0    68 65 20 54 6F 6D 63 61 74 2F 35 2E 30 3C 2F 68  - he.Tomcat/5.0</h
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03f0    33 3E 3C 2F 62 6F 64 79 3E 3C 2F 68 74 6D 6C 3E  - 3></body></html>
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ws_write::mod_jk.c (506): written 1021 out of 1021
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=2 max=8192
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - ................
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_process_callback::jk_ajp_common.c (1846): AJP13 protocol: Reuse is OK
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] ajp_reset_endpoint::jk_ajp_common.c (743): (ajp13) resetting endpoint with sd = 17
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] ajp_done::jk_ajp_common.c (2905): recycling connection pool slot=0 for worker ajp13
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] jk_handler::mod_jk.c (2599): Service finished with status=404 for worker=ajp13
SLES10apache:/opt/secm/servlet #


/etc/tomcat5/base/uriworkermap.properties file is:
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
/SecM/servlet/*=ajp13
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus

Shall I add something to the Apache2 as is mentioned there:
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html 
section "Configuring Apache to serve static web application files"
I mean Alias, Directory, Location directive

Thank you in advance

Regards / S pozdravem
Petr Hráček

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Tuesday, June 16, 2009 3:50 PM
To: Tomcat Users List
Subject: Re: Beginner with apache

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr,

On 6/16/2009 4:03 AM, Hracek, Petr wrote:
> Now I have changed the files basely you mail and now situation is following:

You are getting closer.

> I am trying to develop a new servlet:
> 
> /opt/secm/servlet directory has WEB-INF structure with class file and web.xml file.

Can you post the result of the following command:

$ find /opt/secm/servlet -print

That way we can see if everything is where it should be.

> What rights has to have directory servlet and all subdirectories.

The euid of the Tomcat process must be able to read and execute /opt,
/opt/secm, /opt/secm/servlet, and all other directories. It must have
read access to all files under /opt/secm/servlet.

> In the web.xml file is:

web.xml looks good, depending on how you want to deploy. Keep this line
of config in mind going forward:

>         <url-pattern>/SecM/servlet/SecMServlet</url-pattern>

[snip]

> In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined:
> <Context docBase="/opt/secm/servlet"
>     crossContext="false" debug="0" reloadable="false" >
> </Context>

Assuming that your SecMServlet.xml file is properly loaded (log files
should confirm that this "context" (or webapp) is being loaded).

If you want to access this servlet, you'll need a URL like this:

http://host:port/SecMServlet/secM/servlet/SecMServlet

This URL is obtained by concatenating the "context name" (taken from the
context XML's filename, SecMServlet.xml, and removing the ".xml" from
the end) plus the <url-pattern> you assigned to your servlet in web.xml.
Given your original question, I think you probably want your setup to be
this:

(Your names have changed from sso and swt to SecM and stuff like this,
so it's tough to give you good advice, but I'll try.)

1. Use /etc/tomcat55/Catalina/localhost/SecM.xml as your context.xml
file. Do not make any changes to the contents of this file.

2. Change your <url-pattern> in your web.xml file to be this:

<url-pattern>/servlet/SecMServlet</url-pattern>

3. Change your mod_jk configuration to be:

   JkMount /SecM/servlet/SecMservlet ajp13

   (If you have multiple servlets, map them individually. If you have
    /many/ servlets that all match a certain pattern, feel free to
    just map the pattern like /SecM/servlet/*).

Now, the URL you will use to access your servlet will be
http://host:port/SecM/servlet/SecMServlet

Note that the <url-pattern> you use can be arbitrary... there's no
reason the word "servlet" needs to appear anywhere in that URL.

> After this configuration WEB browser show me: HTTP 400 - BAD Request

Could you post the whole error? Is there anything in the log files?
Often, you'll get a 400 when the context you're trying to reach has
failed to load for some reason.

> If the content file has the name SecM than I received HTTP 404 - The
> requested resource is not available.

Full URL please?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAko3oxEACgkQ9CaO5/Lv0PANtQCfSAC1bstKKOT+XIItkAen63F4
3+kAn0svN3gbT6IDFVaufWOkmqRqvnpJ
=j8aw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Hracek, Petr" <pe...@siemens-enterprise.com>.
Output of command find is:
apache:~ # find /opt/secm/servlet -print
/opt/secm/servlet
/opt/secm/servlet/WEB-INF
/opt/secm/servlet/WEB-INF/classes
/opt/secm/servlet/WEB-INF/classes/SecMServlet.class
/opt/secm/servlet/WEB-INF/web.xml
apache:~ #

Full URL is: https://10.6.81.5/SecM/servlet/SecMServlet

HTML Code of return page is:
<html><head><title>Apache Tomcat/5.0 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /SecM/servlet/SecMServlet</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/SecM/servlet/SecMServlet</u></p><p><b>description</b> <u>The requested resource (/SecM/servlet/SecMServlet) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0</h3></body></html>

Rewrite Log is:
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (2) init rewrite engine with requested uri /SecM/servlet/SecMServlet
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (3) applying pattern '/servlet/' to uri '/SecM/servlet/SecMServlet'
10.6.254.22 - - [17/Jun/2009:12:07:35 +0200] [10.6.81.5/sid#801685c0][rid#80202038/initial] (1) pass through /SecM/servlet/SecMServlet

Output of mod_jk.log is:
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/SecM/servlet/SecMServlet' from 7 maps
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/RepGen/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/SNMP/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/SecM/servlet/*=ajp13' source 'JkMount'
[Wed Jun 17 12:12:33.584 2009] [20225:3081386784] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/SecM/servlet/*=ajp13'
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_handler::mod_jk.c (2459): Into handler jakarta-servlet worker=ajp13 r->proxyreq=0
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker ajp13
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_maintain::jk_worker.c (339): Maintaining worker ajp13
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type 'ajp13'
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] init_ws_service::mod_jk.c (977): Service protocol=HTTP/1.1 method=GET ssl=true host=(null) addr=10.6.254.22 name=10.6.81.5 port=443 auth=(null) user=(null) laddr=10.6.81.5 raddr=10.6.254.22 uri=/SecM/servlet/SecMServlet
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_get_endpoint::jk_ajp_common.c (2977): acquired connection pool slot=0 after 0 retries
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_service::jk_ajp_common.c (2283): processing ajp13 with 2 retries
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_send_request::jk_ajp_common.c (1501): (ajp13) all endpoints are disconnected.
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (452): socket TCP_NODELAY set to On
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (576): trying to connect socket 17 to 127.0.0.1:8009
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] jk_open_socket::jk_connect.c (602): socket 17 connected to 127.0.0.1:8009
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connect_to_endpoint::jk_ajp_common.c (931): Connected socket 17 to (127.0.0.1:8009)
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): sending to ajp13 pos=4 len=696 max=8192
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0000    12 34 02 B4 02 02 00 08 48 54 54 50 2F 31 2E 31  - .4......HTTP/1.1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0010    00 00 19 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74  - .../SecM/servlet
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0020    2F 53 65 63 4D 53 65 72 76 6C 65 74 00 00 0B 31  - /SecMServlet...1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0030    30 2E 36 2E 32 35 34 2E 32 32 00 FF FF 00 09 31  - 0.6.254.22.....1
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0040    30 2E 36 2E 38 31 2E 35 00 01 BB 01 00 09 A0 01  - 0.6.81.5........
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0050    01 0F 69 6D 61 67 65 2F 67 69 66 2C 20 69 6D 61  - ..image/gif,.ima
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0060    67 65 2F 78 2D 78 62 69 74 6D 61 70 2C 20 69 6D  - ge/x-xbitmap,.im
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0070    61 67 65 2F 6A 70 65 67 2C 20 69 6D 61 67 65 2F  - age/jpeg,.image/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0080    70 6A 70 65 67 2C 20 61 70 70 6C 69 63 61 74 69  - pjpeg,.applicati
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0090    6F 6E 2F 78 61 6D 6C 2B 78 6D 6C 2C 20 61 70 70  - on/xaml+xml,.app
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00a0    6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 6D 73 2D  - lication/vnd.ms-
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00b0    78 70 73 64 6F 63 75 6D 65 6E 74 2C 20 61 70 70  - xpsdocument,.app
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00c0    6C 69 63 61 74 69 6F 6E 2F 78 2D 6D 73 2D 78 62  - lication/x-ms-xb
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00d0    61 70 2C 20 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - ap,.application/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00e0    78 2D 6D 73 2D 61 70 70 6C 69 63 61 74 69 6F 6E  - x-ms-application
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 00f0    2C 20 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E  - ,.application/vn
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0100    64 2E 6D 73 2D 65 78 63 65 6C 2C 20 61 70 70 6C  - d.ms-excel,.appl
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0110    69 63 61 74 69 6F 6E 2F 76 6E 64 2E 6D 73 2D 70  - ication/vnd.ms-p
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0120    6F 77 65 72 70 6F 69 6E 74 2C 20 61 70 70 6C 69  - owerpoint,.appli
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0130    63 61 74 69 6F 6E 2F 6D 73 77 6F 72 64 2C 20 61  - cation/msword,.a
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0140    70 70 6C 69 63 61 74 69 6F 6E 2F 78 2D 73 68 6F  - pplication/x-sho
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0150    63 6B 77 61 76 65 2D 66 6C 61 73 68 2C 20 2A 2F  - ckwave-flash,.*/
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0160    2A 00 00 0F 41 63 63 65 70 74 2D 4C 61 6E 67 75  - *...Accept-Langu
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0170    61 67 65 00 00 0E 65 6E 2D 75 73 2C 64 65 3B 71  - age...en-us,de;q
[Wed Jun 17 12:12:33.585 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0180    3D 30 2E 35 00 00 0F 41 63 63 65 70 74 2D 45 6E  - =0.5...Accept-En
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0190    63 6F 64 69 6E 67 00 00 0D 67 7A 69 70 2C 20 64  - coding...gzip,.d
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01a0    65 66 6C 61 74 65 00 A0 0E 00 A1 4D 6F 7A 69 6C  - eflate.....Mozil
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01b0    6C 61 2F 34 2E 30 20 28 63 6F 6D 70 61 74 69 62  - la/4.0.(compatib
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01c0    6C 65 3B 20 4D 53 49 45 20 36 2E 30 3B 20 57 69  - le;.MSIE.6.0;.Wi
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01d0    6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 53 56  - ndows.NT.5.1;.SV
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01e0    31 3B 20 2E 4E 45 54 20 43 4C 52 20 31 2E 30 2E  - 1;..NET.CLR.1.0.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 01f0    33 37 30 35 3B 20 2E 4E 45 54 20 43 4C 52 20 32  - 3705;..NET.CLR.2
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0200    2E 30 2E 35 30 37 32 37 3B 20 2E 4E 45 54 20 43  - .0.50727;..NET.C
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0210    4C 52 20 33 2E 30 2E 30 34 35 30 36 2E 33 30 3B  - LR.3.0.04506.30;
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0220    20 2E 4E 45 54 20 43 4C 52 20 31 2E 31 2E 34 33  - ..NET.CLR.1.1.43
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0230    32 32 3B 20 49 6E 66 6F 50 61 74 68 2E 31 3B 20  - 22;.InfoPath.1;.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0240    4D 53 2D 52 54 43 20 4C 4D 20 38 29 00 A0 0B 00  - MS-RTC.LM.8)....
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0250    09 31 30 2E 36 2E 38 31 2E 35 00 A0 06 00 0A 4B  - .10.6.81.5.....K
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0260    65 65 70 2D 41 6C 69 76 65 00 A0 09 00 23 41 53  - eep-Alive....#AS
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0270    55 4E 49 54 59 5F 53 45 53 53 49 4F 4E 3D 2D 54  - UNITY_SESSION=-T
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0280    43 6C 35 67 45 63 64 5A 64 45 30 39 41 39 46 39  - Cl5gEcdZdE09A9F9
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 0290    34 00 00 0C 54 49 54 4C 45 5F 50 52 45 46 49 58  - 4...TITLE_PREFIX
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 02a0    00 00 0D 48 69 50 61 74 68 34 30 30 30 20 2D 20  - ...HiPath4000.-.
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1070): 02b0    00 A0 08 00 01 30 00 FF 00 00 00 00 00 00 00 00  - .....0..........
[Wed Jun 17 12:12:33.586 2009] [20225:3081386784] [debug] ajp_send_request::jk_ajp_common.c (1560): (ajp13) request body to send 0 - request body to resend 0
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=98 max=8192
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    04 01 94 00 19 2F 53 65 63 4D 2F 73 65 72 76 6C  - ...../SecM/servl
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0010    65 74 2F 53 65 63 4D 53 65 72 76 6C 65 74 00 00  - et/SecMServlet..
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0020    02 00 0C 43 6F 6E 74 65 6E 74 2D 54 79 70 65 00  - ...Content-Type.
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0030    00 17 74 65 78 74 2F 68 74 6D 6C 3B 63 68 61 72  - ..text/html;char
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0040    73 65 74 3D 75 74 66 2D 38 00 00 0E 43 6F 6E 74  - set=utf-8...Cont
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0050    65 6E 74 2D 4C 65 6E 67 74 68 00 00 04 31 30 32  - ent-Length...102
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0060    31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - 1...............
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (660): status = 404
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (667): Number of headers is = 2
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (723): Header[0] [Content-Type] = [text/html;charset=utf-8]
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_unmarshal_response::jk_ajp_common.c (723): Header[1] [Content-Length] = [1021]
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=1025 max=8192
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    03 03 FD 3C 68 74 6D 6C 3E 3C 68 65 61 64 3E 3C  - ...<html><head><
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0010    74 69 74 6C 65 3E 41 70 61 63 68 65 20 54 6F 6D  - title>Apache.Tom
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0020    63 61 74 2F 35 2E 30 20 2D 20 45 72 72 6F 72 20  - cat/5.0.-.Error.
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0030    72 65 70 6F 72 74 3C 2F 74 69 74 6C 65 3E 3C 73  - report</title><s
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0040    74 79 6C 65 3E 3C 21 2D 2D 48 31 20 7B 66 6F 6E  - tyle><!--H1.{fon
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0050    74 2D 66 61 6D 69 6C 79 3A 54 61 68 6F 6D 61 2C  - t-family:Tahoma,
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0060    41 72 69 61 6C 2C 73 61 6E 73 2D 73 65 72 69 66  - Arial,sans-serif
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0070    3B 63 6F 6C 6F 72 3A 77 68 69 74 65 3B 62 61 63  - ;color:white;bac
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0080    6B 67 72 6F 75 6E 64 2D 63 6F 6C 6F 72 3A 23 35  - kground-color:#5
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0090    32 35 44 37 36 3B 66 6F 6E 74 2D 73 69 7A 65 3A  - 25D76;font-size:
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00a0    32 32 70 78 3B 7D 20 48 32 20 7B 66 6F 6E 74 2D  - 22px;}.H2.{font-
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00b0    66 61 6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72  - family:Tahoma,Ar
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00c0    69 61 6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63  - ial,sans-serif;c
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00d0    6F 6C 6F 72 3A 77 68 69 74 65 3B 62 61 63 6B 67  - olor:white;backg
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00e0    72 6F 75 6E 64 2D 63 6F 6C 6F 72 3A 23 35 32 35  - round-color:#525
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 00f0    44 37 36 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 36  - D76;font-size:16
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0100    70 78 3B 7D 20 48 33 20 7B 66 6F 6E 74 2D 66 61  - px;}.H3.{font-fa
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0110    6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72 69 61  - mily:Tahoma,Aria
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0120    6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63 6F 6C  - l,sans-serif;col
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0130    6F 72 3A 77 68 69 74 65 3B 62 61 63 6B 67 72 6F  - or:white;backgro
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0140    75 6E 64 2D 63 6F 6C 6F 72 3A 23 35 32 35 44 37  - und-color:#525D7
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0150    36 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 34 70 78  - 6;font-size:14px
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0160    3B 7D 20 42 4F 44 59 20 7B 66 6F 6E 74 2D 66 61  - ;}.BODY.{font-fa
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0170    6D 69 6C 79 3A 54 61 68 6F 6D 61 2C 41 72 69 61  - mily:Tahoma,Aria
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0180    6C 2C 73 61 6E 73 2D 73 65 72 69 66 3B 63 6F 6C  - l,sans-serif;col
[Wed Jun 17 12:12:33.637 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0190    6F 72 3A 62 6C 61 63 6B 3B 62 61 63 6B 67 72 6F  - or:black;backgro
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01a0    75 6E 64 2D 63 6F 6C 6F 72 3A 77 68 69 74 65 3B  - und-color:white;
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01b0    7D 20 42 20 7B 66 6F 6E 74 2D 66 61 6D 69 6C 79  - }.B.{font-family
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01c0    3A 54 61 68 6F 6D 61 2C 41 72 69 61 6C 2C 73 61  - :Tahoma,Arial,sa
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01d0    6E 73 2D 73 65 72 69 66 3B 63 6F 6C 6F 72 3A 77  - ns-serif;color:w
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01e0    68 69 74 65 3B 62 61 63 6B 67 72 6F 75 6E 64 2D  - hite;background-
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 01f0    63 6F 6C 6F 72 3A 23 35 32 35 44 37 36 3B 7D 20  - color:#525D76;}.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0200    50 20 7B 66 6F 6E 74 2D 66 61 6D 69 6C 79 3A 54  - P.{font-family:T
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0210    61 68 6F 6D 61 2C 41 72 69 61 6C 2C 73 61 6E 73  - ahoma,Arial,sans
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0220    2D 73 65 72 69 66 3B 62 61 63 6B 67 72 6F 75 6E  - -serif;backgroun
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0230    64 3A 77 68 69 74 65 3B 63 6F 6C 6F 72 3A 62 6C  - d:white;color:bl
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0240    61 63 6B 3B 66 6F 6E 74 2D 73 69 7A 65 3A 31 32  - ack;font-size:12
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0250    70 78 3B 7D 41 20 7B 63 6F 6C 6F 72 20 3A 20 62  - px;}A.{color.:.b
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0260    6C 61 63 6B 3B 7D 41 2E 6E 61 6D 65 20 7B 63 6F  - lack;}A.name.{co
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0270    6C 6F 72 20 3A 20 62 6C 61 63 6B 3B 7D 48 52 20  - lor.:.black;}HR.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0280    7B 63 6F 6C 6F 72 20 3A 20 23 35 32 35 44 37 36  - {color.:.#525D76
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0290    3B 7D 2D 2D 3E 3C 2F 73 74 79 6C 65 3E 20 3C 2F  - ;}--></style>.</
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02a0    68 65 61 64 3E 3C 62 6F 64 79 3E 3C 68 31 3E 48  - head><body><h1>H
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02b0    54 54 50 20 53 74 61 74 75 73 20 34 30 34 20 2D  - TTP.Status.404.-
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02c0    20 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74 2F 53  - ./SecM/servlet/S
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02d0    65 63 4D 53 65 72 76 6C 65 74 3C 2F 68 31 3E 3C  - ecMServlet</h1><
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02e0    48 52 20 73 69 7A 65 3D 22 31 22 20 6E 6F 73 68  - HR.size="1".nosh
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 02f0    61 64 65 3D 22 6E 6F 73 68 61 64 65 22 3E 3C 70  - ade="noshade"><p
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0300    3E 3C 62 3E 74 79 70 65 3C 2F 62 3E 20 53 74 61  - ><b>type</b>.Sta
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0310    74 75 73 20 72 65 70 6F 72 74 3C 2F 70 3E 3C 70  - tus.report</p><p
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0320    3E 3C 62 3E 6D 65 73 73 61 67 65 3C 2F 62 3E 20  - ><b>message</b>.
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0330    3C 75 3E 2F 53 65 63 4D 2F 73 65 72 76 6C 65 74  - <u>/SecM/servlet
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0340    2F 53 65 63 4D 53 65 72 76 6C 65 74 3C 2F 75 3E  - /SecMServlet</u>
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0350    3C 2F 70 3E 3C 70 3E 3C 62 3E 64 65 73 63 72 69  - </p><p><b>descri
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0360    70 74 69 6F 6E 3C 2F 62 3E 20 3C 75 3E 54 68 65  - ption</b>.<u>The
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0370    20 72 65 71 75 65 73 74 65 64 20 72 65 73 6F 75  - .requested.resou
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0380    72 63 65 20 28 2F 53 65 63 4D 2F 73 65 72 76 6C  - rce.(/SecM/servl
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0390    65 74 2F 53 65 63 4D 53 65 72 76 6C 65 74 29 20  - et/SecMServlet).
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03a0    69 73 20 6E 6F 74 20 61 76 61 69 6C 61 62 6C 65  - is.not.available
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03b0    2E 3C 2F 75 3E 3C 2F 70 3E 3C 48 52 20 73 69 7A  - .</u></p><HR.siz
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03c0    65 3D 22 31 22 20 6E 6F 73 68 61 64 65 3D 22 6E  - e="1".noshade="n
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03d0    6F 73 68 61 64 65 22 3E 3C 68 33 3E 41 70 61 63  - oshade"><h3>Apac
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03e0    68 65 20 54 6F 6D 63 61 74 2F 35 2E 30 3C 2F 68  - he.Tomcat/5.0</h
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 03f0    33 3E 3C 2F 62 6F 64 79 3E 3C 2F 68 74 6D 6C 3E  - 3></body></html>
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ws_write::mod_jk.c (506): written 1021 out of 1021
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): received from ajp13 pos=0 len=2 max=8192
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1259): 0000    05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - ................
[Wed Jun 17 12:12:33.638 2009] [20225:3081386784] [debug] ajp_process_callback::jk_ajp_common.c (1846): AJP13 protocol: Reuse is OK
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] ajp_reset_endpoint::jk_ajp_common.c (743): (ajp13) resetting endpoint with sd = 17
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] ajp_done::jk_ajp_common.c (2905): recycling connection pool slot=0 for worker ajp13
[Wed Jun 17 12:12:33.639 2009] [20225:3081386784] [debug] jk_handler::mod_jk.c (2599): Service finished with status=404 for worker=ajp13
SLES10apache:/opt/secm/servlet #


/etc/tomcat5/base/uriworkermap.properties file is:
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
/SecM/servlet/*=ajp13
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus

Shall I add something to the Apache2 as is mentioned there:
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html 
section "Configuring Apache to serve static web application files"
I mean Alias, Directory, Location directive

Thank you in advance

Regards / S pozdravem
Petr Hráček

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Tuesday, June 16, 2009 3:50 PM
To: Tomcat Users List
Subject: Re: Beginner with apache

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr,

On 6/16/2009 4:03 AM, Hracek, Petr wrote:
> Now I have changed the files basely you mail and now situation is following:

You are getting closer.

> I am trying to develop a new servlet:
> 
> /opt/secm/servlet directory has WEB-INF structure with class file and web.xml file.

Can you post the result of the following command:

$ find /opt/secm/servlet -print

That way we can see if everything is where it should be.

> What rights has to have directory servlet and all subdirectories.

The euid of the Tomcat process must be able to read and execute /opt,
/opt/secm, /opt/secm/servlet, and all other directories. It must have
read access to all files under /opt/secm/servlet.

> In the web.xml file is:

web.xml looks good, depending on how you want to deploy. Keep this line
of config in mind going forward:

>         <url-pattern>/SecM/servlet/SecMServlet</url-pattern>

[snip]

> In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined:
> <Context docBase="/opt/secm/servlet"
>     crossContext="false" debug="0" reloadable="false" >
> </Context>

Assuming that your SecMServlet.xml file is properly loaded (log files
should confirm that this "context" (or webapp) is being loaded).

If you want to access this servlet, you'll need a URL like this:

http://host:port/SecMServlet/secM/servlet/SecMServlet

This URL is obtained by concatenating the "context name" (taken from the
context XML's filename, SecMServlet.xml, and removing the ".xml" from
the end) plus the <url-pattern> you assigned to your servlet in web.xml.
Given your original question, I think you probably want your setup to be
this:

(Your names have changed from sso and swt to SecM and stuff like this,
so it's tough to give you good advice, but I'll try.)

1. Use /etc/tomcat55/Catalina/localhost/SecM.xml as your context.xml
file. Do not make any changes to the contents of this file.

2. Change your <url-pattern> in your web.xml file to be this:

<url-pattern>/servlet/SecMServlet</url-pattern>

3. Change your mod_jk configuration to be:

   JkMount /SecM/servlet/SecMservlet ajp13

   (If you have multiple servlets, map them individually. If you have
    /many/ servlets that all match a certain pattern, feel free to
    just map the pattern like /SecM/servlet/*).

Now, the URL you will use to access your servlet will be
http://host:port/SecM/servlet/SecMServlet

Note that the <url-pattern> you use can be arbitrary... there's no
reason the word "servlet" needs to appear anywhere in that URL.

> After this configuration WEB browser show me: HTTP 400 - BAD Request

Could you post the whole error? Is there anything in the log files?
Often, you'll get a 400 when the context you're trying to reach has
failed to load for some reason.

> If the content file has the name SecM than I received HTTP 404 - The
> requested resource is not available.

Full URL please?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAko3oxEACgkQ9CaO5/Lv0PANtQCfSAC1bstKKOT+XIItkAen63F4
3+kAn0svN3gbT6IDFVaufWOkmqRqvnpJ
=j8aw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Beginner with apache

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petr,

On 6/16/2009 4:03 AM, Hracek, Petr wrote:
> Now I have changed the files basely you mail and now situation is following:

You are getting closer.

> I am trying to develop a new servlet:
> 
> /opt/secm/servlet directory has WEB-INF structure with class file and web.xml file.

Can you post the result of the following command:

$ find /opt/secm/servlet -print

That way we can see if everything is where it should be.

> What rights has to have directory servlet and all subdirectories.

The euid of the Tomcat process must be able to read and execute /opt,
/opt/secm, /opt/secm/servlet, and all other directories. It must have
read access to all files under /opt/secm/servlet.

> In the web.xml file is:

web.xml looks good, depending on how you want to deploy. Keep this line
of config in mind going forward:

>         <url-pattern>/SecM/servlet/SecMServlet</url-pattern>

[snip]

> In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined:
> <Context docBase="/opt/secm/servlet"
>     crossContext="false" debug="0" reloadable="false" >
> </Context>

Assuming that your SecMServlet.xml file is properly loaded (log files
should confirm that this "context" (or webapp) is being loaded).

If you want to access this servlet, you'll need a URL like this:

http://host:port/SecMServlet/secM/servlet/SecMServlet

This URL is obtained by concatenating the "context name" (taken from the
context XML's filename, SecMServlet.xml, and removing the ".xml" from
the end) plus the <url-pattern> you assigned to your servlet in web.xml.
Given your original question, I think you probably want your setup to be
this:

(Your names have changed from sso and swt to SecM and stuff like this,
so it's tough to give you good advice, but I'll try.)

1. Use /etc/tomcat55/Catalina/localhost/SecM.xml as your context.xml
file. Do not make any changes to the contents of this file.

2. Change your <url-pattern> in your web.xml file to be this:

<url-pattern>/servlet/SecMServlet</url-pattern>

3. Change your mod_jk configuration to be:

   JkMount /SecM/servlet/SecMservlet ajp13

   (If you have multiple servlets, map them individually. If you have
    /many/ servlets that all match a certain pattern, feel free to
    just map the pattern like /SecM/servlet/*).

Now, the URL you will use to access your servlet will be
http://host:port/SecM/servlet/SecMServlet

Note that the <url-pattern> you use can be arbitrary... there's no
reason the word "servlet" needs to appear anywhere in that URL.

> After this configuration WEB browser show me: HTTP 400 - BAD Request

Could you post the whole error? Is there anything in the log files?
Often, you'll get a 400 when the context you're trying to reach has
failed to load for some reason.

> If the content file has the name SecM than I received HTTP 404 - The
> requested resource is not available.

Full URL please?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAko3oxEACgkQ9CaO5/Lv0PANtQCfSAC1bstKKOT+XIItkAen63F4
3+kAn0svN3gbT6IDFVaufWOkmqRqvnpJ
=j8aw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Hracek, Petr [mailto:petr.hracek@siemens-enterprise.com]
> Subject: RE: Beginner with apache
> 
> I am trying to develop a new servlet:

You still seem to be confusing the concepts of webapp and servlet.  A servlet is a single Java class that extends the HttpServlet class, providing concrete methods for various HTTP operations.  A webapp is a collection of servlets and other resources; only the most trivial webapp would consist of a single servlet.  Consequently, any servlet you're writing must be within the context of a webapp.

> /opt/secm/servlet directory has WEB-INF structure with class file and
> web.xml file.
> What rights has to have direcotry servlet and all subdirectories.

The userid Tomcat is running with must have read access to this directory and subdirectories.

> In the web.xml file is:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
>     <servlet>
>         <servlet-name>SecMServlet</servlet-name>
>         <servlet-class>SecMServlet</servlet-class>
>     </servlet>

It's good practice (but not absolutely required for servlets) to use a package for all Java classes.

>     <servlet-mapping>
>         <servlet-name>SecMServlet</servlet-name>
>         <url-pattern>/SecM/servlet/SecMServlet</url-pattern>
>     </servlet-mapping>
> </web-app>

The above indicates you will access your servlet via the URL:
http://[host][:port]/SecMServlet/SecM/servlet/SecMServlet

Seems a bit verbose, but if that's what you want...

> In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined:
> <Context docBase="/opt/secm/servlet"
>     crossContext="false" debug="0" reloadable="false" >
> </Context>

The <Context> element looks good; note that the name of the .xml file becomes part of the URL.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Hracek, Petr" <pe...@siemens-enterprise.com>.
Thanks for explanation.

Now I have changed the files basely you mail and now situation is following:
I am trying to develop a new servlet:

/opt/secm/servlet directory has WEB-INF structure with class file and web.xml file.
What rights has to have direcotry servlet and all subdirectories.

In the web.xml file is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">


<web-app>
    <servlet>
        <servlet-name>SecMServlet</servlet-name>
        <servlet-class>SecMServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>SecMServlet</servlet-name>
        <url-pattern>/SecM/servlet/SecMServlet</url-pattern>
    </servlet-mapping>

</web-app>
In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined:
<Context docBase="/opt/secm/servlet"
    crossContext="false" debug="0" reloadable="false" >
</Context>

After this configuration WEB browser show me: HTTP 400 - BAD Request
If the content file has the name SecM than I received HTTP 404 - The requested resource is not available.

Could you please tell me where I can have a problem?

Thank you in advance

regards / S pozdravem
Petr Hráček

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Monday, June 15, 2009 3:14 PM
To: Tomcat Users List
Subject: RE: Beginner with apache

> From: Hracek, Petr [mailto:petr.hracek@siemens-enterprise.com]
> Subject: RE: Beginner with apache
> 
> Suse gyus are not responsible for this step.
> Now it has to be used tomcat-5.5. or distro package from SuSE.

If it's the package from SuSE, then the SuSE guys *are* responsible.  I would highly recommend that you use a standard Tomcat downloaded from tomcat.apache.org and avoid the confusion caused by the 3rd-party repackaging.

As for your deployment questions, we need to get some terminology straight.

You do not deploy servlets, you deploy webapps.  The structure of a webapp is defined in the servlet spec, and must be adhered to.  The servlet classes for a webapp must be placed in the webapp's directories WEB-INF/lib (if in a jar) or WEB-INF/classes (if not in a jar).  The servlet spec is required reading.

Each webapp is normally located immediately under the appBase directory of the <Host> defined in conf/server.xml.  A webapp may be located outside of Tomcat's directory structure, by placing a <Context> element in conf/Catalina/[host]/[appName].xml with a docBase attribute that points to the location of the webapp.  The path attribute is not to be used, and you should not place any <Context> element in conf/server.xml.

The ROOT directory is special: it is the default webapp for the <Host>; do not place webapps under ROOT.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Hracek, Petr [mailto:petr.hracek@siemens-enterprise.com]
> Subject: RE: Beginner with apache
> 
> Suse gyus are not responsible for this step.
> Now it has to be used tomcat-5.5. or distro package from SuSE.

If it's the package from SuSE, then the SuSE guys *are* responsible.  I would highly recommend that you use a standard Tomcat downloaded from tomcat.apache.org and avoid the confusion caused by the 3rd-party repackaging.

As for your deployment questions, we need to get some terminology straight.

You do not deploy servlets, you deploy webapps.  The structure of a webapp is defined in the servlet spec, and must be adhered to.  The servlet classes for a webapp must be placed in the webapp's directories WEB-INF/lib (if in a jar) or WEB-INF/classes (if not in a jar).  The servlet spec is required reading.

Each webapp is normally located immediately under the appBase directory of the <Host> defined in conf/server.xml.  A webapp may be located outside of Tomcat's directory structure, by placing a <Context> element in conf/Catalina/[host]/[appName].xml with a docBase attribute that points to the location of the webapp.  The path attribute is not to be used, and you should not place any <Context> element in conf/server.xml.

The ROOT directory is special: it is the default webapp for the <Host>; do not place webapps under ROOT.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Hracek, Petr" <pe...@siemens-enterprise.com>.
First of all thank you.
Suse gyus are not responsible for this step. Only development in the firm.
>From the last release of the product tomcat 3.2.1 has been used.
Now it has to be used tomcat-5.5. or distro package from SuSE.

If I understand right then, if in my directory /opt/sso/servlet is WEB-INF and WEB-INF/classes
than there has to be META-INF as well and applet will work successfully.
But question regarding this behaviour.
Let's say that the our URL http://<IP_Address>/SSO/servlet will be there.
How can I tell to tomcat that this URL will be mapped to /opt/sso/servlet?
In /opt/sso/servlet/WEB-INF/web.xml is existing and /opt/sso/servlet/META-INF/context.xml is existing now as well.
I know that this is the question of beginner but
how the tomcat knows that the servlet SSO/servlet is mapped to /opt/sso/servlet.
Is it enough to have web.xml and context.xml files?

Sorry for mistification. As you wrote CATALINA_BASE and CATALINA_HOME are used.
Directories which you mentioned are correct on the our system.

As you wrote all apps are in webapps/ROOT/... directory.
Do you mean that all servlets always should be stored there?

Thanks for the help.

regards / S pozdravem
Petr Hráček

-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Monday, June 15, 2009 11:56 AM
To: Tomcat Users List
Subject: Re: Beginner with apache

Hracek, Petr wrote:
> Tomcat 5.5 is onstalled on openSUSE11.1
> Tomcat configuration files are stored in /etc/tomcat55/
> TOMCAT_HOME is /srv/www/tomcat55/
> Servlet locations are /opt/swt/servlet and /opt/sso/servlets
> 

Well then, my guess was wrong, and in my answer below, replace RedHat by 
Suse..

The point is, for example :
the <Context> elements that you have in your server.xml file, should not 
normally be there, if this is Tomcat 5.5.
If these things are needed at all, they should be in a 
webapps/your-webapp/META-INF/context.xml file.
Why in your case these <Context> tags are in the Suse server.xml, only 
Suse support guys will know.
The same is for what you say above : I believe you are wrong, and that 
TOMCAT_HOME is not what you think.
The two environment values which matter here are CATALINA_HOME and 
CATALINA_BASE.
(see http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html)
On your Suse system, CATALINA_HOME is probably /usr/share/tomcat5.5, and 
CATALINA_BASE is /srv/www/tomcat5.5/base
(that's where you will probably find a "webapps" directory, and that is 
(normally) where your webapps should be placed.
Again, if you want to use the Suse pre-packaged Tomcat, then the Suse 
support guys are your best source, or an OpenSuse forum.

Please understand that it is not that I (or other people on this forum) 
don't want to help. But each pre-packaged distribution does things a bit 
differently, and not everyone here has an OpenSuse system available to 
compare.
So usually people on this forum use the "standard Tomcat" (as downloaded 
from the site "tomcat.apache.org") as a reference.  And all the on-line 
doc for Tomcat also of course.



> 
> regards / S pozdravem
> Petr Hráček
> 
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com] 
> Sent: Monday, June 15, 2009 11:22 AM
> To: Tomcat Users List
> Subject: Re: Beginner with apache
> 
> Hi.
> 
> In the information below, you forgot to mention
> - what version of Tomcat this is
> - on what platform this is
> 
>  From bits and pieces below, I guess that this may be Tomcat 5.5.? , on 
> a RedHat Linux system.
> The basic answer to your question #1 below is yes, and to your question 
> #2 also.  But the details depend very much on how Tomcat is set up on 
> this particular system (directories etc..), and that, nobody here really 
> knows, because it looks like a RedHat-specific package, which installs 
> the bits and pieces of some version of Tomcat 5.5 in RedHat-specific 
> locations and with RedHat-specific configuration files.
> 
> So I guess this part you should ask to the RedHat support hotline.
> 
> A general explanation of how this all works is available here :
> http://tomcat.apache.org/tomcat-5.5-doc/index.html
> and particularly in your case here :
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
> (Deployment organisation)
> 
> The principles are universal. But the details (which directories etc..) 
> are specific to each platform-specific pre-packaged Tomcat.
> 
> 
> Hracek, Petr wrote:
>> Hello all,
>>  
>> sorry for this beginner question but I do not know who to setup my
>> servlet.
>> On the machine is installed and run apache server as well. Version is
>> 2.2.3.
>> In the configuration file is mentioned:
>> JkMount /sso/servlet/* ajp13
>> JkMount /swt/servlet/* ajp13
>>  
>> My TOMCAT_HOME directory is /srv/www/tomcat55/base/.
>> I have to question 
>> 1) My servlets are stored in the another directories e.g.
>> /opt/sso/servlets, /opt/swt/servlets, etc.
>> Is it possible somewho to set tomcat so that it will allow to run
>> servlets from those directories?
>>  
>> 2) If question 1 is not allowed then not another question from my side
>> occurs:
>> - is it possible to make a directory structure as
>> /srv/www/tomcat55/base/ROOT/sso/WEB-INF and
>> /srv/www/tomcat55/base/ROOT/swt/WEB-INF
>>     where will be placed those servlets? How to configure web.xml file?
>>  
>> regards
>> Petr
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Beginner with apache

Posted by André Warnier <aw...@ice-sa.com>.
Hracek, Petr wrote:
> Tomcat 5.5 is onstalled on openSUSE11.1
> Tomcat configuration files are stored in /etc/tomcat55/
> TOMCAT_HOME is /srv/www/tomcat55/
> Servlet locations are /opt/swt/servlet and /opt/sso/servlets
> 

Well then, my guess was wrong, and in my answer below, replace RedHat by 
Suse..

The point is, for example :
the <Context> elements that you have in your server.xml file, should not 
normally be there, if this is Tomcat 5.5.
If these things are needed at all, they should be in a 
webapps/your-webapp/META-INF/context.xml file.
Why in your case these <Context> tags are in the Suse server.xml, only 
Suse support guys will know.
The same is for what you say above : I believe you are wrong, and that 
TOMCAT_HOME is not what you think.
The two environment values which matter here are CATALINA_HOME and 
CATALINA_BASE.
(see http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html)
On your Suse system, CATALINA_HOME is probably /usr/share/tomcat5.5, and 
CATALINA_BASE is /srv/www/tomcat5.5/base
(that's where you will probably find a "webapps" directory, and that is 
(normally) where your webapps should be placed.
Again, if you want to use the Suse pre-packaged Tomcat, then the Suse 
support guys are your best source, or an OpenSuse forum.

Please understand that it is not that I (or other people on this forum) 
don't want to help. But each pre-packaged distribution does things a bit 
differently, and not everyone here has an OpenSuse system available to 
compare.
So usually people on this forum use the "standard Tomcat" (as downloaded 
from the site "tomcat.apache.org") as a reference.  And all the on-line 
doc for Tomcat also of course.



> 
> regards / S pozdravem
> Petr Hráček
> 
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com] 
> Sent: Monday, June 15, 2009 11:22 AM
> To: Tomcat Users List
> Subject: Re: Beginner with apache
> 
> Hi.
> 
> In the information below, you forgot to mention
> - what version of Tomcat this is
> - on what platform this is
> 
>  From bits and pieces below, I guess that this may be Tomcat 5.5.? , on 
> a RedHat Linux system.
> The basic answer to your question #1 below is yes, and to your question 
> #2 also.  But the details depend very much on how Tomcat is set up on 
> this particular system (directories etc..), and that, nobody here really 
> knows, because it looks like a RedHat-specific package, which installs 
> the bits and pieces of some version of Tomcat 5.5 in RedHat-specific 
> locations and with RedHat-specific configuration files.
> 
> So I guess this part you should ask to the RedHat support hotline.
> 
> A general explanation of how this all works is available here :
> http://tomcat.apache.org/tomcat-5.5-doc/index.html
> and particularly in your case here :
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
> (Deployment organisation)
> 
> The principles are universal. But the details (which directories etc..) 
> are specific to each platform-specific pre-packaged Tomcat.
> 
> 
> Hracek, Petr wrote:
>> Hello all,
>>  
>> sorry for this beginner question but I do not know who to setup my
>> servlet.
>> On the machine is installed and run apache server as well. Version is
>> 2.2.3.
>> In the configuration file is mentioned:
>> JkMount /sso/servlet/* ajp13
>> JkMount /swt/servlet/* ajp13
>>  
>> My TOMCAT_HOME directory is /srv/www/tomcat55/base/.
>> I have to question 
>> 1) My servlets are stored in the another directories e.g.
>> /opt/sso/servlets, /opt/swt/servlets, etc.
>> Is it possible somewho to set tomcat so that it will allow to run
>> servlets from those directories?
>>  
>> 2) If question 1 is not allowed then not another question from my side
>> occurs:
>> - is it possible to make a directory structure as
>> /srv/www/tomcat55/base/ROOT/sso/WEB-INF and
>> /srv/www/tomcat55/base/ROOT/swt/WEB-INF
>>     where will be placed those servlets? How to configure web.xml file?
>>  
>> regards
>> Petr
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Beginner with apache

Posted by "Hracek, Petr" <pe...@siemens-enterprise.com>.
Tomcat 5.5 is onstalled on openSUSE11.1
Tomcat configuration files are stored in /etc/tomcat55/
TOMCAT_HOME is /srv/www/tomcat55/
Servlet locations are /opt/swt/servlet and /opt/sso/servlets


regards / S pozdravem
Petr Hráček

-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Monday, June 15, 2009 11:22 AM
To: Tomcat Users List
Subject: Re: Beginner with apache

Hi.

In the information below, you forgot to mention
- what version of Tomcat this is
- on what platform this is

 From bits and pieces below, I guess that this may be Tomcat 5.5.? , on 
a RedHat Linux system.
The basic answer to your question #1 below is yes, and to your question 
#2 also.  But the details depend very much on how Tomcat is set up on 
this particular system (directories etc..), and that, nobody here really 
knows, because it looks like a RedHat-specific package, which installs 
the bits and pieces of some version of Tomcat 5.5 in RedHat-specific 
locations and with RedHat-specific configuration files.

So I guess this part you should ask to the RedHat support hotline.

A general explanation of how this all works is available here :
http://tomcat.apache.org/tomcat-5.5-doc/index.html
and particularly in your case here :
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
(Deployment organisation)

The principles are universal. But the details (which directories etc..) 
are specific to each platform-specific pre-packaged Tomcat.


Hracek, Petr wrote:
> Hello all,
>  
> sorry for this beginner question but I do not know who to setup my
> servlet.
> On the machine is installed and run apache server as well. Version is
> 2.2.3.
> In the configuration file is mentioned:
> JkMount /sso/servlet/* ajp13
> JkMount /swt/servlet/* ajp13
>  
> My TOMCAT_HOME directory is /srv/www/tomcat55/base/.
> I have to question 
> 1) My servlets are stored in the another directories e.g.
> /opt/sso/servlets, /opt/swt/servlets, etc.
> Is it possible somewho to set tomcat so that it will allow to run
> servlets from those directories?
>  
> 2) If question 1 is not allowed then not another question from my side
> occurs:
> - is it possible to make a directory structure as
> /srv/www/tomcat55/base/ROOT/sso/WEB-INF and
> /srv/www/tomcat55/base/ROOT/swt/WEB-INF
>     where will be placed those servlets? How to configure web.xml file?
>  
> regards
> Petr
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Beginner with apache

Posted by André Warnier <aw...@ice-sa.com>.
Hi.

In the information below, you forgot to mention
- what version of Tomcat this is
- on what platform this is

 From bits and pieces below, I guess that this may be Tomcat 5.5.? , on 
a RedHat Linux system.
The basic answer to your question #1 below is yes, and to your question 
#2 also.  But the details depend very much on how Tomcat is set up on 
this particular system (directories etc..), and that, nobody here really 
knows, because it looks like a RedHat-specific package, which installs 
the bits and pieces of some version of Tomcat 5.5 in RedHat-specific 
locations and with RedHat-specific configuration files.

So I guess this part you should ask to the RedHat support hotline.

A general explanation of how this all works is available here :
http://tomcat.apache.org/tomcat-5.5-doc/index.html
and particularly in your case here :
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html
(Deployment organisation)

The principles are universal. But the details (which directories etc..) 
are specific to each platform-specific pre-packaged Tomcat.


Hracek, Petr wrote:
> Hello all,
>  
> sorry for this beginner question but I do not know who to setup my
> servlet.
> On the machine is installed and run apache server as well. Version is
> 2.2.3.
> In the configuration file is mentioned:
> JkMount /sso/servlet/* ajp13
> JkMount /swt/servlet/* ajp13
>  
> My TOMCAT_HOME directory is /srv/www/tomcat55/base/.
> I have to question 
> 1) My servlets are stored in the another directories e.g.
> /opt/sso/servlets, /opt/swt/servlets, etc.
> Is it possible somewho to set tomcat so that it will allow to run
> servlets from those directories?
>  
> 2) If question 1 is not allowed then not another question from my side
> occurs:
> - is it possible to make a directory structure as
> /srv/www/tomcat55/base/ROOT/sso/WEB-INF and
> /srv/www/tomcat55/base/ROOT/swt/WEB-INF
>     where will be placed those servlets? How to configure web.xml file?
>  
> regards
> Petr
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org