File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat 5, Eclipse & OS X... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat 5, Eclipse & OS X..." Watch "Tomcat 5, Eclipse & OS X..." New topic
Author

Tomcat 5, Eclipse & OS X...

Jez Day
Greenhorn

Joined: Jan 09, 2009
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61773
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jan 10, 2002
Posts: 61773
    
  67

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!

  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Tomcat 5, Eclipse & OS X...