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

Go Back   LiteSpeed Support Forums > External Applications > Java JSP/Servlet > Litespeed stops working

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2007, 01:59 PM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
Default Litespeed stops working

I'm trying to get JWChat to work behind Litespeed. I have it deployed on a Tomcat server. JWChat is working when I access it on port 8080. I have also enabled port 8009 on Tomcat.

On Litespeed (I'm using 2.2.6) I have added an external application:
Name: Tomcat 5.5
Type: Servlet Engine
Address: localhost:8009
Max Connections: 100
Initial Request Timeout: 60
Retry Timeout: 10
Response Buffering: No

And I also added a script handler:
Suffixes: jsp
Handler Type: Servlet Engine
Handler Name: Tomcat 5.5

At this stage I can still gracefully restart Litespeed and it comes back up.

After that I created a new virtual host based on the centralConfigLog template. On the context menu I added a new context (and deleted the cgi-bin one):

Type: Java Web App
URI: /jwchat/
Servlet Engine: Tomcat 5.5

If I do a graceful restart, the server doesn't come back up again. I need to delete all entries in httpd_config.xml that point to this new virtual host, before Litespeed starts again. I can't find any errors in stderr.log. I have no more clues of what is going wrong. I'm hoping you can help me. Thanks.

Kind regards,

Nick
Reply With Quote
  #2  
Old 06-12-2007, 03:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is time to upgrade to 3.1.1 release.
Reply With Quote
  #3  
Old 06-13-2007, 01:51 PM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
Thanks for the tip. I upgraded to 3.1.1, but the same thing happens as with the 2.2.6 version. And as an added bonus the new admin console is very slow. What am I doing wrong?
Reply With Quote
  #4  
Old 06-13-2007, 02:04 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please do "strace ./lshttpd -d", and send the output to bug ((a)) litespeedtech ((.)) com, if you do not want to post it here. Please check if there is core files produced in /tmp/lshttpd or lsws/bin directory.

The YUI used in the new admin console has a slow start.
Reply With Quote
  #5  
Old 06-14-2007, 12:16 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
I have send a strace output to you guys. Hope it helps to clarify my problem. Thanks.
Reply With Quote
  #6  
Old 06-14-2007, 08:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The strace ouptut shows that the LSWS started successfully. Was the vhost causing problem taken out from httpd_config.xml when you run the strace?
Please remove those core files under /tmp/lshttpd, then try to reproduce the problem, if a new core file is created, email the core, along with lsws/logs/error.log
Reply With Quote
  #7  
Old 06-14-2007, 10:51 AM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
Managed to easily reproduce the error I send a new strace file, along with the core file and the error.log file. Hope it provides some clues.
Reply With Quote
  #8  
Old 06-14-2007, 12:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Found the problem, you need to set "location" to where the java web application located when you define the "/jwchat/" context.
Reply With Quote
  #9  
Old 06-14-2007, 02:05 PM
nicksnels nicksnels is offline
Member
 
Join Date: Feb 2007
Posts: 33
I finally got it The location in the context tab was set wrongly. Thank you very much for your help. Really helpful and as a plus I have upgraded to the latest and greatest Litespeed version.

One final question about the admin interface. I'm getting load times of more than 15 seconds (even up to 30 seconds) for every page I access. The load times stay that high even when I access a page I have visited before. The old admin console (2.2.6) was much snappier, with load times no more than 3 seconds. Is there something I can do to speed it up, because this way there is no joy in using the admin console. All I'm doing now is wait, wait and wait even more.
Reply With Quote
  #10  
Old 06-14-2007, 02:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
What kind of server and browser are you using? How many vhosts do you have there?
The YUI lib used is a bit slow but it should not take that long.
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 02:21 AM.



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