httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hracek, Petr" <>
Subject RE: [users@httpd] Configuration Apache2.2, tomcat 5.5 and servlets
Date Fri, 15 May 2009 08:08:57 GMT
I forgott to mentioned the when I am trying to open https://localhost/SecM/servlet/DatumServlet
then HTTP 404 could not open page is shown
regards / S pozdravem
Petr Hráček


From: Hracek, Petr [] 
Sent: Friday, May 15, 2009 9:58 AM
Subject: [users@httpd] Configuration Apache2.2, tomcat 5.5 and servlets

Hello *,
When the servlet is stored in /srv/www/tomcat55/base/webapps/
and I am inserting in to the http://localhost:8080/SecM/servlet/DatumServlet then it works.
The same servlet is stored in directory /opt/secm/servlet
but when I used to https://localhost/SecM/servlet/DatumServlet but it is not working.
Output of mod_jk.log is:
init_ws_service::mod_jk.c (932): Service protocol=HTTP/1.1 method=GET host=(null) addr=
name= port=443 auth=(null) user=(null) laddr= raddr= uri=/SecM/servlet/DatumServlet
ajp_get_endpoint::jk_ajp_common.c (2922): acquired connection pool slot=0 after 0 retries
ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
ajp_service::jk_ajp_common.c (2246): processing ajp13 with 2 retries
ajp_send_request::jk_ajp_common.c (1461): (ajp13) all endpoints are disconnected.
jk_open_socket::jk_connect.c (451): socket TCP_NODELAY set to On
jk_open_socket::jk_connect.c (575): trying to connect socket 18 to
jk_open_socket::jk_connect.c (601): socket 18 connected to
ajp_unmarshal_response::jk_ajp_common.c (660): status = 404
ajp_unmarshal_response::jk_ajp_common.c (667): Number of headers is = 2
ajp_unmarshal_response::jk_ajp_common.c (723): Header[0] [Content-Type] = [text/html;charset=utf-8]
ajp_unmarshal_response::jk_ajp_common.c (723): Header[1] [Content-Length] = [1030]
ajp_process_callback::jk_ajp_common.c (1806): AJP13 protocol: Reuse is OK
ajp_reset_endpoint::jk_ajp_common.c (743): (ajp13) resetting endpoint with sd = 18
ajp_done::jk_ajp_common.c (2850): recycling connection pool slot=0 for worker ajp13
jk_handler::mod_jk.c (2460): Service finished with status=404 for worker=ajp13
server.xml file is:
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
     to 0 -->
        <!-- Note : To use gzip compression you could set the following properties :
                           noCompressionUserAgents="gozilla, traviata"
    <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
    <Connector port="443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" connectionTimeout="0" protocol="AJP/1.3"
        <Context path="/SecM" docBase="/opt/secm/servlet"
                crossContext="false" debug="0" reloadable="false" >

When I am enabling port 443 than in /var/log/tomcat55/catalina.out is shown that /usr/share/tomcat55/.keystore
is not on the system.
In apache2 conf file:
<IfModule mod_jk.c>
JkWorkersFile /etc/tomcat55/
#JkExtractSSL off
#<IfDefine DEBUGLOG>
JkLogFile /var/apache/logs/mod_jk.log
#### debug, warn, error and emerg
JkLogLevel debug
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

<VirtualHost _default_:443>
<IfModule mod_jk.c>
JkMount /SecM/servlet/* ajp13

Can you anybody help me?
Petr Hracek


View raw message