Re: Linking Tomcat to Apache

2005-07-14 Thread Bryan Scarbrough
How is it all currently configured (the mod_jk portions)?

Bryan

On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote:
 I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9
 
 I followed the instructions and I thought I had it all right!
 
 But I edited my httpd.cong file to support virtual hosts and pointed the
 document root to the jsp and the servlet examples and apache serves those
 pages to the web but the examples come through as html so its not using
 tomcat
 
 Can anyone help?
 
 I will send you my files if that will help?
 
 -Ben
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Linking Tomcat to Apache

2005-07-13 Thread Ben Stuart
I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 

I followed the instructions and I thought I had it all right! 

But I edited my httpd.cong file to support virtual hosts and pointed the 
document root to the jsp and the servlet examples and apache serves those 
pages to the web but the examples come through as html so its not using 
tomcat 

Can anyone help? 

I will send you my files if that will help?

-Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Linking Tomcat to Apache

2005-07-13 Thread Ben Ricker
Check out http://jakarta.apache.org/tomcat/connectors-doc/ for
infromation on how to configure mod_jk to server up specific sorts of
URLs.

Ben Ricker

On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote:
 I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9
 
 I followed the instructions and I thought I had it all right!
 
 But I edited my httpd.cong file to support virtual hosts and pointed the
 document root to the jsp and the servlet examples and apache serves those
 pages to the web but the examples come through as html so its not using
 tomcat
 
 Can anyone help?
 
 I will send you my files if that will help?
 
 -Ben
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Ben Ricker
He's just this guy, you know?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Linking tomcat with apache

2004-01-20 Thread Anantharam S
Hi 

I had the same problem regarding linking tomcat with apache, i found this great site 
by John Turner

http://johnturner.com/howto/apache-tomcat-howto.html

It talks about all possible configurations of tomcat and apache linking on all 
platoforms, by far the best link i have seen :)

thanks
ananth

Re: Linking tomcat with apache

2004-01-20 Thread pavan . k

and if u r working on AIX u have to
look at
http://apache.org/~trawick/tomcataix.html

Pavan Kumar
Tata Consultancy Services
mailto: [EMAIL PROTECTED]
[EMAIL PROTECTED]DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Linking tomcat with apache

2004-01-20 Thread batpurev
Hi Ananthram,

The link you provided is real help 

Cheers,
Purvee

-Original Message-
From: Anantharam S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 5:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Linking tomcat with apache

Hi 

I had the same problem regarding linking tomcat with apache, i found
this great site by John Turner

http://johnturner.com/howto/apache-tomcat-howto.html

It talks about all possible configurations of tomcat and apache linking
on all platoforms, by far the best link i have seen :)

thanks
ananth



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Linking tomcat with apache

2004-01-20 Thread Brennon Obst
Dear usergroup,

I am linking with JK2 using tomcat5 and having some problems with my
tomcat/conf/server.xml

I have a tutorial for tomcat4 (best one I could find) and in it the
following instructions are specific for tomcat4 however I want to make
the changes to use tomcat5. 

---start tutorial segment

Now look for a line that says 

Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true  


Just below that line, add the following: 

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /  

end tutorial 

The line className=org.apache.ajp.tomcat4.config.ApacheConfig is
specific and I do not know how to specify the right file. 

Any pointers or server.xml would be appreciated.

more info on setup
Tomcat 5.0 
Apache 2.0
Mod_jk2-2.0.43.dll


Thank you in advance,

Brennon


-Original Message-
From: batpurev [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 20 January 2004 8:36 PM
To: 'Tomcat Users List'; 'Anantharam S'
Subject: RE: Linking tomcat with apache


Hi Ananthram,

The link you provided is real help 

Cheers,
Purvee

-Original Message-
From: Anantharam S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 5:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Linking tomcat with apache

Hi 

I had the same problem regarding linking tomcat with apache, i found
this great site by John Turner

http://johnturner.com/howto/apache-tomcat-howto.html

It talks about all possible configurations of tomcat and apache linking
on all platoforms, by far the best link i have seen :)

thanks
ananth



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Linking tomcat with apache

2004-01-19 Thread Allan Bruce
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 12
[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 12




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 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Linking tomcat with apache

2004-01-19 Thread Yiannis Mavroukakis
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=100

Or whatever path takes your fancy.

Yiannis.

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
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 12
[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 12




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 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.

Re: Linking tomcat with apache

2004-01-19 Thread Allan Bruce
Thanks very much, thats it working now.
Any ideas how I could navigate to:

http://server/servlet/WinGalagaHST?Op=GetHTML

instead of

http://server/examples/servlet/WinGalagaHST?Op=GetHTML

i.e. so I dont have to type 'examples'.  I dont want to use HTTP 301
Redirect.
Thanks
Allan


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, January 19, 2004 2:58 PM
Subject: RE: Linking tomcat with apache


 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=100

 Or whatever path takes your fancy.

 Yiannis.

 -Original Message-
 From: Allan Bruce [mailto:[EMAIL PROTECTED]
 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 12
 [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 12




 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 [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 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

RE: Linking tomcat with apache

2004-01-19 Thread Yiannis Mavroukakis

Map the servlet path you want to use in workers2.properties i.e.
[uri:/servlet/*]
worker=ajp13:localhost:8019

and make sure your webapp is under webapps/servlet in Tomcat.

Yiannis


-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 15:38
To: Tomcat Users List
Subject: Re: Linking tomcat with apache


Thanks very much, thats it working now.
Any ideas how I could navigate to:

http://server/servlet/WinGalagaHST?Op=GetHTML

instead of

http://server/examples/servlet/WinGalagaHST?Op=GetHTML

i.e. so I dont have to type 'examples'.  I dont want to use HTTP 301
Redirect.
Thanks
Allan


- Original Message - 
From: Yiannis Mavroukakis [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, January 19, 2004 2:58 PM
Subject: RE: Linking tomcat with apache


 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=100

 Or whatever path takes your fancy.

 Yiannis.

 -Original Message-
 From: Allan Bruce [mailto:[EMAIL PROTECTED]
 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 12
 [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 12




 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 [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 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

RE: Linking tomcat with apache

2004-01-19 Thread David Short
Add shm.file=c:/Apache2/logs/jk2.shm to your
$CATALINA_HOME\conf\jk2.properties file.

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:52 AM
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 12
[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 12




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 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Linking tomcat with apache

2004-01-18 Thread Allan Bruce
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Linking tomcat with apache

2004-01-18 Thread Tim Funk
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Linking tomcat with apache

2004-01-18 Thread Allan Bruce
I get an error message saying: Internal Server Error.

I have left my jk2.properties blank as this should leave everything to the
default as far as I can tell.  My workers2.properies is using this minimal
config:

# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp
What else do I need to get this working?ThanksAllan- Original
Message - 
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help with linking tomcat to apache

2000-10-20 Thread Hardawayd

I have apache and tomcat3.2 (beta 6) up and running.  When I Include the 
TOMCAT_HOME/conf/mod_jk.conf-auto reference in my httpd.conf file and restart 
apache, I get an error message saying "syntax error in http.conf".  If I 
comment out the Include statement apache starts fine.  I have looked at the 
content in the mod_jk.conf-auto file and can not see the problem.  Any ideas 
or suggestions or help would be greatly appreciated.

don