I am trying to get the manager / deploy to work on my new Tomcat 7.0.34 installation, but I keep getting 403 when I try to deploy by doing PUT on http://localhost:8080/manager/deploy . I have not got this job in Tomcat 7 yet.
CONF / server.xml
<?xml version='1.0' encoding='utf-8'?> <Server> ... <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service> ... <Engine> ... <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Engine> </Service> </Server>
Conf / cat-users.xml
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <user username="tomcat" password="redacted" roles="manager-script"/> </tomcat-users>
I also tried (with the same result)
Conf / cat-users.xml
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager-script"/> <user username="tomcat" password="redacted" roles="manager-script"/> </tomcat-users>
And yes, I have a double, triple, fourfold check that I am using the correct username and password as defined in tomcat-users.xml. I thought that was all I needed. Any ideas?
Cody s
source share