You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Johannes Fiala <to...@fwd.at> on 2003/03/03 22:48:38 UTC
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Chris,
Unfortunately I cannot even confirm 2.0.1 works with MY configuration.
Using 1.0, everything is ok.
Using 2.0.1 or 2.0.2 however:
*) there is no message in my logfile entered in the registry, although I
turned log_level to debug
*) I get the following error:
Does anybody know what this message means?
Here is a screenshot of my registry:
I think it is really hard to debug the behaviour of the JK-Connector.
Maybe a more detailed logging would help installing users a lot?
thx
Johannes
"Christopher Watson" <c....@zen.co.uk>
28.02.2003 10:50
Please respond to
"Tomcat Users List" <to...@jakarta.apache.org>
To
"'Tomcat Users List'" <to...@jakarta.apache.org>
cc
Subject
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Johannes , All,
I've found the 2.0.1 dll works - with jk2 style config, but not the
2.0.2 dll.
Can anyone else confirm this is the case for them?
If so, does anyone know why 2.0.2 is not working?
Or what I need to change from 2.0.1 config to get it to work?
(My workers2.properties, jk2.properites and exported registry are
attached for the curious)
If it's not a config, perhaps 2.0.2 should be fixed or removed?
I only kind of by accident tried 2.0.1 and found it to work, having
puzzled over 2.0.2 for a long time.
My 2p (UK c version of 2 cents)
Christopehr
> -----Original Message-----
> From: Johannes Fiala [mailto:tomcat@fwd.at]
> Sent: 28 February 2003 08:08
> To: Tomcat Users List
> Subject: Re: Tomcat 4.1.18 - IIS 5.0 plugin
>
>
> Dear Ben,
>
> isapi_redirector version 1.0 is running smoothly with Tomcat
> 4.1.18 on my
> PC.
> Being curious, I tried to get 2.0.2 running as well, but it
> didn't work
> out (the arrow stays red down).
> However, it should be running, because I used the same
> uriworkermap/workers.properties. Or did these files change for 2.0?
>
> Can you send me
> *) the working registry entries and
> *) uriworkermap.properties
> *) workers.properties
> *) the isapi_redirector2.dll you are using?
>
> I'd like to see 2.0 up and running as well!
>
> thx alot
> Johannes
>
>
>
>
>
> "Schleimer, Ben" <be...@yahoo.com>
> 27.02.2003 15:09
> Please respond to
> "Tomcat Users List" <to...@jakarta.apache.org>
>
>
> To
> Tomcat Users List <to...@jakarta.apache.org>
> cc
>
> Subject
> Re: Tomcat 4.1.18 - IIS 5.0 plugin
>
>
>
>
>
>
> Hi,
> You need to get isapi_redirector2.dll from the JK2
> connectors part of the website. I had the same
> problem.
> Also, the registry keys need to be in 2.0, not 1.0.
> 4.1.18 is compiled to use jk2, not jk.
>
> Good luck,
> Ben
>
> --- Johannes Fiala <to...@fwd.at> wrote:
> > hi there,
> >
> > I just tried to get the IIS JK2 running using
> > Tomcat 4.1.18 with JK isapi 2.0.2 and IIS 5.0 (Win
> > 2000 Professional)
> >
> > I added the registry entries correctly (no error in
> > event viewer)
> > according to the howto.
> > I created the virtual directory jakarta which
> > displays the entry
> > isapi_redirect.dll correctly.
> > However, after I stop and start IIS 5.0 the ISAPI
> > Filter shows the red
> > arrow down.
> >
> > The log file I specified in the registry entry
> > log_file is simplest, but
> > there is no log file showing up (c:\isapi.log).
> >
> > Any ideas on where I have to look at for errors?
> >
> > thx alot
> > Johannes Fiala
>
>
> =====
> "The competent programmer is fully aware of the strictly
> limited size of
> his own skull; therefore he approaches the programming task in full
> humility, and among other things he avoids clever tricks like
> the plague"
> - Edsger Dijkstra
>
http://snow.prohosting.com/bensch
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
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
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Posted by Rick Bullotta <ri...@lighthammer.com>.
JK2 uses a completely different set of registry keys and property file
formats.
Here are copies of what works for me (with 2.0.2), in a very basic
installation scenario:
workers.properties
# =============
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
[shm:]
file=C:/Program Files/Apache Group/Tomcat 4.1/shm.file
size=2000000
# Map the Tomcat uri paths as needed
[uri:/examples/*]
info=Map the whole webapp
[uri:/servlet/*]
info=Default invoker
# =============
jk2.properties
# =============
[shm]
file=C:/Program Files/Apache Group/shm.file
size=564249
# =============
registry entries
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
"workersFile"="c:\\Program Files\\Apache Group\\Tomcat
4.1\\conf\\workers2.properties"
"logLevel"="INFO"
"serverRoot"="c:\\Program Files\\Apache Group\\Tomcat 4.1"
"extensionUri"="/jakarta/isapi_redirector2.dll"
Rick Bullotta
CTO
Lighthammer Software (http://www.lighthammer.com
<http://www.lighthammer.com/> )
-----Original Message-----
From: Johannes Fiala [mailto:tomcat@fwd.at]
Sent: Monday, March 03, 2003 4:49 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18 - IIS 5.0 plugin
Chris,
Unfortunately I cannot even confirm 2.0.1 works with MY configuration.
Using 1.0, everything is ok.
Using 2.0.1 or 2.0.2 however:
*) there is no message in my logfile entered in the registry, although I
turned log_level to debug
*) I get the following error:
Does anybody know what this message means?
Here is a screenshot of my registry:
I think it is really hard to debug the behaviour of the JK-Connector.
Maybe a more detailed logging would help installing users a lot?
thx
Johannes
"Christopher Watson" <c....@zen.co.uk>
28.02.2003 10:50
Please respond to
"Tomcat Users List" <to...@jakarta.apache.org>
To
"'Tomcat Users List'" <to...@jakarta.apache.org>
cc
Subject
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Johannes , All,
I've found the 2.0.1 dll works - with jk2 style config, but not the
2.0.2 dll.
Can anyone else confirm this is the case for them?
If so, does anyone know why 2.0.2 is not working?
Or what I need to change from 2.0.1 config to get it to work?
(My workers2.properties, jk2.properites and exported registry are
attached for the curious)
If it's not a config, perhaps 2.0.2 should be fixed or removed?
I only kind of by accident tried 2.0.1 and found it to work, having
puzzled over 2.0.2 for a long time.
My 2p (UK c version of 2 cents)
Christopehr
> -----Original Message-----
> From: Johannes Fiala [mailto:tomcat@fwd.at]
> Sent: 28 February 2003 08:08
> To: Tomcat Users List
> Subject: Re: Tomcat 4.1.18 - IIS 5.0 plugin
>
>
> Dear Ben,
>
> isapi_redirector version 1.0 is running smoothly with Tomcat
> 4.1.18 on my
> PC.
> Being curious, I tried to get 2.0.2 running as well, but it
> didn't work
> out (the arrow stays red down).
> However, it should be running, because I used the same
> uriworkermap/workers.properties. Or did these files change for 2.0?
>
> Can you send me
> *) the working registry entries and
> *) uriworkermap.properties
> *) workers.properties
> *) the isapi_redirector2.dll you are using?
>
> I'd like to see 2.0 up and running as well!
>
> thx alot
> Johannes
>
>
>
>
>
> "Schleimer, Ben" <be...@yahoo.com>
> 27.02.2003 15:09
> Please respond to
> "Tomcat Users List" <to...@jakarta.apache.org>
>
>
> To
> Tomcat Users List <to...@jakarta.apache.org>
> cc
>
> Subject
> Re: Tomcat 4.1.18 - IIS 5.0 plugin
>
>
>
>
>
>
> Hi,
> You need to get isapi_redirector2.dll from the JK2
> connectors part of the website. I had the same
> problem.
> Also, the registry keys need to be in 2.0, not 1.0.
> 4.1.18 is compiled to use jk2, not jk.
>
> Good luck,
> Ben
>
> --- Johannes Fiala <to...@fwd.at> wrote:
> > hi there,
> >
> > I just tried to get the IIS JK2 running using
> > Tomcat 4.1.18 with JK isapi 2.0.2 and IIS 5.0 (Win
> > 2000 Professional)
> >
> > I added the registry entries correctly (no error in
> > event viewer)
> > according to the howto.
> > I created the virtual directory jakarta which
> > displays the entry
> > isapi_redirect.dll correctly.
> > However, after I stop and start IIS 5.0 the ISAPI
> > Filter shows the red
> > arrow down.
> >
> > The log file I specified in the registry entry
> > log_file is simplest, but
> > there is no log file showing up (c:\isapi.log).
> >
> > Any ideas on where I have to look at for errors?
> >
> > thx alot
> > Johannes Fiala
>
>
> =====
> "The competent programmer is fully aware of the strictly
> limited size of
> his own skull; therefore he approaches the programming task in full
> humility, and among other things he avoids clever tricks like
> the plague"
> - Edsger Dijkstra
>
http://snow.prohosting.com/bensch
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
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
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Posted by Johannes Fiala <to...@fwd.at>.
Hi all,
Thx Mark + Rick for your support.
I tried to use your recommended settings and succeeded so far, as the
green arrow is now showing after I restart IIS.
However, I could not completely decipher the following settings (in Mark's
jk2.properties):
apr.NativeSo=${jkHome}\\bin\\Win32\\jkjni.dll
apr.jniModeSo=${jkHome}\\bin\\Win32\\jkjni.dll
What is this jkjni.dll? I could not find it in my bin-directory of default
Tomcat 4.1.18 installation.
Should I obtain it separately? Where can I get it?
In general: I think the description of JK2 is quite hard to understand for
a JK-newbie. Why does Rick only have one entry in his jk2.properties file
and Mark has much more? Which one is right?
Do I have to turn anything on in server.xml to get JK2 running? Any good
links???
2nd question: If I set logLevel to DEBUG, where does it write its log
entries to?
Shouldn't there be a setting for the file name?
3rd question: Rick, you wrote your configuration is a basic scenario, do
you know a good description for more advanced scenarios?
Eventually in the event log of W2K I still see the following error:
"The service could not bind instance 1".
and the Plugin doesn't work. Does anybody know how I can track down this
error:
Screenshot of my registry entries:
Luckily, with my version 1.0 of JK POST method is also working, so I
currently have no urgent troubles with JK 1.0.
thx
johannes
RE: Tomcat 4.1.18 - IIS 5.0 plugin
Posted by Mark Eggers <it...@yahoo.com>.
2.0.2 works fine for me on Windows/2000 Pro with both
IIS 5 and Apache 2.0.43 with Tomcat 4.1.18 and j2sdk
1.4.1_01.
I did find that I could not have both the version 1
and version 2 redirector in my registry. If I did,
IIS would not connect to jk2. Once I removed that
entry in the registry, isapi_redirector2.dll worked as
advertised.
This is a development machine so I have not
stress-tested this configuration.
The following are my configuration files and registry
settings.
HTH
/mde/
just my two cents . . . .
#
# Socket configuration
#
handler.list=request,container,channelSocket,apr
#
# apr configuration
# jk2.properties file in C:\Tomcat\conf
#
apr.NativeSo=${jkHome}\\bin\\Win32\\jkjni.dll
apr.jniModeSo=${jkHome}\\bin\\Win32\\jkjni.dll
#
# socket configuration
#
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
# workers2.properties file in C:\Apache2\conf
# only at beginning. In production uncomment it out
# [logger.apache2]
# level=DEBUG
[shm]
file=C:/Apache2/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/examples/*.jsp]
worker=ajp13:localhost:8009
[uri:/examples/servlet/*]
worker=ajp13:localhost:8009
[uri:/cocoon/*]
worker=ajp13:localhost:8009
[uri:/jetspeed/*]
worker=ajp13:localhost:8009
[uri:/jfreeservlet/servlet/*]
worker=ajp13:localhost:8009
[uri:/tomcat-docs/*.jsp]
worker=ajp13:localhost:8009
[uri:/tomcat-docs/servlet/*]
worker=ajp13:localhost:8009
[uri:/beg-jsp/*.jsp]
worker=ajp13:localhost:8009
[uri:/beg-servlets/servlet/*]
worker=ajp13:localhost:8009
[uri:/ora/*.jsp]
worker=ajp13:localhost:8009
[uri:/ora/servlet/*]
worker=ajp13:localhost:8009
[uri:/Addressbook/*]
worker=ajp13:localhost:8009
[uri:/Xindice/*]
worker=ajp13:localhost:8009
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation]
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector]
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector\2.0]
"serverRoot"="C:\\Tomcat"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\Apache2\\conf\\workers2.properties"
"logLevel"="INFO"
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org