|Re: Eclipse and Tomcat [message #869979 is a reply to message #869855]
||Sat, 05 May 2012 12:12
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 05/04/2012 08:18 AM, Gabriele D\'Antimi wrote:|
> I installed tomcat on my ubuntu manually. If I start tomcat by shell,
> localhost:8080 show me the administration page of tomcat but I cannot
> launch the project because it says that the port 8080 is busy (by tomcat
> itself) and the tomcat eclipse server doesn't start.
> If I stop the tomcat server by shell and then I launch the project, it
> works, but if I go to localhost:8080 it give me a 404 error
> HTTP Status 404 - /
> type Status report
> message /
> description The requested resource (/) is not available.
> Apache Tomcat/7.0.27
> How can I configure tomcat to have a better behavoir?
First, this is a question for the Eclipse web tools forum.
There are two principal ways to debug your web application project
running on Tomcat. One is to launch Tomcat and deploy to it from
Eclipse. The other way is more "Eclipse integrated" and involves
alerting Eclipse to the existence of Tomcat, creating a "Server"
project, and running Tomcat from within Eclipse. If Tomcat is running
independently, launching your application from Eclipse in the way you
apparently have will certainly result in a collision of port numbers.
One solution is not to run Tomcat externally (unless you're running for
a separate, unrelated reason).
Another is to double-click the Tomcat in the Server view (assumes you've
integrated Tomcat into Eclipse) and use the dialog to change what port
your Eclipse-Tomcat integration runs on.
This is more or less what you've done and I've said this so that you
understand more clearly what's going on.
For the 404 error, it only means that the URI you're using isn't the one
of the deployment. This is because your service/servlet/application
isn't offering the service indicated by the URI (URL) because web.xml
doesn't match what you're doing or because you're not typing the correct
This often seems pretty tricky. When deployed within Eclipse, unless
you've changed stuff, it's going to be:
What's in etc. depends on what's in web.xml.
If this answer doesn't put you on to something you've done wrong or
failed to do, please ask your question with more detail in the Eclipse
web tools forum.
Powered by FUDForum
. Page generated in 0.03492 seconds