For the embedded tomcat server, users with admin privileges are not automatically created. This may lead to errors while trying to run the admin console. 

In general: How to obtain information on the user accounts for a tomcat server registered with the ide, whether embedded or not?

  • Open the Server Manager (Tools | Servers)
  • Select the server in question by clicking on it in the list of servers on the left panel.
  • For the selected server, note down the value of 'Catalina Base' textbox.
  • Close the server manager.
  • Select the server in 'Services' tab in the navigator, right-click and select 'Start' to start the server. Once the server is started, right-click again on the server and stop the server. (For the embedded server, the 'catalina base' directory will be created only when the server is started for the first time. This step ensures that the server is started and stopped from the ide at least once).
  •  Go to <userdir>\apache-tomcat-6.0.14_base\conf directory. Here you will see the tomcat-users.xml file which holds the users defined for the server. Ensure that there is at least one user who is assigned 'admin' role.
On userdir: http://blogs.sun.com/NetBeansSupport/entry/directories_in_netbeans_install_user

 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by radhika