[Opensource] <servlet-mapping> in Tomcat Version > 4.1.19
Mike Traum
mtraum at jgroup.net
Sat Jan 10 11:02:19 PST 2004
Max,
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-class>
</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
and get a 404? It works here on Tomcat 4.1.24:
1. what version of expresso are you using?
2. what's the <Context /> entry in tomcat's server.xml (in $CATALINA_HOME/conf)
3. what link is 'Create/Verify Database Structure & Perform Initial Setup' trying to go to?
mike
On Sat, 2004-01-10 at 08:28, maxxam at inetfreemail.co.za wrote:
> Hi,
>
> I'm having trouble getting the servelst to run on my new deployment at
> eapps.com. The server is running Tomcat V4.1.29. I cannot get DBCreate to
> run. I can load expresso/frame.jsp fine but get a "Object not found" Error
> 404.
>
> I read somewhere that the default servelt mapping was removed from Tomcat
> versions greater than V4.1.19 (if I am not mistaken) and one has to
> declare the mapping explicity for each servlet. I have the following my
> web.xml file:
>
> <servlet>
> <servlet-name>DBCreate</servlet-name>
> <servlet-class>com.jcorporate.expresso.services.servlet.DBCreate</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>DBCreate</servlet-name>
> <url-pattern>/servlet/DBCreate</url-pattern>
> </servlet-mapping>
>
> I have my app loaded in a Tomcat context called /wwb. Any ideas on what
> I'm doing wrong here?
>
> What I eventually did was put in the following mapping:
> <servlet-mapping>
> <servlet-name>DBCreate</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> This caused the DBCreate screen to fill each of the expresso webpage
> frames. I was then able to run DBCreate and initialise my database. I then
> went back and restored the original servlet-mapping. All of my servlets
> still won't run. It seems that I can call all the .do controllers fine
> including DBMaint.do, but the servlets that don't have a struts definition
> can't be found.
>
> Thanks for the help,
> Max
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
--
Mike Traum
--
JGroup Expert
Expresso Core Developer
Providing support and development services - Available Now!
More information about the Opensource
mailing list