LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Java JSP/Servlet > Winstone/Hudson setup

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2007, 04:46 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Default Winstone/Hudson setup

Hello,

I am trying to run Hudson (https://hudson.dev.java.net/) behind LiteSpeed 3.0.3 Std/Linux. Release .104 of Hudson comes bundled with a small servlet engine named Winstone (http://winstone.sourceforge.net/).

Example usage:
java -jar hudson.war --prefix=/hudson

I first tried to configure LSWS with a servlet context over AJP. However, Winstone complains of the following:

[Winstone 2007/04/24 16:33:53] - Error within request handler thread
java.lang.StringIndexOutOfBoundsException: String index out of range: 41026
at java.lang.String.checkBounds(String.java:402)
at java.lang.String.<init>(String.java:443)
at winstone.ajp13.Ajp13IncomingPacket.readString(Ajp1 3IncomingPacket.java:270)
at winstone.ajp13.Ajp13IncomingPacket.parsePacket(Ajp 13IncomingPacket.java:185)
at winstone.ajp13.Ajp13Listener.allocateRequestRespon se(Ajp13Listener.java:178)
at winstone.RequestHandlerThread.run(RequestHandlerTh read.java:79)
at java.lang.Thread.run(Thread.java:619)

Next, I tried to configure LSWS with a web proxy. Unfortunately, Winstone does not provide a Content-Length header. LSWS seems to provide an empty page to the end-user in that case, even if the back-end supplies content.

Is there an easy way to fix either of the above situations without touching Winstone?

Thanks.
Reply With Quote
  #2  
Old 04-25-2007, 02:09 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Cool! The little servlet engine hits two bugs in LSWS.
Just uploaded 3.1 release with fixes, please download and try
http://www.litespeedtech.com/package...6-linux.tar.gz
Reply With Quote
  #3  
Old 04-25-2007, 02:54 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Quote:
Originally Posted by mistwang View Post
Cool! The little servlet engine hits two bugs in LSWS.
Just uploaded 3.1 release with fixes, please download and try
http://www.litespeedtech.com/package...6-linux.tar.gz
Things look good! I did not notice any errors when running Winstone 0.9.8 as an external proxy but did see the following with AJP (JDK 6u1):

[Winstone 2007/04/25 14:50:06] - Error within request handler thread

winstone.WinstoneException: Invalid AJP header
at winstone.ajp13.Ajp13IncomingPacket.<init>(Ajp13Inc omingPacket.java:59)
at winstone.ajp13.Ajp13Listener.allocateRequestRespon se(Ajp13Listener.java:164)
at winstone.RequestHandlerThread.run(RequestHandlerTh read.java:79)
at java.lang.Thread.run(Thread.java:619)

Thanks for the quick turnaround.
Reply With Quote
  #4  
Old 04-25-2007, 03:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I noticed that as well, after some investigations, I found that Winstone always dumps this error whenever the the AJP connection was closed by LSWS, like when LSWS restarts. I think it is normal and does not really affect anything.
Reply With Quote
  #5  
Old 04-25-2007, 04:05 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Quote:
Originally Posted by mistwang View Post
I noticed that as well, after some investigations, I found that Winstone always dumps this error whenever the the AJP connection was closed by LSWS, like when LSWS restarts. I think it is normal and does not really affect anything.
Great. When will 3.1 be officially released? One other quick question: is there any significant reason to prefer "servlet engine" over "proxy", given that Winstone and LSWS will be running on the same machine?

Thanks.
Reply With Quote
  #6  
Old 04-25-2007, 04:26 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
3.1 will be released soon, maybe next week.

Quote:
is there any significant reason to prefer "servlet engine" over "proxy", given that Winstone and LSWS will be running on the same machine?
"servlet engine" should be a bit faster than "Proxy", but is also depends on winstone implemenation. one big difference is that winstone cloase HTTP connection for each request, but keep the AJP connection persistent. So, "servlet engine" should be a better choice, performance wise.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:59 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.