Re: Tomcat connector for IIS 5.1 error executing servlet example

2005-11-11 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,
You should not be using workes2.properties.
I would suggest to you that you use this tutorial:

http://www.reynir.net/java/greinar/nr/14

JK2 is deprecated.

Your workers file is quite complicated, for the task. you do not need it
so complex to work for the examples, you have loadbalanced workers and
so on (you dont need it).

hope it helps
- -reynir






Goay Zee Ling (ACM/MIS) wrote:
 Hi. May I have sample workers.properties file that manage to execute all
 the servlets examples  provided by tomcat?
 
 I am using tomcat 5.0.28, IIS5 on WinXP Pro, isapi_dll(1.2.14.0,Nov 2005
 release). 
 
 Appreciate any help. 
 
 -Original Message-
 From: Goay Zee Ling (ACM/MIS) [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 11, 2005 8:46 AM
 To: Tomcat Users List
 Subject: RE: Tomcat connector for IIS 5.1 error executing servlet
 example
 
 Hi.
 
 Reynir, I am not too sure about the worker2.properties setting on your
 website. What is status? What is channel? I manage to execute Get
 request servlet example but not Post Request servlet example. 
 
 This is my setting:
 
 # workers.properties -
 workers.tomcat_home=C:\Tomcat5
 workers.java_home=D:\j2sdk1.4.2_09
 ps=\
 worker.list=ajp12, ajp13
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp13
 worker.ajp12.lbfactor=1
 
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp12, ajp13
 
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.ja
 r
 worker.inprocess.cmd_line=start
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classi
 c$(ps)jvm.dll
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
 dout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
 derr
 
 Thank you.
 -Original Message-
 From: Reynir Hubner [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 11, 2005 12:11 AM
 To: Tomcat Users List
 Subject: Re: Tomcat connector for IIS 5.1 error executing servlet
 example
 
 Hi,
 First Gangaa D., I think since java is platform independant this is
 not a good answer to a query like this. Installing Linux or FreeBSD does
 not solve all problems by it self. Linux is fine when you know how to
 work around it, if you do not know anything about linux, you are better
 off with windows.
 
 I suggest the ISAPI_redirector is not configured correctly.
 
 I have few old (and some very old) pages on the subject on my website,
 but to my knowledge they still work. So check it out, it might help:
 
 http://www.reynir.net/java/greinar/
 
 yes it works, hope it helps.
 -reynir
 
 
 Gangaa D wrote:
 
You should use Linux or FreeBSD that is more robust.

--- Goay Zee Ling (ACM/MIS) [EMAIL PROTECTED]
wrote:



Hi. I have some problem executing servlet examples provided in tomcat 
using the tomcat connector.

I am using tomcat 5.0.28, IIS 5.1 and just manage to install 
isapi_redirect.dll.

I manage to execute the servlet examples using 
http://localhost:8080/servlet-examples, thru tomcat directly.

I manage to view
http://localhost/servlet-examples/index.html, but i can't execute the 
servlet examples. there's one request parameters example. When i click
 
 
on Submit Query, the next page show The page cannot be displayed.

I checked the isapi.log file, it shows:
[/servlets-examples/servlet/RequestParamExample] is a servlet url - 
should redirect to ajp13 Maintaining worker ajp13 jk_worker.c (111):
found a worker ajp13 jk_isapi_plugin.c (1018): got a worker for name
ajp13
jk_ajp_common.c (2131): acquired connection cache slot=0 
jk_ajp_common.c (566): ajp marshaling done jk_ajp_common.c (1670):
processing with 3 retries jk_connect.c (328): socket TCP_NODELAY set 
to On jk_connect.c (426): trying to connect socket 1912 to
127.0.0.1:8009
jk_connect.c (452): socket 1912 connected to
127.0.0.1:8009
jk_ajp_common.c (864): Connected socket 1912 to 
(127.0.0.1:8009)jk_ajp_common.c (909): sending to
ajp13 pos=4 len=564
max=8192

jk_ajp_common.c (1261): request body to send 28 - request body to 
resend 0 [error] jk_isapi_plugin.c (604): ReadClient failed with 
274c jk_ajp_common.c (1118): Receiving data from client failed.
Connection aborted or network problems jk_ajp_common.c (1741): Sending
 
 
request to tomcat failed, because of client error without recovery in 
send loop 0 jk_isapi_plugin.c (1031): service() returned OK 
jk_ajp_common.c (2074): recycling connection cache slot=0 for worker
ajp13

and the stdout.log shows:
org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request
java.io.IOException
at


org.apache.jk.common.JkInputStream.receive(JkInputStream.java:252)


at


org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:
50


0

Re: Tomcat connector for IIS 5.1 error executing servlet example

2005-11-10 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
First Gangaa D., I think since java is platform independant this is
not a good answer to a query like this. Installing Linux or FreeBSD does
not solve all problems by it self. Linux is fine when you know how to
work around it, if you do not know anything about linux, you are better
off with windows.

I suggest the ISAPI_redirector is not configured correctly.

I have few old (and some very old) pages on the subject on my website,
but to my knowledge they still work. So check it out, it might help:

http://www.reynir.net/java/greinar/

yes it works, hope it helps.
- -reynir


Gangaa D wrote:
 You should use Linux or FreeBSD that is more robust.
 
 --- Goay Zee Ling (ACM/MIS) [EMAIL PROTECTED]
 wrote:
 
 
Hi. I have some problem executing servlet examples
provided in tomcat
using the tomcat connector.
 
I am using tomcat 5.0.28, IIS 5.1 and just manage to
install
isapi_redirect.dll.
 
I manage to execute the servlet examples using
http://localhost:8080/servlet-examples, thru tomcat
directly.
 
I manage to view
http://localhost/servlet-examples/index.html, but i
can't execute the servlet examples. there's one
request parameters
example. When i click on Submit Query, the next
page show The page
cannot be displayed. 
 
I checked the isapi.log file, it shows:
[/servlets-examples/servlet/RequestParamExample] is
a servlet url -
should redirect to ajp13
Maintaining worker ajp13
jk_worker.c (111): found a worker ajp13
jk_isapi_plugin.c (1018): got a worker for name
ajp13
jk_ajp_common.c (2131): acquired connection cache
slot=0
jk_ajp_common.c (566): ajp marshaling done
jk_ajp_common.c (1670): processing with 3 retries
jk_connect.c (328): socket TCP_NODELAY set to On
jk_connect.c (426): trying to connect socket 1912 to
127.0.0.1:8009
jk_connect.c (452): socket 1912 connected to
127.0.0.1:8009
jk_ajp_common.c (864): Connected socket 1912 to
(127.0.0.1:8009)jk_ajp_common.c (909): sending to
ajp13 pos=4 len=564
max=8192

jk_ajp_common.c (1261): request body to send 28 -
request body to resend
0
[error] jk_isapi_plugin.c (604): ReadClient failed
with 274c
jk_ajp_common.c (1118): Receiving data from client
failed. Connection
aborted or network problems
jk_ajp_common.c (1741): Sending request to tomcat
failed, because of
client error without recovery in send loop 0
jk_isapi_plugin.c (1031): service() returned OK
jk_ajp_common.c (2074): recycling connection cache
slot=0 for worker
ajp13

and the stdout.log shows:
org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request 
java.io.IOException
 at

 
 org.apache.jk.common.JkInputStream.receive(JkInputStream.java:252)
 
 at

 
 org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:50
 
0)
 at

 
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
 
 at

 
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 
 at

 
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
 
675)
 at

 
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 
 at

 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
 
.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
May I know how to correct this problem? Is there any
configuration that
i need to set?
Or has anyone successfully execute servlet examples
using tomcat
connector?
Appreciate any help. Thank you.
 
regards,
zl

 
 
 
 
   
 __ 
 Start your day with Yahoo! - Make it your home page! 
 http://www.yahoo.com/r/hs
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDc3EG19KgIQihNwgRAnq7AJwPkjuHOY4MYx++jkvOtWIk6Ya9TACeP+Pb
rAeAYjvGrXKgzON9JNUfBm0=
=13Sh
-END PGP SIGNATURE-

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



RE: Tomcat connector for IIS 5.1 error executing servlet example

2005-11-10 Thread Goay Zee Ling \(ACM/MIS\)
Hi.

Reynir, I am not too sure about the worker2.properties setting on your
website. What is status? What is channel? I manage to execute Get
request servlet example but not Post Request servlet example. 

This is my setting:

# workers.properties -
workers.tomcat_home=C:\Tomcat5
workers.java_home=D:\j2sdk1.4.2_09
ps=\
worker.list=ajp12, ajp13
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp13
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.ja
r
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classi
c$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
dout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
derr

Thank you.
-Original Message-
From: Reynir Hubner [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 11, 2005 12:11 AM
To: Tomcat Users List
Subject: Re: Tomcat connector for IIS 5.1 error executing servlet
example

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
First Gangaa D., I think since java is platform independant this is
not a good answer to a query like this. Installing Linux or FreeBSD does
not solve all problems by it self. Linux is fine when you know how to
work around it, if you do not know anything about linux, you are better
off with windows.

I suggest the ISAPI_redirector is not configured correctly.

I have few old (and some very old) pages on the subject on my website,
but to my knowledge they still work. So check it out, it might help:

http://www.reynir.net/java/greinar/

yes it works, hope it helps.
- -reynir


Gangaa D wrote:
 You should use Linux or FreeBSD that is more robust.
 
 --- Goay Zee Ling (ACM/MIS) [EMAIL PROTECTED]
 wrote:
 
 
Hi. I have some problem executing servlet examples provided in tomcat 
using the tomcat connector.
 
I am using tomcat 5.0.28, IIS 5.1 and just manage to install 
isapi_redirect.dll.
 
I manage to execute the servlet examples using 
http://localhost:8080/servlet-examples, thru tomcat directly.
 
I manage to view
http://localhost/servlet-examples/index.html, but i can't execute the 
servlet examples. there's one request parameters example. When i click

on Submit Query, the next page show The page cannot be displayed.
 
I checked the isapi.log file, it shows:
[/servlets-examples/servlet/RequestParamExample] is a servlet url - 
should redirect to ajp13 Maintaining worker ajp13 jk_worker.c (111): 
found a worker ajp13 jk_isapi_plugin.c (1018): got a worker for name
ajp13
jk_ajp_common.c (2131): acquired connection cache slot=0 
jk_ajp_common.c (566): ajp marshaling done jk_ajp_common.c (1670): 
processing with 3 retries jk_connect.c (328): socket TCP_NODELAY set 
to On jk_connect.c (426): trying to connect socket 1912 to
127.0.0.1:8009
jk_connect.c (452): socket 1912 connected to
127.0.0.1:8009
jk_ajp_common.c (864): Connected socket 1912 to 
(127.0.0.1:8009)jk_ajp_common.c (909): sending to
ajp13 pos=4 len=564
max=8192

jk_ajp_common.c (1261): request body to send 28 - request body to 
resend 0 [error] jk_isapi_plugin.c (604): ReadClient failed with 
274c jk_ajp_common.c (1118): Receiving data from client failed. 
Connection aborted or network problems jk_ajp_common.c (1741): Sending

request to tomcat failed, because of client error without recovery in 
send loop 0 jk_isapi_plugin.c (1031): service() returned OK 
jk_ajp_common.c (2074): recycling connection cache slot=0 for worker
ajp13

and the stdout.log shows:
org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request
java.io.IOException
 at

 
 org.apache.jk.common.JkInputStream.receive(JkInputStream.java:252)
 
 at

 
 org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:
 50
 
0)
 at

 
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
 
 at

 
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 
 at

 

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
 
675)
 at

 
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 
 at

 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
 ol
 
.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
May I know how to correct this problem? Is there any configuration 
that i need to set?
Or has anyone successfully execute servlet examples using tomcat 
connector?
Appreciate any help. Thank you.
 
regards,
zl

 
 
 
 
   
 __
 Start your day with Yahoo! - Make it your home page! 
 http://www.yahoo.com/r/hs
 
 -
 To unsubscribe, e

RE: Tomcat connector for IIS 5.1 error executing servlet example

2005-11-10 Thread Goay Zee Ling \(ACM/MIS\)
Hi. May I have sample workers.properties file that manage to execute all
the servlets examples  provided by tomcat?

I am using tomcat 5.0.28, IIS5 on WinXP Pro, isapi_dll(1.2.14.0,Nov 2005
release). 

Appreciate any help. 

-Original Message-
From: Goay Zee Ling (ACM/MIS) [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 11, 2005 8:46 AM
To: Tomcat Users List
Subject: RE: Tomcat connector for IIS 5.1 error executing servlet
example

Hi.

Reynir, I am not too sure about the worker2.properties setting on your
website. What is status? What is channel? I manage to execute Get
request servlet example but not Post Request servlet example. 

This is my setting:

# workers.properties -
workers.tomcat_home=C:\Tomcat5
workers.java_home=D:\j2sdk1.4.2_09
ps=\
worker.list=ajp12, ajp13
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp13
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.ja
r
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classi
c$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
dout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.st
derr

Thank you.
-Original Message-
From: Reynir Hubner [mailto:[EMAIL PROTECTED]
Sent: Friday, November 11, 2005 12:11 AM
To: Tomcat Users List
Subject: Re: Tomcat connector for IIS 5.1 error executing servlet
example

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
First Gangaa D., I think since java is platform independant this is
not a good answer to a query like this. Installing Linux or FreeBSD does
not solve all problems by it self. Linux is fine when you know how to
work around it, if you do not know anything about linux, you are better
off with windows.

I suggest the ISAPI_redirector is not configured correctly.

I have few old (and some very old) pages on the subject on my website,
but to my knowledge they still work. So check it out, it might help:

http://www.reynir.net/java/greinar/

yes it works, hope it helps.
- -reynir


Gangaa D wrote:
 You should use Linux or FreeBSD that is more robust.
 
 --- Goay Zee Ling (ACM/MIS) [EMAIL PROTECTED]
 wrote:
 
 
Hi. I have some problem executing servlet examples provided in tomcat 
using the tomcat connector.
 
I am using tomcat 5.0.28, IIS 5.1 and just manage to install 
isapi_redirect.dll.
 
I manage to execute the servlet examples using 
http://localhost:8080/servlet-examples, thru tomcat directly.
 
I manage to view
http://localhost/servlet-examples/index.html, but i can't execute the 
servlet examples. there's one request parameters example. When i click

on Submit Query, the next page show The page cannot be displayed.
 
I checked the isapi.log file, it shows:
[/servlets-examples/servlet/RequestParamExample] is a servlet url - 
should redirect to ajp13 Maintaining worker ajp13 jk_worker.c (111):
found a worker ajp13 jk_isapi_plugin.c (1018): got a worker for name
ajp13
jk_ajp_common.c (2131): acquired connection cache slot=0 
jk_ajp_common.c (566): ajp marshaling done jk_ajp_common.c (1670):
processing with 3 retries jk_connect.c (328): socket TCP_NODELAY set 
to On jk_connect.c (426): trying to connect socket 1912 to
127.0.0.1:8009
jk_connect.c (452): socket 1912 connected to
127.0.0.1:8009
jk_ajp_common.c (864): Connected socket 1912 to 
(127.0.0.1:8009)jk_ajp_common.c (909): sending to
ajp13 pos=4 len=564
max=8192

jk_ajp_common.c (1261): request body to send 28 - request body to 
resend 0 [error] jk_isapi_plugin.c (604): ReadClient failed with 
274c jk_ajp_common.c (1118): Receiving data from client failed.
Connection aborted or network problems jk_ajp_common.c (1741): Sending

request to tomcat failed, because of client error without recovery in 
send loop 0 jk_isapi_plugin.c (1031): service() returned OK 
jk_ajp_common.c (2074): recycling connection cache slot=0 for worker
ajp13

and the stdout.log shows:
org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
org.apache.jk.common.HandlerRequest invoke
SEVERE: Error decoding request
java.io.IOException
 at

 
 org.apache.jk.common.JkInputStream.receive(JkInputStream.java:252)
 
 at

 
 org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:
 50
 
0)
 at

 
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
 
 at

 
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 
 at

 

org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
 
675)
 at

 
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 
 at

 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
 ol
 
.java:683)
 at java.lang.Thread.run(Thread.java:534)
 
May I