You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andreas Bauer <an...@arcor.de> on 2005/06/05 14:46:21 UTC
[users@httpd] Apache cannot connect to Tomcat in httpd.conf
Hello!
Can somebody help me, please?
My OS is Suse 9.2 pro. Apache and Tomcat work for me.
But If I start Apache with normal httpd.conf, Apache works for me.
If I paste my lines for Apache-Tomcat Connection, Apache doesn't
work for me, only Tomcat. It must be something wrong with this lines, but
the same lines in httpd.conf
in a windows XP Tomcat-Apache configuration works for me:
The pasted lines in httpd.conf are:
LoadModule jk2_module modules/mod_jk2.so
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location "/mywebapp">
JkUriSet worker ajp13:localhost:8009
</Location>
The Tomcat Connector Modul mod_jk2.so is in the rigth directory
and Apache doesn't send an errormessage,, because of the module, when I
start Apache from the commandoline. If I took another Tomcatconnectormodul,
I got errormessage.
With the old one, not.
My jk2.properties is:
TOMCAT_DIR/conf/jk2.properties, adding the following line:
channelSocket.port=8009
Configuration of server.xml is:
server.xml configuration from Tomcat/conf directory:
look for the "non-SSL Coyote HTTP/1.1 Connector". This is
the standard Tomcat-only connector and comment it out since we'll be using
Apache for handling HTTP requests. In the same file, look for a commented
line that says "<Context path="" docBase="ROOT" debug="0">". Right after
that line, add the following Context path:
<Context path="" docBase="APACHE_DIR/htdocs" debug="0" reloadable="true"
crossContext="true"/>
Workers2.properties is:
APACHE_DIR/conf directory/workers2.properties:
[shm]
file=APACHE_DIR/logs/shm.file
size=1048576
# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# worker for the connector
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
The working script is from
<http://www.dynamicobjects.com/d2r/archives/002574.html>
http://www.dynamicobjects.com/d2r/archives/002574.html
The same T-A Connector Configuration with a windows Connector Module works
for me in a windows system.
Best regards and many thanks
Andreas
Re: [users@httpd] Re: Apache cannot connect to Tomcat in httpd.conf
Posted by Dick Davies <ra...@hellooperator.net>.
* Andreas <an...@arcor.de> [0634 23:34]:
>
> >Setup a log for mod_jk2.
>
> /usr/local/apache2/logs/error_log:
>
> [Thu Jun 02 01:36:24 2005] [notice] Apache/2.0.54 (Unix) configured --
> resuming normal operations
> [Thu Jun 02 02:19:08 2005] [notice] caught SIGTERM, shutting down
> [Thu Jun 02 02:19:11 2005] [notice] Apache/2.0.54 (Unix) mod_jk2/2.0.4
> configured -- resuming normal operations
> [Thu Jun 02 02:19:19 2005] [notice] child pid 6544 exit signal
> Segmentation fault (11)
No, a log for jk2, not apache, to tell you what it's doing.
You're probably better off asking on the tomcat list.
--
'A little rudeness and disrespect can elevate a meaningless interaction
into a battle of wills and add drama to an otherwise dull day.'
-- Calvin discovers Usenet
Rasputin :: Jack of All Trades - Master of Nuns
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Apache cannot connect to Tomcat in httpd.conf
Posted by Andreas <an...@arcor.de>.
> Setup a log for mod_jk2.
/usr/local/apache2/logs/error_log:
[Thu Jun 02 01:36:24 2005] [notice] Apache/2.0.54 (Unix) configured --
resuming normal operations
[Thu Jun 02 02:19:08 2005] [notice] caught SIGTERM, shutting down
[Thu Jun 02 02:19:11 2005] [notice] Apache/2.0.54 (Unix) mod_jk2/2.0.4
configured -- resuming normal operations
[Thu Jun 02 02:19:19 2005] [notice] child pid 6544 exit signal
Segmentation fault (11)
[Thu Jun 02 02:19:19 2005] [notice] child pid 6545 exit signal
Segmentation fault (11)
[Thu Jun 02 03:10:53 2005] [notice] caught SIGTERM, shutting down
[Mon Jun 06 00:04:53 2005] [notice] Apache/2.0.54 (Unix) mod_jk2/2.0.4
configured -- resuming normal operations
[Mon Jun 06 00:05:24 2005] [notice] child pid 5055 exit signal
Segmentation fault (11)
[Mon Jun 06 00:05:25 2005] [notice] child pid 5056 exit signal
Segmentation fault (11)
[Mon Jun 06 00:05:25 2005] [notice] child pid 5057 exit signal
Segmentation fault (11)
Best regards
Andreas
-
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache cannot connect to Tomcat in httpd.conf
Posted by Dick Davies <ra...@hellooperator.net>.
* Andreas Bauer <an...@arcor.de> [0643 13:43]:
> Hello!
>
> Can somebody help me, please?
>
> My OS is Suse 9.2 pro. Apache and Tomcat work for me.
> But If I start Apache with normal httpd.conf, Apache works for me.
> If I paste my lines for Apache-Tomcat Connection, Apache doesn't
> work for me, only Tomcat. It must be something wrong with this lines, but
> the same lines in httpd.conf
>
> in a windows XP Tomcat-Apache configuration works for me:
>
> The pasted lines in httpd.conf are:
>
> LoadModule jk2_module modules/mod_jk2.so
> <Location "/*.jsp">
> JkUriSet worker ajp13:localhost:8009
> </Location>
> <Location "/mywebapp">
> JkUriSet worker ajp13:localhost:8009
> </Location>
Setup a log for mod_jk2.
--
'Yeah, well I'm gonna build my own themepark! With blackjack aaand Hookers!
Actually, forget the park. And the blackjack.'
-- Bender
Rasputin :: Jack of All Trades - Master of Nuns
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org