You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Tran <da...@hotmail.com> on 2003/01/17 19:11:42 UTC
Tomcat 4.1.18, JK2, IIS - Second try
Hi,
I have my tomcat running W2K professional using NT service. I follow JK2 doc and other recommendations on this archive (word by word) to configure connector.
So far no luck. The isapi_redirector2.dll load up in IIS management console looks good, but the NT EventViews shows the following message
Error: [jk_shm.c (333)]: shm.init(): No file
I think this prevents the connector from working.
Any suggestions
-D
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
setting debug value in the workers2.properties does not work. I dont see
any detailed message in the eventview.
The permission setting to the virtual directly as been checked many times, .
I set it to read and scripts and executables. I even change it from
/jakarta to /scripts
Well, I am going to give it up tonight and try again tommorrow.
Thank you for everything ;)
-D
----- Original Message -----
From: "Ari Suutari" <ar...@syncrontech.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "Dan Tran"
<da...@hotmail.com>
Sent: Tuesday, January 21, 2003 2:49 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
Hi,
On Tuesday 21 January 2003 11:58, Dan Tran wrote:
> No I only set debugLevel in the registry, how do I set it in
> workers2.properties?
In all [keywordhere] sections it is possible
to add debug level. For example:
[channel.socket:test_tomcat]
info=Ajp13 forwarding over socket
debug=1000
Ari S.
>
> -Dan
> ----- Original Message -----
> From: "Ari Suutari" <ar...@syncrontech.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>; "Dan Tran"
> <da...@hotmail.com>
> Sent: Tuesday, January 21, 2003 1:42 AM
> Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
>
>
> Hi,
>
> On Monday 20 January 2003 19:19, Dan Tran wrote:
> > With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS
> > on a new machine. The connector on this macine works
> >
> > I also reinstall tomcat on the problem machine, check every step
> > (registries, iis virtual directory, workers2.properties and
> > JK2.properties). Connector on this machine still does not work. There
is
> > no error in EventViewer, the DLL pluggin is up (blue arrow up). The
> > weird thing is I dont see any indication of iis_redirector2.dll talking
> > to port 8009 of tomcat. It seems the request does reach the dll but
> > disappear. The most logical thing to do is to trouble shoot the DLL but
I
> > cant find any reference to make the DLL to dump more debug message to
the
> > Eventviewers.
>
> If you already have debug levels in workers2.properties turned
> on I'm not aware of anything other. When we had similar
> situation (the requests reached the dll but disappeared then
> it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
> and mismatch in extensionUri and actual dll location)
>
> Ari S.
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Ari Suutari <ar...@syncrontech.com>.
Hi,
On Tuesday 21 January 2003 11:58, Dan Tran wrote:
> No I only set debugLevel in the registry, how do I set it in
> workers2.properties?
In all [keywordhere] sections it is possible
to add debug level. For example:
[channel.socket:test_tomcat]
info=Ajp13 forwarding over socket
debug=1000
Ari S.
>
> -Dan
> ----- Original Message -----
> From: "Ari Suutari" <ar...@syncrontech.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>; "Dan Tran"
> <da...@hotmail.com>
> Sent: Tuesday, January 21, 2003 1:42 AM
> Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
>
>
> Hi,
>
> On Monday 20 January 2003 19:19, Dan Tran wrote:
> > With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS
> > on a new machine. The connector on this macine works
> >
> > I also reinstall tomcat on the problem machine, check every step
> > (registries, iis virtual directory, workers2.properties and
> > JK2.properties). Connector on this machine still does not work. There is
> > no error in EventViewer, the DLL pluggin is up (blue arrow up). The
> > weird thing is I dont see any indication of iis_redirector2.dll talking
> > to port 8009 of tomcat. It seems the request does reach the dll but
> > disappear. The most logical thing to do is to trouble shoot the DLL but I
> > cant find any reference to make the DLL to dump more debug message to the
> > Eventviewers.
>
> If you already have debug levels in workers2.properties turned
> on I'm not aware of anything other. When we had similar
> situation (the requests reached the dll but disappeared then
> it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
> and mismatch in extensionUri and actual dll location)
>
> Ari S.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
No I only set debugLevel in the registry, how do I set it in
workers2.properties?
-Dan
----- Original Message -----
From: "Ari Suutari" <ar...@syncrontech.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "Dan Tran"
<da...@hotmail.com>
Sent: Tuesday, January 21, 2003 1:42 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
Hi,
On Monday 20 January 2003 19:19, Dan Tran wrote:
> With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on
> a new machine. The connector on this macine works
>
> I also reinstall tomcat on the problem machine, check every step
> (registries, iis virtual directory, workers2.properties and
> JK2.properties). Connector on this machine still does not work. There is
> no error in EventViewer, the DLL pluggin is up (blue arrow up). The weird
> thing is I dont see any indication of iis_redirector2.dll talking to port
> 8009 of tomcat. It seems the request does reach the dll but disappear.
> The most logical thing to do is to trouble shoot the DLL but I cant find
> any reference to make the DLL to dump more debug message to the
> Eventviewers.
If you already have debug levels in workers2.properties turned
on I'm not aware of anything other. When we had similar
situation (the requests reached the dll but disappeared then
it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
and mismatch in extensionUri and actual dll location)
Ari S.
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Ari Suutari <ar...@syncrontech.com>.
Hi,
On Monday 20 January 2003 19:19, Dan Tran wrote:
> With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on
> a new machine. The connector on this macine works
>
> I also reinstall tomcat on the problem machine, check every step
> (registries, iis virtual directory, workers2.properties and
> JK2.properties). Connector on this machine still does not work. There is
> no error in EventViewer, the DLL pluggin is up (blue arrow up). The weird
> thing is I dont see any indication of iis_redirector2.dll talking to port
> 8009 of tomcat. It seems the request does reach the dll but disappear.
> The most logical thing to do is to trouble shoot the DLL but I cant find
> any reference to make the DLL to dump more debug message to the
> Eventviewers.
If you already have debug levels in workers2.properties turned
on I'm not aware of anything other. When we had similar
situation (the requests reached the dll but disappeared then
it was wrong IIS permissions on inetpub/scripts (ie. the dll directory)
and mismatch in extensionUri and actual dll location)
Ari S.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a
new machine. The connector on this macine works
I also reinstall tomcat on the problem machine, check every step
(registries, iis virtual directory, workers2.properties and JK2.properties).
Connector on this machine still does not work. There is no error in
EventViewer, the DLL pluggin is up (blue arrow up). The weird thing is I
dont see any indication of iis_redirector2.dll talking to port 8009 of
tomcat. It seems the request does reach the dll but disappear. The most
logical thing to do is to trouble shoot the DLL but I cant find any
reference to make the DLL to dump more debug message to the Eventviewers.
Any suggestion?
-D
----- Original Message -----
From: "Ari Suutari" <ar...@syncrontech.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "Dan Tran"
<da...@hotmail.com>
Sent: Sunday, January 19, 2003 10:48 PM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
Hi,
On Saturday 18 January 2003 01:26, Dan Tran wrote:
> That is a good news that It works for you. Then It must be something wrong
> on my configuration. Could you send me your works2.properties and
> jk2.properties?
>
Check your registry entries. There is one entry called
"extensionUri", which should point to isapi_redirector2.dll.
Ie. if you put isapi_redirector2.dll into inetpub/scripts, the
extensionUri should be /scripts/isapi_redirector2.dll. Also,
check that scripts directory have permission in IIS to
execute DLL.
Otherwise, you'll receive an error.
Ari S.
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Ari Suutari <ar...@syncrontech.com>.
Hi,
On Saturday 18 January 2003 01:26, Dan Tran wrote:
> That is a good news that It works for you. Then It must be something wrong
> on my configuration. Could you send me your works2.properties and
> jk2.properties?
>
Check your registry entries. There is one entry called
"extensionUri", which should point to isapi_redirector2.dll.
Ie. if you put isapi_redirector2.dll into inetpub/scripts, the
extensionUri should be /scripts/isapi_redirector2.dll. Also,
check that scripts directory have permission in IIS to
execute DLL.
Otherwise, you'll receive an error.
Ari S.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
That is a good news that It works for you. Then It must be something wrong
on my configuration. Could you send me your works2.properties and
jk2.properties?
Thank you for every thing
-Dan
----- Original Message -----
From: "Mark Eggers" <it...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, January 17, 2003 3:15 PM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
> Dan,
>
> I just started up IIS . . . . and things work fine for
> me (Tomcat 4.1.18, jdk 1.4.1_01, IIS 5, jk2,
> Windows/2000 Pro).
>
> Make sure you have added index.html and index.jsp in
> the Properties-->Documents tag of your default web
> site.
>
> Otherwise, try
> http://localhost/examples/jsp/index.html to see if
> that will work.
>
> /mde/
> just my two cents . . . .
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Mark Eggers <it...@yahoo.com>.
Dan,
I just started up IIS . . . . and things work fine for
me (Tomcat 4.1.18, jdk 1.4.1_01, IIS 5, jk2,
Windows/2000 Pro).
Make sure you have added index.html and index.jsp in
the Properties-->Documents tag of your default web
site.
Otherwise, try
http://localhost/examples/jsp/index.html to see if
that will work.
/mde/
just my two cents . . . .
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
I ran out of option here except to ask that you can verify this with your
IIS, could you? ;-)
----- Original Message -----
From: "Mark Eggers" <it...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, January 17, 2003 1:33 PM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
> Dan,
>
> They should be the same I think . . . The IIS -
> specific parts should be concerned with the redirector
> only.
>
> As long as you have the green arrow in your IIS
> properties and the virtual directories set up in IIS I
> think you should be OK.
>
> I may fire up IIS just for grins again to see what
> happens, but I would rather not.
>
> /mde/
> just my two cents . . . .
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Mark Eggers <it...@yahoo.com>.
Dan,
They should be the same I think . . . The IIS -
specific parts should be concerned with the redirector
only.
As long as you have the green arrow in your IIS
properties and the virtual directories set up in IIS I
think you should be OK.
I may fire up IIS just for grins again to see what
happens, but I would rather not.
/mde/
just my two cents . . . .
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
Hi Mark thank you for so much help
You last note indicate this that you are using apache/tomcat on w2k. So
your jk2.properties
is for this configuration???
Do you have workers2.properties and jk2.properties
that work with IIS/tomcat JK2 connector?
-D
----- Original Message -----
From: "Mark Eggers" <it...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, January 17, 2003 11:49 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
> Dan,
>
> In each of your uri definitions, you need to say what
> worker you will be using:
>
> [uri:/examples/jsp/*]
> info=JSP examples
> context=/examples/jsp
> worker=ajp13:localhost:8009
>
> I'm using the following in my jk2.properties file. I
> am using apache on win/2k, but I haven't started
> playing with the in-process stuff yet. That means I
> can probably take out the references to apr.
>
> #
> # Socket configuration
> #
> handler.list=request,container,channelSocket,apr
>
> #
> # apr configuration
> #
> 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
>
> What would really be neat would be to compile apache
> with the cygwin ipc support and get UNIX sockets (ipc)
> working on Windows.
>
> It's on a "things to do" list.
>
> /mde/
> just my two cents . . . .
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Mark Eggers <it...@yahoo.com>.
Dan,
In each of your uri definitions, you need to say what
worker you will be using:
[uri:/examples/jsp/*]
info=JSP examples
context=/examples/jsp
worker=ajp13:localhost:8009
I'm using the following in my jk2.properties file. I
am using apache on win/2k, but I haven't started
playing with the in-process stuff yet. That means I
can probably take out the references to apr.
#
# Socket configuration
#
handler.list=request,container,channelSocket,apr
#
# apr configuration
#
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
What would really be neat would be to compile apache
with the cygwin ipc support and get UNIX sockets (ipc)
working on Windows.
It's on a "things to do" list.
/mde/
just my two cents . . . .
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Dan Tran <da...@hotmail.com>.
You are right I dont have shm configure in my workers2.properties.
After added shm property, the error message dissappear
(Error: [jk_shm.c (333)]: shm.init(): No file )
However the connector still have problem, I recieved
http 404 code.
The following contains my workers.properties file
[channel.socket:localhost:8009]
info=Forwarding over socket connection to local tomcat instance.
host=localhost
port=8009
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol.
channel=channel.socket:localhost:8009
[shm]
file=C:/tomcat4.1/logs/shm.file
size=1048576
[uri:/examples/jsp/*]
info=JSP examples
context=/examples/jsp
[uri:/glvndb/*]
info=GLVN Database
context=/glvndb/
and My jk2.properties is empty
Any suggestion?
-D
----- Original Message -----
From: "Mark Eggers" <it...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, January 17, 2003 10:24 AM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try
> Dan,
>
> In your workers2.properties file, do you have a
> section similar to the following?
>
> [shm]
> file=C:/Apache2/logs/shm.file
> size=1048576
>
> /mde/
> just my two cents . . . .
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat 4.1.18, JK2, IIS - Second try
Posted by Mark Eggers <it...@yahoo.com>.
Dan,
In your workers2.properties file, do you have a
section similar to the following?
[shm]
file=C:/Apache2/logs/shm.file
size=1048576
/mde/
just my two cents . . . .
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>