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

Go Back   LiteSpeed Support Forums > External Applications > Java JSP/Servlet > Configure /servlets/ in LSWS to Tomcat

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2009, 05:28 PM
Elik Elik is offline
Member
 
Join Date: Nov 2009
Posts: 24
Default Configure /servlets/ in LSWS to Tomcat

Hello,

I have been reviewing the posts here, and I am not having any luck on getting one thing to work properly. There is a setting that is defined in cpanel to call servlets with /servlet/ and /servlets/ along with .jsp to be passed to ajp13.

However, I having no luck on trying to get that specific part of /servlet/ passed to the servlet settings in the LSWS for it to work. How do I do this to make it work properly for it?
Reply With Quote
  #2  
Old 11-25-2009, 07:08 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
please refer our demo page:
http://www.litespeedtech.com/litespeed-live-demos.html

login the web admin console, check the settings relating to
"Apache Tomcat JSP-Examples"

see if it helps.
Reply With Quote
  #3  
Old 11-25-2009, 07:29 PM
Elik Elik is offline
Member
 
Join Date: Nov 2009
Posts: 24
Default Settings

Hello,

I did check in there, but there is nothing in the configuration of the LSWS itself to show how it is configured properly for it, since we are talking about servlets itself, on how to load it with /servlets/ handler.
Reply With Quote
  #4  
Old 11-25-2009, 08:37 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
I'd explain more about the demo settings.

1.under "Virtual Hosts » demo", define a "Servlet Engine" External App "TomcatAJP", address is 127.0.0.1:8009

2.under "Virtual Hosts » demo", define a "Java Web App" context:
URL: /jsp-examples/ (in your case may be /servlets/)
Servlet Engine:TomcatAJP (defined in step 1)
Location:$VH_ROOT/html/tomcat/webapps/jsp-examples/ (.jsp is here)

3.start up tomcat.
$VH_ROOT/html/tomcat/bin>export JAVA_HOME=/usr
$VH_ROOT/html/tomcat/bin>./startup.sh
Reply With Quote
  #5  
Old 11-25-2009, 09:10 PM
Elik Elik is offline
Member
 
Join Date: Nov 2009
Posts: 24
Default That explains it

Okay..that explains it. Now one more question.

How do I make it a wild card that applies for all virtual hosts, so it maps the username into the settings for the servlets so it serves it up?
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 03:20 AM.



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