• 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
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Tomcat 8 fails to load Catalina on MacBook Pro 10.9

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Day, I almost hit a moose once. Biggest animal I ever saw.

Installed Tomcat 8 (Users/$HOME/tomcat with a symlink from Library/Tomcat) on MBP 10.9, running JDK 1.8 (confirmed $ java -version). Tomcat launches and Catalina is running but localhost:8080 returns 404. Something is not configured correctly or there may be collision on port 8080 ($ natstat -an | grep 8080 return open and listening). Errors thrown in /logs/catalina.out:



But the rest seems to load as expected. I get some additional errors when running the configtest. Most output left out for brevity.





This is repeated for ajp-nio-8009 (shutdown). Any help would be GREATLY appreciated. And know that one more moose lives because I WASN'T texting and driving...

rwhite35
 
Ron White
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Turns out Mac (Mavericks or Yosemite) doesn't have ANT installed as part of their distro. Once I downloaded ANT 1.9.4 from the Apache website, then added its path to my .bash_profile, Tomcat started right up and displayed the friendly landing page.
Hope anyone struggling to get Tomcat up and running on MacOS 10.9 or 10.10 finds this helpful.
Regards,
Ron
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron, welcome to CodeRanch!

Tomcat doesn't require Ant, for it to be functional. The error you posted in your first post says:



org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [“http-nio-8080"] org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use


which is a sign that some other process is already using that port.

 
Ron White
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jaikiran, Thanks for the clarification. I suppose another library could be used, however, this was the recommended library from Apache Tomcat Step-By-Step guide. http://tomcat.apache.org/tomcat-8.0-doc/building.html And MacOS 10.9 or 10.10 definitely did not have that library installed, at least not in any place I could find. Cheers,
 
Dinner will be steamed monkey heads with a side of tiny ads.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic