tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Georges <Bruno.Geor...@glencore.com>
Subject Re: Apache2+jk+tomcat5.028+uri utf-8 SOLVED
Date Fri, 01 Jul 2005 07:51:28 GMT
Hi
Depending on your configuration and operating system, you may have some
firewall restriction which prevents connecting to the port 8009.
Please check this first, especially if you use XP SP2.

Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


                                                                                         
                                                            
                      Paul George                                                        
                                                            
                      Constantine              To:      Tomcat Users List <tomcat-user@jakarta.apache.org>
                                           
                      <paulcon@stanfor         cc:                                    
                                                               
                      d.edu>                   Subject: Re: Apache2+jk+tomcat5.028+uri
utf-8 SOLVED                                                   
                                                                                         
                                                            
                      01.07.05 09:35   Distribute:                                       
                                                            
                      Please respond   Personal?               |-------|                 
                                                            
                      to "Tomcat Users                         | [ ] x |                 
                                                            
                      List"                                    |-------|                 
                                                            
                                                                                         
                                                            
                                                                                         
                                                            




I've essentially done all of this, but I still get the following error in
the browser:
---------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, root@localhost and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.
---------------

But there was no error in the server error log. In the jk log I get:
---------------
[Sun Jun 26 15:55:45 2005] [info]  jk_open_socket::jk_connect.c (433):
connect to 127.0.0.1:8009 failed with errno=13
[Sun Jun 26 15:55:45 2005] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(880): Failed opening socket to (127.0.0.1:8009) with (errno=13)
[Sun Jun 26 15:55:45 2005] [info]  ajp_send_request::jk_ajp_common.c
(1239):
Error connecting to the Tomcat process.
[Sun Jun 26 15:55:45 2005] [info]  ajp_service::jk_ajp_common.c (1737):
Sending request to tomcat failed,  recoverable operation attempt=1
[Sun Jun 26 15:55:45 2005] [info]  jk_open_socket::jk_connect.c (433):
connect to 127.0.0.1:8009 failed with errno=13
[Sun Jun 26 15:55:45 2005] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(880): Failed opening socket to (127.0.0.1:8009) with (errno=13)
[Sun Jun 26 15:55:45 2005] [info]  ajp_send_request::jk_ajp_common.c
(1239):
Error connecting to the Tomcat process.
[Sun Jun 26 15:55:45 2005] [info]  ajp_service::jk_ajp_common.c (1737):
Sending request to tomcat failed,  recoverable operation attempt=2
[Sun Jun 26 15:55:45 2005] [info]  jk_open_socket::jk_connect.c (433):
connect to 127.0.0.1:8009 failed with errno=13
[Sun Jun 26 15:55:45 2005] [info]  ajp_connect_to_endpoint::jk_ajp_common.c
(880): Failed opening socket to (127.0.0.1:8009) with (errno=13)
[Sun Jun 26 15:55:45 2005] [info]  ajp_send_request::jk_ajp_common.c
(1239):
Error connecting to the Tomcat process.
[Sun Jun 26 15:55:45 2005] [info]  ajp_service::jk_ajp_common.c (1737):
Sending request to tomcat failed,  recoverable operation attempt=3
[Sun Jun 26 15:55:45 2005] [error] ajp_service::jk_ajp_common.c (1746):
Error connecting to tomcat. Tomcat is probably not started or is listening
on the wrong port. worker=ajp13w failed
[Sun Jun 26 15:55:45 2005] ajp13w ill-conditioned 0.002938
------------
I know that Tomcat is both started and listening on the correct port. I
think it might have to do with permissions (errno=13 is a permission denied
error), but I don't know what I need to change.



Quoting Luis Sánchez Sánchez <luis.sanchez.sanchez@gmail.com>:

> Install mod_jk. I downloaded it from
>
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.10
/

>
> Copy the jakarta-connector*.so to your apache2 modules directory.
>
> Activate your new module:
>
> I used this two files in /etc/apache/mods-avaliable:
>
> +-----------+
> mod_jk.conf
> +-----------+
> # Where to find workers.properties
> # Update this path to match your conf directory location (put
> workers.properties next to httpd.conf)
> JkWorkersFile /etc/apache2/workers.

properties
>
> # Where to put jk logs
> # Update this path to match your logs directory location (put mod_jk.log
> next to access_log)
> JkLogFile     /var/log/apache2/mod_jk.log
>
> # Set the jk log level [debug/error/info]
> JkLogLevel    info
>
> # Select the log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> #JkOptions     +ForwardURICompatUnparsed
>
> #JkOptions     +ForwardURIEscaped
>
> #JkOptions     +ForwardURICompat
>
> # JkOptions indicate to send SSL KEY SIZE,
> # la sgte linea la he comentado yo
> JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
>
> # JkRequestLogFormat set the request format
> JkRequestLogFormat     "%w %V %T"
>
> # Send everything for context /examples to worker named worker1 (ajp13)
> JkMount  /jsp-examples/* worker1
> JkMount  /blojsom/* worker1
>
>
>
> +-----------+
> mod_jk.load
> +-----------+
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
>
>
> Then link this files in /etc/apache2/mods-enabled/
>
>
> Put a workers.property file in your apache2 conf dir (/etc/apache2 in my
> linux). This is my workers.properties
>
>   # Define 1 real worker using ajp13
>   worker.list=worker1
>   # Set properties for worker1 (ajp13)
>   worker.worker1.type=ajp13
>   worker.worker1.host=localhost
>   worker.worker1.port=8009
>   worker.worker1.lbfactor=50
>   worker.worker1.cachesize=10
>   worker.worker1.cache_timeout=600
>   worker.worker1.socket_keepalive=1
>   worker.worker1.reclycle_timeout=300
>
>
>
>
> In tomcat you must use URIEncoding="UTF-8" in your connectors in
> server.xml:
>
>   (I forgot this connector ...)
>
>    <Connector port="8009"
>                enableLookups="false" redirectPort="8443" debug="0"
>                protocol="AJP/1.3" URIEncoding="UTF-8"/>
>
>
>
>     <Connector port="8080"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" redirectPort="8443"
> acceptCount="100"
>                debug="0" connectionTimeout="20000"
>                disableUploadTimeout="true" URIEncoding="UTF-8"/>
>
> Launch tomcat, launch apache2 force-reload.
>
>
> --
> Luis Sánchez Sánchez <luis.sanchez.sanchez@gmail.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



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




Mime
View raw message