aspose file tools*
The moose likes Tomcat and the fly likes Help -unable to run servlet in APACHE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help -unable to run servlet in APACHE" Watch "Help -unable to run servlet in APACHE" New topic
Author

Help -unable to run servlet in APACHE

sachin verma
Ranch Hand

Joined: Mar 25, 2008
Posts: 177
Hi
I used Apache 5.0.17 previously and I created an application (Beer Selection Program page no 75-77) given in Head first Servlet and Jsp 2nd edition.

I placed form.html as given in tomcat/wabapps/Beer-v1/form.html

and xml file in tomcat/webapps/Beer-v1/WEB-INF/web.xml

but when I try to request the page through web browse

like http://localhost:8080/Beer-v1/form.html

It does not work. It shows HTTP 400 bad request error
I am using Apache 6.0.18 now.uninstalled previous version but nothing worked for me

When I place form.html directly in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\servlets

and request it like
http://localhost:8080/examples/servlets/form.html

it works fine

please help me
[ August 14, 2008: Message edited by: sachin verma ]

SCJP || SCWCD

 
 
subject: Help -unable to run servlet in APACHE