This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Filed as Sun Bug 6475521! Shortfin 0926_3 (nb 0918) WinXP JDK 1.6 (b99) 1. fresh installation: create an ee1.4 project, drop a few components and deploy to TomCat. ok. 2. close project. 3. restart IDE with a new userdir and either re-open last project or create another ee1.4, drop a few components, and attempt to deploy >hang at status line "Deploying WebApplicationX" ...... >a "localhost" dialog comes up looking for Tomcat Manager Username and Password ----------------------- I reproduced the same error picture with NB 5.5 FCS and VWP TP on Linux: I can only reproduce the problem if for whatever reason the Tomcat from the first userdir is still running:-( For me, I could not manage that with the IDE, it would always succeed in shuting Tomcat down. I had to start the `first' Tomcat again by hand. Then I can see the same Building jar: /export/home/marcow/WebApplication40/dist/WebApplication40.war do-dist: dist: /export/home/marcow/WebApplication40/nbproject/build-impl.xml:475: Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager. See the server log for details. BUILD FAILED (total time: 15 seconds) So it looks like somehow the Tomcat from the first userdir was not shut down when the first IDE was exited??
I am not able to reproduce this issue. From the description it is not obvious that the problem is really in NetBeans. In case that Tomcat cannot be shut down for some reason, the behavior would be as described. This, however, does not meant that it is a bug in the IDE. Can you please try to stop Tomcat manually using the "catalina.bat stop" command, if it was not stopped properly by the IDE?
Using the INCOMPLETE keyword until we have more info.
Closing as WORKSFORME since I cannot reproduce the issue and there is no further feedback from the user.
With NB 200702151900 and VWP M7 (0216) I reproduced this issue: 0. start nb on the commandline with userdir in a directory outside of netbeans install dir (per new M7/Nb6 1. create a tomcat project (1.4) 2. deploy to tomcat. ok. this happens automatically. 3. close project and exit ide. 4. restart nb with a different userdir than above, also outside netbeans install dir 5. load the previous project. ok, loads into webform/designer screen. 6. attempt to deploy. Get this error: C:\Documents and Settings\Krystyna Polomski\My Documents\NetBeansProjects\WebApplication111\nbproject\build-impl.xml:475: Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager. See the server log for details. BUILD FAILED (total time: 0 seconds)
Krystyna, can you please check whether Tomcat server is still running or is stopped after the step #3 is completed? In the step #3 when the IDE is shutting down you should see a progress dialog "Stopping Bundled Tomcat..". Did you let it finish or did you press the cancel button? Can you please attach the message log from the first IDE (from the user dir used in steps 0-3).