Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help -unable to run servlet in APACHE

 
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 ]
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic