Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat issues inside eclipse

Tags:

eclipse

tomcat

I am very new to Tomcat and web development in general and apologize for what may be a very silly question.

Consider 2 situations:

1.

I start Tomcat outside of Eclipse.
I use eclipse to create a war file.
I deploy it via admin console.
All is ok

2.

I start Tomcat via Eclipse
I can't access admin console

http://localhost:8080/manager/html greets me with 404 error
Same page is behaving properly when Tomcat is started outside of Eclipse

Please advise

Why might the issue be?

like image 707
James Raitsev Avatar asked Oct 23 '10 22:10

James Raitsev


People also ask

Why Tomcat is not working with Eclipse?

Most of the time, this means that Tomcat is already running in the background and Eclipse is trying to open it again on the same ports. This is obviously not possible, as the ports will be in use. The issue typically arises from either the Eclipse or Tomcat process crash or being stuck.

How do I fix Tomcat error?

This error indicates that the server could not find the desired resource. This resource can be any file such as JSP, HTML, or image resource. Usually, the resource is present, but it is referenced incorrectly. In most cases, you can fix this by correcting the URL.

Is Tomcat included in Eclipse?

Note: Download the latest version of eclipse IDE using this link and also configure the java environment. By default when Eclipse IDE is downloaded, it doesn't come with Tomcat installed with it.

How do I use Apache Tomcat in Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.


1 Answers

Why might the issue be?

You need to configure Eclipse to take control of your Tomcat installation. To do so:

  • double click on the Tomcat Server in the Servers view
  • under Server Locations, select Use Tomcat installation

This is illustrated on the screenshot below:

alt text

like image 161
Pascal Thivent Avatar answered Oct 20 '22 11:10

Pascal Thivent