httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24619] New: - Apache - Tomcat - mod_Jk returns a 500 Internal Server Error
Date Tue, 11 Nov 2003 20:14:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24619

Apache - Tomcat - mod_Jk returns a 500 Internal Server Error

           Summary: Apache - Tomcat - mod_Jk returns a 500 Internal Server
                    Error
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rick@incorppro.com


I have been tring to get the latest Apache to pass all requests to the latest
Tomcat via mod_Jk. I RTFM. I folllowed the instructions to the best of my
understanding. Once I get everything set up and start the servers and go to
http://localhost:8080/index.jsp and it shows the Tomcat main page. When I go to
http://localhost/index.jsp I get a 500 Internal Server Error.

Is there any way you could look at the rest of my post and suggest what I might
have done wrong???
Thanks,
Rick
Here is the what I get in /home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/logs/mod_jk.log
[Tue Nov 11 10:01:19 2003] [jk_uri_worker_map.c (486)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Nov 11 10:01:19 2003] [jk_uri_worker_map.c (500)]: Attempting to map URI
'/index.jsp'
[Tue Nov 11 10:01:19 2003] [jk_uri_worker_map.c (524)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Tue Nov 11 10:01:19 2003] [mod_jk.c (1709)]: Into handler r->proxyreq=0
r->handler=jakarta-servlet r->notes=135942192 worker=ajp13
[Tue Nov 11 10:01:19 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
[Tue Nov 11 10:01:19 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done
found a worker
[Tue Nov 11 10:01:19 2003] [mod_jk.c (497)]: agsp=80 agsn=localhost
hostn=localhost shostn=localhost cbsport=0 sport=0
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1546)]: Into jk_worker_t::get_endpoint
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1208)]: Into jk_endpoint_t::service
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (463)]: ajp_marshal_into_msgb - Done
[Tue Nov 11 10:01:19 2003] [jk_connect.c (188)]: Into jk_open_socket
[Tue Nov 11 10:01:19 2003] [jk_connect.c (195)]: jk_open_socket, try to connect
socket = 10
[Tue Nov 11 10:01:19 2003] [jk_connect.c (204)]: jk_open_socket, after connect
ret = -1
[Tue Nov 11 10:01:19 2003] [jk_connect.c (233)]: jk_open_socket, connect()
failed errno = 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (676)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed errno
= 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (955)]: Error connecting to the
Tomcat process.
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1309)]: sending request to tomcat
failed in send loop. err=0
[Tue Nov 11 10:01:19 2003] [jk_connect.c (188)]: Into jk_open_socket
[Tue Nov 11 10:01:19 2003] [jk_connect.c (195)]: jk_open_socket, try to connect
socket = 10
[Tue Nov 11 10:01:19 2003] [jk_connect.c (204)]: jk_open_socket, after connect
ret = -1
[Tue Nov 11 10:01:19 2003] [jk_connect.c (233)]: jk_open_socket, connect()
failed errno = 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (676)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed errno
= 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (955)]: Error connecting to the
Tomcat process.
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1309)]: sending request to tomcat
failed in send loop. err=1
[Tue Nov 11 10:01:19 2003] [jk_connect.c (188)]: Into jk_open_socket
[Tue Nov 11 10:01:19 2003] [jk_connect.c (195)]: jk_open_socket, try to connect
socket = 10
[Tue Nov 11 10:01:19 2003] [jk_connect.c (204)]: jk_open_socket, after connect
ret = -1
[Tue Nov 11 10:01:19 2003] [jk_connect.c (233)]: jk_open_socket, connect()
failed errno = 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (676)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed errno
= 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (955)]: Error connecting to the
Tomcat process.
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1309)]: sending request to tomcat
failed in send loop. err=2
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1318)]: Error connecting to tomcat.
Tomcat is probably not started or is listening on the wrong port. worker=ajp13
failed errno = 101
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (1529)]: Into jk_endpoint_t::done,
closing connection 0
[Tue Nov 11 10:01:19 2003] [jk_ajp_common.c (605)]: In
jk_endpoint_t::ajp_close_endpoint

Here is what I did to install Apache, Tomcat, and mod_Jk
1. Installed Tomcat 4.1.29
2. Renamed folder from jakarta-tomcat-4.1.29 to CORP
3. Tested Tomcat on port 8080 (sucess)

4. Compiled/Installed Apache 2.0.48 with options (--prefix
/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache --enable-so --enable-rewrite
--enable-ssl --enable-proxy)
5. Tested Apache on port 80 (sucsess)

6. Compiled/Installed Mod_Jk1.2 with options
(--with-apxs=/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache/bin/apxs)

7. Checked to make sure
/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache/modules/mod_jk.so was created
8. Make changes to the
/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache/conf/httpd.conf file:
    Change 'DocumentRoot' to point to
'/home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/webapps/ROOT'
    Add Index.jsp to 'DirectoryIndex'
    Add 'Include
/home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/conf/auto/mod_jk.conf' to the bottom
of the file.
9. Make changes to the /home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/conf/server.xml
    Add the following line below the line that says server and lists the port 8005
        <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
jkDebug="debug"
modJk="/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache/modules/mod_jk.so" />
    Inside the <HOST> tags add the following line
        <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" noRoot="false" forwardAll="true"
modJk="/home/rick/DEVELOPMENT/TOOLS/SERVERS/apache/modules/mod_jk.so" />
10. Create a new folder called 'jk' in
/home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/conf/
11. Create a new file called 'workers.properties' in folder
/home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/conf/jk/
12. Add the following lines to
/home/rick/DEVELOPMENT/TOOLS/SERVERS/CORP/conf/jk/workers.properties
    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13

13. Start Tomcat and wait 60 seconds
14. Start Apache
15. Go to http://localhost

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message