Reputation:
I have installed Tomcat 7 server
on Windows on port 8088
.
Now I have added the server in Eclipse.
But I am not sure whether I need to keep the Tomcat running by going in the Tomcat directory or I have to close that and run from Eclipse? And how will Eclipse know that I have setup the Tomcat on port 8088?
Upvotes: 3
Views: 2517
Reputation: 9514
In the server view, you can double-click on your tomcat server and change the ports. This means that the folder where you have tomcat running (CATALINA_HOME) can still be used run Tomcat "production" and eclipse will use the same binaries to run within WTP. However, all other folders will be confiurable for your "dev" instance.
Actually you'd better change the settings to make sure there is no collision between eclipse ports and the ports declared at windows level.
Another simple solution is to stop tomcat at the windows level. Eclipse will take care of its own instance.
Other useful settings you can modify are the timeouts (in debug it's sometimes necessary), the deploy folder and even add some more web apps (modules tab).
Upvotes: 2
Reputation: 59660
do i need to keep the tomcat running by going in the tomcat directory or i have to close that and run from eclispe.
No you don't need to keep tomcat running outside. You can run/stop it whenever you want from eclipse.
how will eclipse know that i have setup the 8088 port
You will find project named Server
or Servers
; depends on eclipse version; in your workspace; in which you have added tomcat. It has tomcat configuration file which tells eclipse how to manage tomcat. It has a file called server.xml
which contain port information that is on which port tomcat will run.
Upvotes: 1