PDA

View Full Version : Jetty configuration details


reikiman
03-16-2005, 07:34 PM
I'm playing with a newly reinitialized VPS and I'm interested in trying to use jetty rather than tomcat.

If I stop tomcat, and start jetty .. telling jetty to use the same files as tomcat is using ... and configuring both to do the AJP (mod_jk2) protocol .. jetty is able to handle part of my sites but not all of it.

In my sites I have a) some *.jsp files in the main file hierarhy, and b) a .war installed web application (blojsom to be exact)

The *.jsp files are not seen by jetty ... while the blojsom application works perfectly.

In case it's not clear what I mean, here's a couple URL's to demonstrate:

http://politics.7gen.com:9080/blog/blog/default/

(NOTE: If you click on any of the links, they'll take you to the non-:9080 URL, which is getting served up by tomcat ... If you plug :9080 back into the URL you'll see the same page through jetty.)

http://politics.7gen.com:9080/webshop/item-full.jsp?ASIN=B00008DDVV

This is a .jsp file built into the main website. Tomcat is able to find it just fine, which you can see by removing the :9080

To close this out, here's the configuration
============== apache virtual host def for the site
<VirtualHost *:80>
DocumentRoot /home/david/politics.7gen.com/ROOT
ServerName politics.7gen.com
ServerAlias *.politics.7gen.com
Options ExecCGI Includes IncludesNOEXEC Indexes
AcceptPathInfo On
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location "/blog">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location "/txna">
JkUriSet worker ajp13:localhost:8009
</Location>
</VirtualHost>
=============== jetty 4.2.24rc
<Call name="addWebApplication">
<Arg>politics.7gen.com</Arg>
<Arg>/</Arg>
<Arg>/home/david/politics.7gen.com/ROOT/</Arg>
</Call>


<Call name="addWebApplications">
<Arg>politics.7gen.com</Arg>
<Arg>/home/david/politics.7gen.com/</Arg>
<Arg><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Arg>
<Arg type="boolean">true</Arg>
</Call>
============== Tomcat 5.5.7
<Host name="politics.7gen.com" debug="0" appBase="/home/david/politics.7gen.com"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.politics.7gen.com</Alias>
<Context path="" docBase="ROOT" debug="0">
...
</Context>
</Host>