Really? This was not a requirement for earlier
versions of Tomcat, right?
Here is my web.xml for my x509 application:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>X509 Project</display-name>
<description>
X509 Public Key Certificate Authentication
</description>
</web-app>
Please continue to educate. Thanks a lot!
--- vim m <[EMAIL PROTECTED]> wrote:
> What does your web.xml file contain? For every
> servlet
> in your application, you should have a <servlet>
> element and a mapping element.
>
>
>
>
> --- Mark Liu <[EMAIL PROTECTED]> wrote:
> > I am running Tomcat 4.1.12 on my Windows 2000
> > system.
> >
> > Tomcat runs pretty well. The examples run pretty
> > well.
> >
> > I created an x509 directory under webapps, i.e., I
> > have C:\Tomcat4_1_12\webapps\x509 now.
> >
> > Then I created 2 folders under x509: WEB-INF and
> > Test,
> > i.e., I have
> >
> > C:\Tomcat4_1_12\webapps\x509\WEB-INF
> >
> > and
> >
> > C:\Tomcat4_1_12\webapps\x509\Test
> >
> > now.
> >
> > Under WEB-INF I have web.xml and a folder called
> > classes.
> >
> > i.e.,
> C:\Tomcat4_1_12\webapps\x509\WEB-INF\classes.
> >
> > I put Marty Hall's ShowParametersPostForm.html
> under
> > Test, and his ShowParameters.class &
> > ServletUtilities.class under classes.
> >
> > I was able to see the ShowParametersPostForm.html
> > page
> > via this link:
> >
> >
>
http://localhost/x509/Test/ShowParametersPostForm.html
> >
> > But then when I fill up the form and hit submit, I
> > always get this:
> >
> > type Status report
> >
> > message /x509/servlet/ShowParameters
> >
> > description The requested resource
> > (/x509/servlet/ShowParameters) is not available.
> >
> > However, if I move the structure to Tomcat's
> > examples
> > folder, it works great.
> >
> > Please note that I have changed servlet path
> > specified
> > in ShowParametersPostForm.html to
> >
> > <FORM ACTION="../servlet/ShowParameters"
> > METHOD="POST">
> >
> > Also please note that I have added x509 context in
> > server.xml under conf, like so:
> >
> > <!-- Project X509 context -->
> > <Context path="/x509" docBase="x509"
> > debug="0" reloadable="true"
> > privileged="true"/>
> >
> > I do not understand why it does not work under my
> > x509
> > directory. I have been trying this for the whole
> > day!
> >
> > Any kind help please?
> >
> > Thanks a lot.
> >
> > Mark
> >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>