ricard40
(usa Ubuntu)
Enviado em 05/08/2013 - 11:46h
o Tomcat está funcionando na porta 80 agora, Acho q está como backend, porém ao solicitar algo pela porta 80 o navegador aparece com a seguinte frase:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Eu usei esse tuto para configurar o mod_jk:
http://danielhelm.com/blog/55-integrating-tomcat-into-apache-over-port-80
Esse é o log do mod_jk:
[Mon Aug 05 12:27:20 13][4442:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:20 13][4446:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:20 13][4443:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:20 13][4444:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:20 13][4447:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:20 13][4445:139892414314560] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /
[Mon Aug 05 12:27:21 13][3750:139892414314560] [info] init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] jk_open_socket::jk_connect.c (627): connect to 127.0.0.1:8009 failed (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] ajp_connect_to_endpoint::jk_ajp_common.c (995): Failed opening socket to (127.0.0.1:8009) (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [error] ajp_send_request::jk_ajp_common.c (1630): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] ajp_service::jk_ajp_common.c (2623): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] jk_open_socket::jk_connect.c (627): connect to 127.0.0.1:8009 failed (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] ajp_connect_to_endpoint::jk_ajp_common.c (995): Failed opening socket to (127.0.0.1:8009) (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [error] ajp_send_request::jk_ajp_common.c (1630): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] ajp_service::jk_ajp_common.c (2623): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Mon Aug 05 12:27:46 13][4569:139892414314560] [error] ajp_service::jk_ajp_common.c (2643): (ajp13) connecting to tomcat failed.
[Mon Aug 05 12:27:46 13][4569:139892414314560] [info] jk_handler::mod_jk.c (2788): Service error=-3 for worker=ajp13
Log do tomcat:
Ago 05, 2013 12:34:00 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL:
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Ago 05, 2013 12:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Log do catalina:
Ago 05, 2013 12:34:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory servlet
Ago 05, 2013 12:34:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Ago 05, 2013 12:34:01 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 80 java.net.BindException: Endereço já em uso
Ago 05, 2013 12:34:01 PM org.apache.jk.common.ChannelSocket init
SEVERE: Can't find free port 80 80
Ago 05, 2013 12:34:01 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Ago 05, 2013 12:34:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1224 ms