• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help -unable to run servlet in APACHE

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic