File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat6.0+eclipse 3.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat6.0+eclipse 3.3" Watch "Tomcat6.0+eclipse 3.3" New topic

Tomcat6.0+eclipse 3.3

Sree Kumari
Ranch Hand

Joined: Aug 16, 2005
Posts: 50

A simple servlet with a form post <form method="POST" action="http://localhost:8080/ServletDemos/LoginServlet"> with
servlet mapping in web.xml as follows.

It is handled using doPost()

I am trying to work in eclipse europa+tomcat6.0

I tried enabling the invoker but still unable to execute one.
shows 404 The requested resource (/LoginServlet) is not available.

All get requests work perfectly well

I had been stuck up with this very basics
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Sree Vidya wrote:I tried enabling the invoker

Why? Dont do this. How did you deploy into tomcat?
Sree Kumari
Ranch Hand

Joined: Aug 16, 2005
Posts: 50
I am trying to run servlet using eclipse's run at server option only
Nandita Yerramareddy

Joined: Nov 02, 2008
Posts: 3
Check if your application server is working fine by providing the localhost:portnumber in the browser.

If it works fine then I guess there is some problem in your application.

If it doesnt then right click on your server and go to open-- check for the server location in the overview and see if "Use Tomcat installion...." is checked, if it is not checked , check it and deploy your application again, should work.

If that check box is not enabled, then stop your server, remove all the projects on the server, rt click and publish. Once you publish, it will automatically enable and you can check it.

Try this out.. hope it works.
Sree Kumari
Ranch Hand

Joined: Aug 16, 2005
Posts: 50
Thank you,It worked Nandita
I agree. Here's the link:
subject: Tomcat6.0+eclipse 3.3
jQuery in Action, 3rd edition