Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat, Netbeans Mac OSX Lion

I've just bought an iMac and would like to start programming on it. But I can't configure Tomcat and Netbeans to work together. I installed Tomcat and it seems it is working. But when I try to build a web application, netbeans ask all the time my user name and password. I already configured the user.xml but it's not working.

Can anyone give a tip?

Cheers

like image 882
Camus Avatar asked Dec 17 '11 15:12

Camus


2 Answers

I had the same issue and I followed @Raph's answer and it worked. After that, I had another issue, Netbeans returned this error message:

Deployment error: Starting of Tomcat failed, check whether the /Applications/Tomcat/bin/catalina.sh and related scripts are executable

To solve this, in terminal, I navigated to tomcat-folder/bin and executed:

chmod 755 *.sh

And it solved my issue, cause it made the scripts executable.

like image 64
cawecoy Avatar answered Sep 21 '22 00:09

cawecoy


Add a new Tomcat server is quite easy on NB. No "install" as a traditional sense needed to do that:

  • Download any compressed (not installers) tomcat version from http://tomcat.apache.org
  • Just unzip (uncompress) in your preferred folder. You dont need do any thing else.
  • Go to Tools ---> Servers -----> Add server.
  • Select Apache Tomcat Server. Then on "server location" label, select the folder where you have uncompressed your Tomcat Server. You can define in this window your log and password. NB will automatically change your user.xml.

This is a good way to configure as many servers as you want, and easily configure its access and management data.

I hope it helps.

like image 34
Raph Avatar answered Sep 22 '22 00:09

Raph