File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Another TomCat and eclipse issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Another TomCat and eclipse issue" Watch "Another TomCat and eclipse issue" New topic
Author

Another TomCat and eclipse issue

William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
I ran into problem about two days ago and can�t seem to resolve the issue so I am asking for help here. I normally work in Eclipse using Tomcat to develop web pages. When testing a web page I would take one of two options to �Run on Server� Tomcat would launch and then I would see my changes on the internal Eclipse browser. As of Sunday, I see a message that Tomcat is starting and it will continually tell me the server is starting but never flash the message that Tomcat started. The Services dialog does not reflect that the service starts. I can start and stop the Tomcat service from the Services dialog but this is not reflected in Eclipse. I have taken the following steps to isolate the problem, reinstalled Eclipse, reinstalled Tomcat, moved from Tomcat 6 to Tomcat 5.5, created a new workspace, yet the behavior is still the same as I described above. As anyone ever encountered this behavior?
Thanks!
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
William,

Just curious, did you try starting up your Tomcat from command prompt, I mean, by manually running the startup.bat file?
William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
I found no bat file in the Tomcat directory, but was able to run the EXE file. The services dialog does not show awareness of the status when starting Tomcat. Eclipse his aware that some process is using the port.
On the Tab status of Tomcat titled �Tomcat v5.5 at localhost� the following ports are in use: Tomcat admin port 8005, HTTP 8080, AJP/1.3 8009.
When I run my index.html page I am presented with an informational page: �Navigation to the webpage was canceled� �What you can try: Refresh the page.
In the address bar the text is http://localhost:10787/Rouse/index.html
If I change the port number to 8080 I receive a detailed message:
This program cannot display the webpage
Most likely causes:
�You are not connected to the Internet.
�The website is encountering problems.
�There might be a typing error in the address.
What you can try:
Check your Internet connection. Try visiting another website to make sure you are connected.

All of this does not help me isolate the problem.
Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
I understand that you have installed Tomcat by running the Windows installer. Did you check the server runtime of your tomcat? Is it pointing to your latest Tomcat installation directory?

Also I am not able to understand why is by default your application is starting at 10787, when your port is 8080 only.

Just check the server runtime and make sure it is correct.
William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
The problem turned out to be a firewall issue. I started the firewall and allowed Eclipse to access port 8080 and now I am running. As to why Eclipse
tried to access the other port I don't know why.
WBR
William Rouse
Ranch Hand

Joined: Apr 12, 2006
Posts: 73
In running a program call Active Ports today I watched what ports were active when I launched Tomcat and I was surprised to see what changes occurred. Hopefully you won�t be surprised at the results and have a better understanding at what occurs. The ports 8005, 8009 and 8080 are assigned, being listened by, not to Eclipse but to the JRE, and 10787 is listened to by Eclipse.
Within Eclipse server page the listings are
Tomcat admin port 8005
HTTP 8080
Ajp/1.3 8009
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Another TomCat and eclipse issue
 
Similar Threads
Unable to launch Tomcat from eclipse.
Running Tomcat from Eclipse
webservice as awindows service
Eclipse web service client - remote server
Axis Web Service Client : NullPointerException