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 84662 - Admin credentials not stored if not given during registration.
Summary: Admin credentials not stored if not given during registration.
Status: RESOLVED WONTFIX
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 07:56 UTC by prabushankar
Modified: 2006-09-18 14:10 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 07:56:53 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) Provide valid credentials.

Create a web-app and try to deploy the same from netbeans and the deployment
fails with a 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:10:01 UTC
The prompt which is shown during start/stop is thrown by the Netbeans, not by
the plugin, hence the right username/password is not stored back in the server
registered with the netbeans.

To change the username/password, you have to right click the registerd server
node and change from the customizer.

Plese see the Issue# 84663 also.