[Opensource] <servlet-mapping> in Tomcat Version > 4.1.19
maxxam at inetfreemail.co.za
maxxam at inetfreemail.co.za
Sat Jan 10 06:28:24 PST 2004
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
More information about the Opensource
mailing list