Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5, Eclipse & OS X...

 
Jez Day
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...)


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Bauke Scholtz
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: http://www.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
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke Scholtz wrote:Regarding the Tomcat part, you may find this topic useful: http://www.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!

  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic