tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiannis Mavroukakis <yian...@jaguarfreight.com>
Subject RE: Linking tomcat with apache
Date Mon, 19 Jan 2004 14:58:33 GMT
Probably this
[Mon Jan 19 14:32:37 2004] [error] shm.init(): No file

You need a shm directive in your workers2.properties.

[shm]
file=/tmp/shm.file
size=1000000

Or whatever path takes your fancy.

Yiannis.

-----Original Message-----
From: Allan Bruce [mailto:allanmb@f2s.com]
Sent: 19 January 2004 14:52
To: Tomcat Users List
Subject: Re: Linking tomcat with apache


Thanks Tim,

I am a step closer I think, my configs are detailed below.  I have tomcat
running with jk2 fine, the log states

INFO: JK2: ajp13 listening on /0.0.0.0:8019


but apache has the following error:

[Mon Jan 19 14:32:37 2004] [notice] Apache-AdvancedExtranetServer/2.0.44
configured -- resuming normal operations
[Mon Jan 19 14:32:37 2004] [error] shm.init(): No file
[Mon Jan 19 14:33:23 2004] [error] workerEnv.init() create slot epStat.0
failed
[Mon Jan 19 14:33:23 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:33:23 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:33:23 2004] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Mon Jan 19 14:34:28 2004] [error] shm.init(): No file
[Mon Jan 19 14:35:53 2004] [error] workerEnv.init() create slot epStat.2
failed
[Mon Jan 19 14:35:53 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:35:53 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:35:53 2004] [error] mod_jk.handler() Error connecting to
tomcat 120000




What am I doing wrong?
Thanks
Allan

----config files added/changed
--added to /etc/httpd/conf/commonhttpd.conf
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

--/etc/httpd/conf/workers2.properties
#min for working
[channel.socket:localhost:8019]
info=Ajp13 forwarding over socket
tomcatId=localhost:8019
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp


--/usr/local/sites/tomcat/tomcat/conf/jk2.properies
# list of needed handlers.
handler.list=apr,channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8019
# Dynamic library
apr.NativeSo=/usr/lib/apache2/mod_jk2.so


--added to /usr/local/sites/tomcat/tomcat/conf/server.xml
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8019"
minProcessors="5" maxProcessors="75" enableLookups="true"
redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />



----- Original Message ----- 
From: "Tim Funk" <funkman@joedog.org>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Sunday, January 18, 2004 7:23 PM
Subject: Re: Linking tomcat with apache


> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
> http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
>
> -Tim
>
> Allan Bruce wrote:
> > I have tomcat and apache both setup and running.  At the moment, I am
using
> > a permanent redirect for urls to servlets to tomcat.  But this is not
> > correct.  How do I get them set up correctly? I have jk2 installed.
> > Thanks
> > Allan
>
>
> ---------------------------------------------------------------------
> 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


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__________________________________________________________________
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message