This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help -unable to run servlet in APACHE
 
Similar Threads
Tocat issue
Head First Servlets and JSP - Ch 3
page not found error
Deploying an app to Tomcat
Head First Servlet JSP: BeerSelect example: requested resource not available