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 169667 - setting Tomcat password fails
Summary: setting Tomcat password fails
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 23:44 UTC by sinemora
Modified: 2009-08-05 15:56 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 sinemora 2009-07-31 23:44:50 UTC
When the Tomcat password is changed in Netbeans (6.7) it does not update the Tomcat configuration files properly. This
causes starting Tomcat to fail.

Steps to reproduce:
1) From the Netbeans menu choose Tools > Servers.
2) Select Apache Tomcat 6.0.18 from the Servers: list.
3) Choose the Connection tab.
4) Change the password in the Password field.
5) Click Close.
6) Start an application that uses Tomcat. It will prompt for the password. If you give the new password you will get the
password prompt again (because the password was not changed in the file it needed to be).

Diagnosis:

Tomcat user configuration is stored in three places:
1) In 'Catalina Home' (which is not used, though it probably should be)
  $NETBEANS_APACHE_DIR/apache-tomcat-6.0.18/conf/tomcat-users.xml

2) In the Netbeans configuration directory and shown by the IDE (this is updated correctly)
  ~/.netbeans/6.7/tomcat60.properties

3) In 'Catalina Base' (which is not updated, the source of this fault)
  ~/.netbeans/6.7/apache-tomcat-6.0.18_base/conf/tomcat-users.xml


Suggested fix:
  1) Ensure the IDE updates the configuration file in Catalina Base when the tomcat password is changed

Also,
  The tomcat-users.xml configuration in Catalina Home is not used at all, perhaps a comment should be made which 
  indicates the password for the 'manager' role is stored in the configuration in the Catalina Base directory
  (otherwise it's hard to see where the role and password are actually defined).
Comment 1 Petr Hejl 2009-08-05 15:56:04 UTC
Properties dialog is not a tool to change the tomcat's password. It is password that IDE will use to connect to server.

It is also described in the dialog: "Credentials of an existing user in the "manager" role"