[Opensource] <servlet-mapping> in Tomcat Version > 4.1.19

maxxam at inetfreemail.co.za maxxam at inetfreemail.co.za
Sun Jan 11 01:08:29 PST 2004


Hi Mike, Larry,

I am using Expresso 5.3RC6.

To answer Larry's suggestion first, I copied in the unaltered RC6 release
web.xml and tried that with the same 404 result.

See further comments...

> So, to recap, in web.xml under the 'wwb' context you have :
>         <servlet>
>                 <servlet-name>DBCreate</servlet-name>
>
> <servlet-class>com.jcorporate.expresso.services.servlet.DBCreate</servlet-cl
> ass>
>         </servlet>
>         <servlet-mapping>
>                 <servlet-name>DBCreate</servlet-name>
>                 <url-pattern>/servlet/DBCreate</url-pattern>
>         </servlet-mapping>
>
> and you go to /wwb/expresso/frame.jsp (make sure the wwb is there) ->
> Setup
> ->
> Create/Verify Database Structure & Perform Initial Setup

Correct.

> and get a 404? It works here on Tomcat 4.1.24:

It works on all my local versions of Tomcat including various 4.1's as
well as Tomcat 5.0.16. I only have this problem on the actual deploy site.

> 1. what version of expresso are you using?

5.3RC6.

> 2. what's the <Context /> entry in tomcat's server.xml (in
> $CATALINA_HOME/conf)

With eapps.com they do not allow you to change the server.xml file. One
has to create a seperate context config file in the webapps directory. My
wwb.xml looks like:

<Context path="wwb" docBase="wwb" debug="0" reloadable="true"/>

> 3. what link is 'Create/Verify Database Structure & Perform Initial Setup'
> trying to go to?

Here's the browsers html code:
<a class="jc-default"
href="/wwb/servlet/DBCreate?back=/wwb/expresso/frame.jsp&db=default"
title="Create Required Tables">

The deploy server is actually a apache web server and a Tomcat server. All
my local develop servers are standalone Tomcat servers. My understanding
is that the apache web server will serve all content except when
instructed to by a mod_jk/ajp13 configuration, in which case it will pass
the request through to Tomcat. These pass throughs are defined by JkMount
configurations.

The eapps default JkMounts are:

JkMount /*.jsp ajp13wwb
JkMount /servlet/* ajp13wwb
JkMount /manager/* ajp13wwb

and I had them configure

JkMount /*.do ajp13wwb

Perhaps I have to get them to configure:

JkMount /wwb/servlet/* ajp13wwb

as well but my understanding is that as long as the url ends in /servlet/*
then it is OK. All my /wwb/Action.do's work fine. Any ideas on this one?

I've also noticed that another aspect of my Expresso deployment is not
working with Tomcat contexts, that is the /Register.do submits in all the
standard Expresso jsp pages. I'll post a seperate message ont his one.

Thanks for all the help,
Max



More information about the Opensource mailing list