• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Another TomCat and eclipse issue

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic