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 84663 - Server->properties not storing the admin user credentials.
Summary: Server->properties not storing the admin user credentials.
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebServer 7 (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Mukesh Garg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 08:00 UTC by prabushankar
Modified: 2006-09-18 14:21 UTC (History)
0 users

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 prabushankar 2006-09-12 08:00:23 UTC
WS7.0 Build Sun Java System Web Server 7.0 B08/31/2006 08:14
NB 5.0 Build 2000601251500

Steps:
1) Start netbeans IDE and in run-time tab right-click servers and choose 'Add
servers'
2) Choose 'Sun Java System Web Server 7.0' in the 'Choose Server' Server type.
3) Click next to reach 'Server location and configuration'.
4) In the installation directory provide a valid SJSWS70 installation directory.
5) Provide a valid value for admin-port.
(Remote server unchecled)
6) Enter faulty admin credentials (username/password).
7) Click 'Finish' to register the server.
8) Try to start/stop the server. Netbeans prompts for username and password.
9) Cancel the prompt.
10) Create a web-app and try to deploy the same from netbeans and the deployment
fails with a IOException.
11) Now in the server properties, provide valid username and password for admin.
12) Deploy the web app again the the deployment still fails with an IOException.

java.io.IOException: Invalid user or password
        at
com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.handleException(ServletConnection.java:219)
        at
com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.receive(ServletConnection.java:117)
        at
com.sun.enterprise.admin.jmx.remote.comm.MBeanServerMessageConductor.invoke(MBeanServerMessageConductor.java:60)
        at
com.sun.enterprise.admin.jmx.remote.internal.RemoteMBeanServerConnection.invoke(RemoteMBeanServerConnection.java:406)
        at
com.sun.web.admin.deployapi.SunDeploymentManager.deploy(SunDeploymentManager.java:234)
        at
com.sun.web.admin.deployapi.SunDeploymentManager.distribute(SunDeploymentManager.java:204)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.netbeans.modules.j2ee.sun.ws7.dm.WS70SunDeploymentManager.distribute(WS70SunDeploymentManager.java:223)
        at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:575)
        at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:96)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:76)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Comment 1 Mukesh Garg 2006-09-18 14:12:21 UTC
You will have to change the username/password by right clicking the registerd
server node and change the properties of the Web Server.

The change does not get reflected right now. I will fix this.
Comment 2 Mukesh Garg 2006-09-18 14:21:06 UTC
Fixed the issue. Once user changes the username/password through the Server
properties, it will be reflected from next action onwards.
Changed file is

serverplugins/sun/webserver7/src/org/netbeans/modules/j2ee/sun/ws7/dm/WS70SunDeploymentManager.java