For anyone building (or just deploying) an application based on the TDK 2.2
sample newapp under the JBoss application server, you will see a problem
with actions not being found.
The issue is that, under Tomcat, a url like
newapp/servlet/newapp/action/whatever gets handled by the servlet
automatically. Under JBoss, this does not happen, so while
newapp/servlet/newapp does execute the servlet, newapp/servlet/newapp/* does
not.
You can fix this explicitly in your web.xml file. Right after the servlet
tag(s), add this:
<servlet-mapping>
<servlet-name>newapp</servlet-name>
<url-pattern>servlet/newapp/*</url-pattern>
</servlet-mapping>
It looks like Tomcat does this implicitly without requiring an explicit
mapping. This mapping shouldn't hurt anything under Tomcat, so should
probably be added to the source.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>