|
Re: Eclipse and Tomcat [message #869979 is a reply to message #869855] |
Sat, 05 May 2012 12:12 |
|
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?
>
> Thanks
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
URI.
This often seems pretty tricky. When deployed within Eclipse, unless
you've changed stuff, it's going to be:
http://localhost:8080/project-name/etc.
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.
|
|
|
|
|
|
Re: Eclipse and Tomcat [message #1483766 is a reply to message #1483591] |
Sat, 22 November 2014 22:52 |
|
On 11/22/2014 12:23 PM, Sawsan AbdulRahman wrote:
> I can't get rid of the 404 error !! The localhost:8080 works fine and
> shows the message :"If you're seeing this, you've successfully installed
> Tomcat. Congratulations!". But this only appears when I change the "Use
> workspace metadata" to "Use tomcat installation" in the Server
> configuration -> Server Locations. However, when I try to connect to any
> page of my projects, I get 404 Error.
>
> The following must be my problem's solution, but I don't know what are
> the steps to do and how to deploy my web application in order to fix it.
> Can you provide me please with more information?
>
> "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
> URI."
>
This would be better posted in the Eclipse Web Tools Project (WTP) forum.
|
|
|
Powered by
FUDForum. Page generated in 0.08119 seconds