Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help -unable to run servlet in APACHE

 
sachin verma
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic