deploy of servlet problem  
Author Message
james





PostPosted: 2004-2-9 22:35:00 Top

java-programmer, deploy of servlet problem I am newbie to servlet and I am trying some simple example of servlet in
which I have written
1) a html form to get data saved in webapps/myplace/
2) a servlet which is to return the data got from the request.get of the
html form.
I have deployed the tomcat server, put the compiled servlet class in the
WEB-INF/classes and also make the web.xml file.
However, when I load the page to the servlet from the html form, and click
submit from the form which is supposed to link to the servlet, it returns
404 error which said it cannot load the page.
I would like to know what I have missed that lead to such problem.
Thousands Thanks


 
Stefan 舓erberg





PostPosted: 2004-2-10 1:28:00 Top

java-programmer >> deploy of servlet problem
"james" <email***@***.com> wrote in message
news:c085mf$5gh$email***@***.com...
> I am newbie to servlet and I am trying some simple example of servlet in
> which I have written
> 1) a html form to get data saved in webapps/myplace/
> 2) a servlet which is to return the data got from the request.get of the
> html form.
> I have deployed the tomcat server, put the compiled servlet class in the
> WEB-INF/classes and also make the web.xml file.
> However, when I load the page to the servlet from the html form, and click
> submit from the form which is supposed to link to the servlet, it returns
> 404 error which said it cannot load the page.
> I would like to know what I have missed that lead to such problem.
> Thousands Thanks
>
>

Probably something is wrong in your web.xml. Post a copy of it and I will
see if I can help.

/Stefan


 
William Brogden





PostPosted: 2004-2-10 5:44:00 Top

java-programmer >> deploy of servlet problem
"james" <email***@***.com> wrote in message
news:c085mf$5gh$email***@***.com...
> I am newbie to servlet and I am trying some simple example of servlet in
> which I have written
> 1) a html form to get data saved in webapps/myplace/
> 2) a servlet which is to return the data got from the request.get of the
> html form.
> I have deployed the tomcat server, put the compiled servlet class in the
> WEB-INF/classes and also make the web.xml file.
> However, when I load the page to the servlet from the html form, and click
> submit from the form which is supposed to link to the servlet, it returns
> 404 error which said it cannot load the page.
> I would like to know what I have missed that lead to such problem.
> Thousands Thanks
>

If the URL you are using has /servlet/ in it, this is the invoker problem.
Look at the default web.xml file in TOMCAT\conf - search for invoker.
Bill




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
 
HGA03630





PostPosted: 2004-2-10 9:46:00 Top

java-programmer >> deploy of servlet problem "james" <email***@***.com> wrote in message news:<c085mf$5gh$email***@***.com>...
> I am newbie to servlet and I am trying some simple example of servlet in
> which I have written
> 1) a html form to get data saved in webapps/myplace/
> 2) a servlet which is to return the data got from the request.get of the
> html form.
> I have deployed the tomcat server, put the compiled servlet class in the
> WEB-INF/classes and also make the web.xml file.
> However, when I load the page to the servlet from the html form, and click
> submit from the form which is supposed to link to the servlet, it returns
> 404 error which said it cannot load the page.
> I would like to know what I have missed that lead to such problem.
> Thousands Thanks

We may need to know:
(1)The location you've stored the html and the servlet class, relative
to the Tomcat install dir.
(2)The value of FORM ACTION attribute and URL for the servlet.
(3)Your web.xml.
(4)TOMCAT/conf/web.xml
...Some of the recent versions of Tomcat has disabled invoker servlet
in its conf/web.xml by default ... That might be the cause of your
problem.