You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Øyvind Roth <oo...@suss.no> on 2006/10/02 15:36:40 UTC
IIS and Tomcat on different physical servers
I am trying to get IIS and Tomcat to communicate on two different machines.
With no luck.
It seems like almost all questions on the web regarding IIS/Tomcat asssume
the two servers
run on the same machine. In my case, not.
On Server1:
Windows 2000 Server SP4 (with IIS v. 5 I assume...)
JK2 v. 2.0.3
On Server2:
Windows 2000 Server SP4
Tomcat 5.5
Java 1.5.0_06-b05
On Server1:
"http://myserver1/jkstatus" seems to work fine
On Server2:
"http://myserver2:8080/reptilcom/knife/doit" works fine
When I try to reach Tomcat from Server1, like:
"http://myserver1/reptilcom/knife/doit" I get the following debug/error
mesages in the Event Log for JK:
Error: [jk_isapi_plugin.c (496)]: HttpExtensionProc worker is NULL
Debug: [jk_isapi_plugin.c (491)]: HttpExtensionProc could not get a worker
for name lb_ms_rc
Debug: [jk_isapi_plugin.c (482)]: HttpExtensionProc started
Debug: [jk_isapi_plugin.c (429)]: HttpFilterProc check if
[/reptilcom/knife/doit] is pointing to the web-inf directory
On server1 no Java and no Tomcat Server are installed. I have assumed all
the time that that's OK.
Am I right? If not, what's Java/Tomcat doing on Server1?
My configuration files are as follows:
*******************************************************************
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
"serverRoot"="C:\\Program Files\\Tomcat 5.5"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"logLevel"="DEBUG"
"workersFile"="C:\\Program Files\\Tomcat 5.5\\conf\\workers2.properties"
*******************************************************************
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers.
file=C:/Program Files/Tomcat 5.5/work/anon.shm
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb_ms_rc]
[channel.socket:MYSERVER2:8009]
host=<my correct octets>
port=8009
# define the worker
[ajp13:MYSERVER2:8009]
channel=channel.socket:MYSERVER2:8009
group=lb_ms_rc
[uri:/reptilcom/knife/doit]
group=lb_ms_rc
context=/reptilcom/
path=/reptilcom/knife/doit
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
[logger.win32]
level=INFO
regards
Øyvind
RE: IIS and Tomcat on different physical servers
Posted by Øyvind Roth <oo...@suss.no>.
Well, I did just what Mladen Turk told me: Use the latest version found on
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2
.19/ (That's why I felt this a bit embarrassing...) :-)
I so did and, up it was!
There was a small quirk however: Opposite to what's read on the above
mentioned page, there was no msi on this one page. I therefore downloaded
1.2.15, the latest version including an msi, and 1.2.19 without any msi. I
then installed 1.2.15 and thereafter I copied the 1.2.19 exe file
overwriting the 1.2.15 one in the bin directory. Whether it would have
worked in a clean 1.2.15 install, I never tried to find out.
As to IIS/no Java on one server and Java/Tomcat on the other, it is just a
matter of configuring the IP address and port in the JK configuration files.
Best regards
Øyvind Roth
-----Original Message-----
From: Thannhäuser [mailto:M.Thannhaeuser@Ceyoniq.com]
Sent: 10. oktober 2006 16:26
To: users@tomcat.apache.org
Subject: RE: IIS and Tomcat on different physical servers
Hi!
So could you tell us, what you actually did to make it running.
I'm having the same problem at the moment.
It's pretty working on all Windows XP Servers with IIS 5.1, but not with
Windows 2000 Server and IIS 5.
Thanks
marcel
--
View this message in context:
http://www.nabble.com/IIS-and-Tomcat-on-different-physical-servers-tf2369658
.html#a6737542
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: IIS and Tomcat on different physical servers
Posted by Thannhäuser <M....@Ceyoniq.com>.
Hi!
So could you tell us, what you actually did to make it running.
I'm having the same problem at the moment.
It's pretty working on all Windows XP Servers with IIS 5.1, but not with
Windows 2000 Server and IIS 5.
Thanks
marcel
--
View this message in context: http://www.nabble.com/IIS-and-Tomcat-on-different-physical-servers-tf2369658.html#a6737542
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: IIS and Tomcat on different physical servers
Posted by Øyvind Roth <oo...@suss.no>.
It did it, most of it at least.
Thanks a lot! (A bit embarrassing , though...)
(And I also got confirmed my understanding that it is
perfectly possible to have Tomcat on a separate
machine and that the machine running IIS needs
neither Java nor Tomcat (of course)).
A couple of issues remain, however:
1)
¤ S1 is a Win2000 Server running IIS
¤ S2 is a Win2000 Server running Tomcat 5.5 and the application myapp
¤ M1 is an arbirtary computer running Win2000 Server
¤ S1, S2 and M1 run inside a firewall and all have routable IP-addresses
¤ C1 is an arbitrary computer outside the firewall running Win 2000
Professional
¤ On the machines S1, S2 and M3, using IE, I get to S2's myapp fine,
using the URL http://S1/myapp
¤ On the machines S1, S2 and M3, using IE, I get to jkmanager fine,
using the URL http://S1/jkmanager
¤ On the machine C1, I get to http://S1/jkmanager fine
¤ On the machine C1, I do NOT get to http://S1/myapp, instead I get
redirected to a strange unknown address (CERN/SMS related by the way)
Problem summary question: Could this be a JK problem, or is it most
probably an IIS configuration matter? Anyhow, any ideas or tips where to
look?
2) Deleting the registry entries on S1 for JK, instead using the documented
isapi_redirect.properties
(http://tomcat.apache.org/connectors-doc/config/iis.html):
¤ On the server S1 (hosting IIS), I get to the Tomcat application
running on the server S2 hosting Tomcat fine, using the URL http://S1/myapp
¤ On the machine S1, I do NOT reach jkmanager, using the URL
http://S1/jkmanager
¤ On the machine C1, I do NOT get to http://S1/jkmanager
¤ On the machine C1, I do NOT get to http://S1/myapp
Problem summary question: Is the jkmanager somehow related to whether
the registry or the isapi_redirect.properties is used?
Best regards
Øyvind Roth
-----Original Message-----
From: Mladen Turk [mailto:mladen.turk@jboss.com]
Sent: 2. oktober 2006 18:54
To: Tomcat Users List
Subject: Re: IIS and Tomcat on different physical servers
Øyvind Roth wrote:
>
> Windows 2000 Server SP4 (with IIS v. 5 I assume...)
> JK2 v. 2.0.3
>
Do not use JK2. It is unsupported for more then 2 years.
See:
http://tomcat.apache.org/connectors-doc/news/20041100.html#20041115.1
Use JK 1.2.19 instead:
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2
.19/
Regards,
Mladen.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0
Posted by Mladen Turk <ml...@jboss.com>.
Per Johnsson wrote:
> Hi!
>
> We have had some major problems today on our productions serves with the config below. We have had a hard time localizing the problem and therefor I ask you here if you have any comments. There seems to be a some
>
Please do not steal the threads.
It will never be answered.
Regards,
Mladen.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0
Posted by Per Johnsson <Pe...@omxgroup.com>.
Hi!
We have had some major problems today on our productions serves with the config below. We have had a hard time localizing the problem and therefor I ask you here if you have any comments. There seems to be a some
Whe have Apache Tomcat 5.5.12 running Tomcat Native Java Library 1.1 (apr)
And we are running JK-1.2.19.
We have 4 tomcat servers and 4 IIS servers in front and a dcc beween the tomcat and iis with sticky configured on the loadbalancer.
This is our config for the jk and I just want to check see if we have made some mistakes thou we are not really sure.
worker.ajp13w.type=ajp13
worker.ajp13w.host=10.182.18.3
worker.ajp13w.port=8009
worker.ajp13w.socket_keepalive=True
// The for above seems to be no problem
worker.ajp13w.socket_timeout=60
// This timeout, is it better to have it zero? As I read the doc if I put it lower the jk will make more retries often and higher lesser retries.
worker.ajp13w.connection_pool_size=100
//from the docs:
// It will limit the number of those connection that each web server child process can made...default is 10 on IIS...
What does webserver child process when talking about IIS means, is it connections per user or is it, What config in IIS is this? We havn't found anyone matching really?
worker.ajp13w.connection_pool_timeout=60
// This one, is it seconds? I really don't understand if it's a good thing if it's many connections or if you want them to be kept alive.
Here is out server.xml config for the connectors:
------8<------
<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="5000" disableUploadTimeout="true"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/css,text/javascript" />
<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="5000" disableUploadTimeout="true"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/css,text/javascript" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" maxProcessors="250" />
------8<------
Today we have three connectors, is these three independent of each other or does for exampple the ajp connector talking to the 8080 connector?
Hope some of you have some idéas of this, and any other tweaking, optimizationtricks for tomcat together with IIS 6.0 is highly appriciated.
Sorry if I'm a little unclear, it has been a long day and it's gong to be a long night..
/Regards Per Jonsson
********************************************************************************
This e-mail and the information it contains may be privileged and/or
confidential. It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited.
If you are not an intended recipient, please contact the sender and delete the material from your computer.
********************************************************************************
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: IIS and Tomcat on different physical servers
Posted by Mladen Turk <ml...@jboss.com>.
Øyvind Roth wrote:
>
> Windows 2000 Server SP4 (with IIS v. 5 I assume...)
> JK2 v. 2.0.3
>
Do not use JK2. It is unsupported for more then 2 years.
See:
http://tomcat.apache.org/connectors-doc/news/20041100.html#20041115.1
Use JK 1.2.19 instead:
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.19/
Regards,
Mladen.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org