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.

Bug 88297 - After switching userdirs, can't deploy to Tomcat again -- need authentication
Summary: After switching userdirs, can't deploy to Tomcat again -- need authentication
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 05:43 UTC by Marco Walther
Modified: 2007-06-18 15:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Walther 2006-10-31 05:43:38 UTC
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??
Comment 1 Sherold Dev 2007-01-11 14:17:46 UTC
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?
Comment 2 Sherold Dev 2007-01-11 14:18:48 UTC
Using the INCOMPLETE keyword until we have more info.
Comment 3 Sherold Dev 2007-02-17 09:14:25 UTC
Closing as WORKSFORME since I cannot reproduce the issue and there is no further
feedback from the user.
Comment 4 _ krystyna 2007-02-20 22:25:03 UTC
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)
Comment 5 Sherold Dev 2007-02-21 08:55:16 UTC
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).
Comment 6 Sherold Dev 2007-06-18 15:40:35 UTC
Closing as WORKSFORME since I cannot reproduce the issue and there is no further
feedback from the user.