Great! now i can start the server from "Runtime" tab but can't expand "Web Applications" node
Also, when I switch to "Projects" and try to "Run Project" it fails and says:
Deployment error: null. See the server log file for details.
Also, just when I start NetBeans I get a pop up with:
A java.lang.IllegalArgumentException exception has occurred.
Please report this at http://www.netbeans.org/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and Settings\.netbeans\4.1\var\log folder.
1. Deploy to the bundled appserver.
If you had installed the bunded sun java system application server, then you can go to runtime tab and start the appserver. In your project properties, change the server to appserver8.1 (from bundled tomcat) and then try deploying.
2. Stop the servers if running and exit the ide. Open <installdir>/etc/*.conf file and change the userdirectory to a completely new dir. (The dir doesn't have to exist; the ide will create the dir on startup). Restart the ide and try deploying the app.
If the Tomcat server bundled with NetBeans will not start when you try to deploy (run) a web application and you get the following output in the
Starting debug server Bundled Tomcat (5.5.9)
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
C:\H-Drive\public_html\grades\gradedisplay5\nbproject\build-impl.xml:431: Deployment error:
Starting of Tomcat failed.
See the server log for details.
BUILD FAILED (total time: 4 seconds)
look in the Output:Bundled Tomcat (5.5.9) window. There you will see:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Using CATALINA_BASE: C:\Documents and Settings\Jesse\.netbeans\5.0\jakarta-tomcat-5.5.9_base
Using CATALINA_HOME: C:\Program Files\netbeans-5.0\enterprise2\jakarta-tomcat-5.5.9
Using CATALINA_TMPDIR: C:\Documents and Settings\Jesse\.netbeans\5.0\jakarta-tomcat-5.5.9_base\temp
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_04
'-Djava.util.logging.manager' is not recognized as an internal or external command,
operable program or batch file.
The cause of the error is that JAVA_HOME is not correct. In the above case it's pointing to jdk1.5.0_04. It should be pointing to jdk1.5.0_06. To correct this problem:
(1) Shut down the NetBeans IDE.
(2) Go to Start->Control Panel.
(3) In the Control Panel, double-click the System icon.
(4) In the System Properties dialog box, click the Advanced tab and then the Environment Variables button.
(5) In the Environment Variables dialog box, highlight the entry for Java_Home in the "System variables" listbox.
(6) Click the Edit button.
(7) Change the entry to the correct path to the current JDK. In my case this is: C:\Program Files\Java\jdk1.5.0_06
(8) Click the OK button to close the Environment Variables dialog box. There will be a pause while the system writes out the environment variables. You can close the other open dialog boxes at this point if you wish.
(9) Restart the NetBeans IDE. (The environment variables are only read at startup.)
(10) Try to deploy (run) your web application again. It should now work!
I am having the same problem trying to run a simple web application after a new installation of netbeans ide 5.0.
Is necessary a new installation of netbeans or did you rezolved this problem in another way?
I�m using Netbeans 5.5.1 with bundled tomcat 5.5.17. Each time, when I try to run a web app (even the sample web projects coming with Netbeans IDE), i receive the following error: "starting of tomcat failed".But when My PC is connected to the internet all works fine. I don't know why Netbeans fails to connect to Tomcat server when there is non internet connection