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

Go Back   LiteSpeed Support Forums > External Applications > Java JSP/Servlet > LSWS 2.0RC6 + Tomcat

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2005, 08:55 PM
tomcatter tomcatter is offline
New Member
 
Join Date: Jan 2005
Posts: 3
Default LSWS 2.0RC6 + Tomcat

I'm having problems getting LSWS to work with tomcat and was wondering if anyone had ideas...

I've got lsws and tomcat 5 installed on the same box. Tomcat is configured for ajp 1.3 listening on port 8009 (basically the default installation). Connecting to port 8080 gets a positive response from tomcat. The /jsp-examples/ web app is installed and running fine, so I don't think it is a tomcat problem so far...

So in my server I define an external app named Tomcat5 pointing at 127.0.0.1:8009 but no script handler (I'm trying to use the context hander).

In my virtual host I create a context handler, define the web app type, set the uri to /jsp-examples/ (so it matches the path for the external app), set up the path to the /opt/tomcat5/webapps/jsp-examples/, then saved all of the configuration changes.

Restarted the lsws server (just to make sure we're staring fresh) and point at http://localhost/jsp-examples/, but all I get is a 404 response. There is absolutely nothing in either the server logs nor the virtual host logs (outside of the single line entry in the access logs) to indicate what the problem might be...

Can anyone make a suggestion as to how I would resolve this?

Thanks in advance...
Reply With Quote
  #2  
Old 01-31-2005, 09:34 PM
tomcatter tomcatter is offline
New Member
 
Join Date: Jan 2005
Posts: 3
Default Follow-up...

Well, made a little progress. By setting the index file to "index.jsp" it now loads the jsp page, but it displays only text.

So I figured I needed the script handler also. Defined the script handler for jsp to the servlet engine and wahoo, it works...

So here's some additional info that maybe should be incorporated into the online help:

1. Define the web app as currently mentioned in the online help (see info from previous post).
2. Be sure to define the index files to index.jsp (if that's the entry point).
3. Define the script handler for jsp to point to the servlet engine.

My guess is that, since the script handler can only be configured at the server level the servlet engine must be defined at the server level also, otherwise it probably wouldn't work.
Reply With Quote
  #3  
Old 02-01-2005, 06:21 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for your feedback.
You pretty much figured it out.

We will add the index.jsp part into our documentation,
http://www.litespeedtech.com/docs/HowTo_QA.html#qa_jsp
Thank you for the suggestion. :-)

Script handler configuration is available at virtual host level, under the "general" tab.
Reply With Quote
  #4  
Old 11-11-2009, 10:36 AM
Tarembah73 Tarembah73 is offline
New Member
 
Join Date: Oct 2009
Location: United States
Posts: 7
Default LSWS 2 0RC6 Tomcat

if you have got reply to your question about the Tomcat Native Library location? thanks
Reply With Quote
  #5  
Old 11-12-2009, 11:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The tomcat Native Library is tomcat internal feature, you just follow the instruction as if Apache is use, to build the Native library using APR. It wont change any configure on LSWS side.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LSWS 3.0RC2 and trac-fcgi Erg CGI/Perl/Python 13 02-06-2009 12:16 PM
Litespeed + Tomcat 5.5 howto? pcguru Java JSP/Servlet 1 11-30-2005 11:41 AM
Not to stop FCGI apps while reloading LSWS Roman2K Feedback/Feature Requests 4 10-12-2005 01:21 PM
LSWS killed my pet squirrel!!! DNSFusion Bug Reports 1 07-24-2004 08:01 PM
Testimonial : LSWS as web app frontend instead of Apache bogus Feedback/Feature Requests 1 03-26-2004 10:32 AM


All times are GMT -7. The time now is 12:45 PM.



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