You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bret Goldsmith <br...@yahoo.com> on 2001/05/31 21:17:48 UTC
Page descendant / GET method error
I have just configured Tomcat 4.0 to use a new context (called "AppManager").
I have a simple JSP test page in the AppManager context directory, and it runs
fine as the following:
<HTML>
test login page
</HTML>
However, I am trying to enhance it by extending the page from an ancestor class
(that is completely devoid of code except for the _jspservice() and
service())...
<%@ page extends="www.WWW_Page" %>
<HTML>
test login page
</HTML>
But when I do this in the JSP page, I get the following error:
HTTP Status 405 - HTTP method GET is not supported by this URL
I decided that I would first test out Tomcat 3.2 to see if it was just
something unimplemented in 4.0, but 3.2 came up with a very similar error under
the equivalent configuration.
My web.xml file under the AppManager context is basically empty
(<web-app></web-app>), so that the new context inherits all from the
conf/web.xml, which is pretty standard from the default conf/web.xml that comes
with the Tomcat 4.0 package.
Am I missing some security configuration measures in the context/web.xml file?
I tried adding a <security-constraint> element, (similar to the sample found in
the examples/web.xml file) that had references to the HTTP methods available,
but this editing did not work.
Thanks,
Bret
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/