OS: Windows 7
IDE: Netbeans 7.1.2
Server: Tomcat 7.0
I installed tomcat with the Microsoft installer.
When I try to refresh web applications or run a jsp file, I receive the following error message:
Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager.
I made changes to my tomcat-users.xml file
Here is how the file looks:
<?xml version='1.0' encoding='cp1252'?>
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<user name="myuser" password="mypwd" roles="manager-script" />
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
<user username="myuser" password="mypwd" roles="manager-script"/>
<user username="myuser" password="mypwd" roles="admin-gui,manager-g
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user password="mypwd" roles="manager-script,admi
n" username="myuser" />
Is there a way to get Netbeans autorized to use tomcat?