You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andy Spiegl <to...@spiegl.de> on 2004/07/02 10:46:10 UTC

apache2 crashes when using connectors - nobody?

Hm, nobody out there who has seen this problem before and might
be able to help me?


I installed tomcat-4.1.30 on a SuSE 9 box.  So far so good.
But then I tried to install the connector modules into the apache
(version 2.0.49-23) but didn't succeed.

I find this type of lines in the apache error.log:
 [notice] child pid 21721 exit signal Segmentation fault (11)

and these lines in the mod_jk.log:
 [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters

I checked all available documentation and web resources but couldn't find
any pointers to why that is so.  I have tried pretty much all versions of
the connector modules I could find but apache always crashes like this.

For now I chose the mod_proxy method to serve the jsp files, but I'd prefer
the connectors.  Could some kind soul please point me to the solution.

Thanks in advance,
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Programmers - Use Safer Hex !

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


Re: apache2 crashes when using connectors - nobody?

Posted by David Smith <dn...@cornell.edu>.
Sorry, I don't know.  I haven't had that problem (one of the few I 
haven't had the pleasure of).  It would most likely cause that last 
error message in your mod_jk.log file though:

[jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters

 

--David


Andy Spiegl wrote:

>>The name you gave your workers in workers.properties has to be used in
>>you JkMount statements.
>>    
>>
>Oops, thanks.
>But could that be the reason for a complete crash?
> Andy.
>
>  
>

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


Re: apache2 crashes when using connectors - nobody?

Posted by Andy Spiegl <to...@spiegl.de>.
> The name you gave your workers in workers.properties has to be used in
> you JkMount statements.
Oops, thanks.
But could that be the reason for a complete crash?
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Linux. Because life is too short to reboot.

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


Re: apache2 crashes when using connectors - nobody?

Posted by David Smith <dn...@cornell.edu>.
Well, a quick off the bat error:

    JkMount /examples/servlet/* ajp13
    JkMount /examples/*.jsp ajp13

These should read:

JkMount /examples/servlet/*  worker1
JkMount /examples/*.jsp   worker1

The name you gave your workers in workers.properties has to be used in you JkMount statements.

--David



Andy Spiegl wrote:

>Hi David,
>
>thanks for your reply.
>
>  
>
>>Someone might be able to help if you would be so kind as to provide more 
>>information like relevant parts of your Apache config
>>    
>>
>-------8<-------8<------
><IfModule mod_jk.c>
>
>    JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties
>    JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log
>
>    # Log level to be used by mod_jk
>    JkLogLevel debug
>#    JkLogLevel error
>
>    # The following line makes apache aware of the location of
>    # the /examples context
>    Alias /examples "/opt/jakarta/webapps/examples"
>    <Directory "/opt/jakarta/webapps/examples">
>    Options Indexes FollowSymLinks
>    allow from all
>    </Directory>
>
>    # The following line mounts all JSP files and the /servlet/ uri to tomcat
>    JkMount /examples/servlet/* ajp13
>    JkMount /examples/*.jsp ajp13
>
>    # The following line prohibits users from directly accessing WEB-INF
>    <Location "/examples/WEB-INF/">
>    AllowOverride None
>    deny from all
>    </Location>
>
></IfModule>
>-------8<-------8<------
>
>  
>
>>and the workers.properties file.
>>    
>>
>-------8<-------8<------
># Define some properties
>workers.apache_log=/var/log/apache2/
>workers.tomcat_home=/opt/jakarta/
>#workers.java_home=/opt/IBMJava2-131/
>ps=/
># Define 1 worker
>worker.list=worker1
># Set properties for worker1 (ajp13)
>worker.worker1.type=ajp13
>worker.worker1.host=localhost
>worker.worker1.port=8009
>-------8<-------8<------
>
>  
>
>>Also was the mod_jk connector package you installed built for this
>>version of Apache?
>>    
>>
>Hm, I think so.  I tried:
> apache2-jakarta-tomcat-connectors-4.1.27-63.i586.rpm
> apache2-jakarta-tomcat-connectors-4.1.27.tgz
>and
> http://www.apache.de/dist/jakarta/tomcat-connectors/jk2/binaries/linux/Suse-9.0-i386.tar.gz
>
>Thank you for any help!
> Andy.
>
>  
>

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


Re: apache2 crashes when using connectors - nobody?

Posted by Andy Spiegl <to...@spiegl.de>.
Hi David,

thanks for your reply.

> Someone might be able to help if you would be so kind as to provide more 
> information like relevant parts of your Apache config
-------8<-------8<------
<IfModule mod_jk.c>

    JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties
    JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log

    # Log level to be used by mod_jk
    JkLogLevel debug
#    JkLogLevel error

    # The following line makes apache aware of the location of
    # the /examples context
    Alias /examples "/opt/jakarta/webapps/examples"
    <Directory "/opt/jakarta/webapps/examples">
    Options Indexes FollowSymLinks
    allow from all
    </Directory>

    # The following line mounts all JSP files and the /servlet/ uri to tomcat
    JkMount /examples/servlet/* ajp13
    JkMount /examples/*.jsp ajp13

    # The following line prohibits users from directly accessing WEB-INF
    <Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
    </Location>

</IfModule>
-------8<-------8<------

> and the workers.properties file.
-------8<-------8<------
# Define some properties
workers.apache_log=/var/log/apache2/
workers.tomcat_home=/opt/jakarta/
#workers.java_home=/opt/IBMJava2-131/
ps=/
# Define 1 worker
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
-------8<-------8<------

> Also was the mod_jk connector package you installed built for this
> version of Apache?
Hm, I think so.  I tried:
 apache2-jakarta-tomcat-connectors-4.1.27-63.i586.rpm
 apache2-jakarta-tomcat-connectors-4.1.27.tgz
and
 http://www.apache.de/dist/jakarta/tomcat-connectors/jk2/binaries/linux/Suse-9.0-i386.tar.gz

Thank you for any help!
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Do not marry a person that you know that you can live with;
 only marry someone that you cannot live without.    (Unknown)

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


Re: apache2 crashes when using connectors - nobody?

Posted by David Smith <dn...@cornell.edu>.
Someone might be able to help if you would be so kind as to provide more 
information like relevant parts of your Apache config and the 
workers.properties file.  Also was the mod_jk connector package you 
installed built for this version of Apache?

--David

Andy Spiegl wrote:

>Hm, nobody out there who has seen this problem before and might
>be able to help me?
>
>
>I installed tomcat-4.1.30 on a SuSE 9 box.  So far so good.
>But then I tried to install the connector modules into the apache
>(version 2.0.49-23) but didn't succeed.
>
>I find this type of lines in the apache error.log:
> [notice] child pid 21721 exit signal Segmentation fault (11)
>
>and these lines in the mod_jk.log:
> [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters
>
>I checked all available documentation and web resources but couldn't find
>any pointers to why that is so.  I have tried pretty much all versions of
>the connector modules I could find but apache always crashes like this.
>
>For now I chose the mod_proxy method to serve the jsp files, but I'd prefer
>the connectors.  Could some kind soul please point me to the solution.
>
>Thanks in advance,
> Andy.
>
>  
>

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