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

larry hamel expresso at codeguild.com
Sat Jan 10 10:10:41 PST 2004


the web.xml that comes with an expresso download should have all the mappings for expresso itself. you only have to change it if you add servlets.  

consider comparing your copy with one from a download.  the "complete" download has everything setup correctly and includes a working tomcat engine.  

you could ask the hosting folks if they modify any part of tomcat when they install.

larry

At 06:28 AM 1/10/2004, you 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

Larry Hamel
----------------------
Free link-test tool (special handling for Expresso sites): http://morebot.org
Custom web site development: http://codeguild.com 




More information about the Opensource mailing list