aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 6.0.30: cannot deploy application: access denied. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6.0.30: cannot deploy application: access denied." Watch "Tomcat 6.0.30: cannot deploy application: access denied." New topic
Author

Tomcat 6.0.30: cannot deploy application: access denied.

Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 93
Guys,
please help me to solve this issue. I have installed Tomcat 6.0.30 and encountered some new features compared to 6.0.20: new roles. I have created admin role in tomcat-users:


<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="Password" roles="manager-gui, manager-script, manager-jmx, manager-status"/>
</tomcat-users>


I CAN access the manager application. But I cannot deploy any application from it! When I try to deploy application it throws 403 Access Denied page. Whats wrong?
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
According to the documentation:
Apache Tomcat 6.0 Realm Configuration HOW-TO wrote:If you wish to use the Manager Application to deploy and undeploy applications in a running Tomcat 6 installation, you MUST add the "manager" role to at least one username in your selected Realm implementation. This is because the manager web application itself uses a security constraint that requires role "manager" to access ANY request URI within that application.
Steve Syrett
Greenhorn

Joined: Mar 07, 2011
Posts: 1
Hi,

Were you able to get this working? I am running into the same issue here since trying to use 6.0.30+ versions to tomcat.

I can access the manager application but if I try to deploy a warfile, we get the 403 page. I have tried many possible combinations of roles including the old "manager" role and all the new "manager-*" roles with no success. I did notice that if I deploy a warfile using the "WAR file to deploy" option it works fine. Unfortunately for our application we need to specify a context path and xml configuration file, so we need to use the "Deploy directory or WAR file located on server" deploy.
nombre apellido
Greenhorn

Joined: Mar 11, 2011
Posts: 1
Same problem here.
In my case, we can't make it work even with the "WAR file to deploy" option. I've tried everything I could think of, but we're just stuck.
Rishi Deshpande
Greenhorn

Joined: Jul 17, 2011
Posts: 1

I faced the same issue, then I saw https://issues.apache.org/bugzilla/show_bug.cgi?id=51147

The issue is that the Tomcat Manager form submission needs to be via a POST rather than GET.

Using Google Chrome, an Inspect Element, followed by an Edit Attribute on the form method attribute fixed it for me.
Saeid Zebardast
Greenhorn

Joined: Sep 07, 2010
Posts: 3
Rishi Deshpande wrote:I faced the same issue, then I saw https://issues.apache.org/bugzilla/show_bug.cgi?id=51147

The issue is that the Tomcat Manager form submission needs to be via a POST rather than GET.

Using Google Chrome, an Inspect Element, followed by an Edit Attribute on the form method attribute fixed it for me.

It's work.
Thank you!
 
Consider Paul's rocket mass heater.
 
subject: Tomcat 6.0.30: cannot deploy application: access denied.