• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Tomcat 5, Eclipse & OS X...

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Have been using tomcat on Windows for years with Eclipse, programming Java for about 10 years. Have bought myself a Mac and thought I'd move some of my apps over.

So, downloaded Eclipse. Downloaded Tomcat. Run Eclipse from within tomcat and it starts and runs without error. Add a simple JSP page, change the web.xml then point my poage to http://localhost:8080/index.html and...

The requested resource (/index.html) is not available.

When I try and start the server from the cmd line (oh dear Unix, it has been some time...) I get:

The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program




Bit lost as my Unix is rusty as I develop in Windows sadly, not sure if I need to set some env variables.

All help will be met with whoops of joy!

Cheers

Jez (was this Mac such a good idea...)


 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no problem running Tomcat on OS X. I'm not an Eclipse user, so I can't comment on that.

As this is more about Eclipse than Tomcat, this has been moved to a more appropriate forum.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the Tomcat part, you may find this topic useful: https://coderanch.com/t/111434/Mac-OS/starting-Tomcat-on-Mac-OS

Regarding the Eclipse part, are you able to access the Tomcat homepage? If so, use the Tomcat manager to verify if anything is right with regard to the deployed webapp. If not, then you need to configure the Tomcat server entry in Eclipse to let Eclipse take the full control over.
 
Bear Bibeault
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Regarding the Tomcat part, you may find this topic useful: https://coderanch.com/t/111434/Mac-OS/starting-Tomcat-on-Mac-OS


That topic boils down to: "I screwed everything up and had to re-install and then it worked"

Basically on OS X:
  • Untar the Tomcat distribution
  • Set JAVA_HOME correctly
  • Execute the startup shell script
  • Profit!

  •  
    and POOF! You're gone! But look, this tiny ad is still here:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!