Hi folks, I have a relatively complex installation that I'm trying to
get the manager app deployed into.  This was working at some point, but
now I can't seem to get anything but 400 errors out of it.

The tomcat install is serving many vhosts, they are all working
properly.  Each vhost is configured with it's own ROOT.xml file with a
<Context path="/" docRoot="where-the-war-file-is"> entry.

This particular vhost I want available for jenkins-based continuous
builds and deployments.

As it stands now, when jenkins tries to deploy, (via maven's
tomcat::deploy), I get:
[INFO] Deploying war to http://REDACTED.com/congo
[INFO] Cannot invoke Tomcat manager

Now the vhost is fronted via apache, with these rules in (just like all
the other vhosts)

<VirtualHost *:80>
        ServerName REDACTED.com

        ProxyPreserveHost On
        ProxyPass / ajp://localhost:8009/
        ProxyPassReverse / ajp://localhost:8009/

        <Proxy ajp://localhost:8009/*>
              Order allow,deny
              Allow from all
        </Proxy>
</VirtualHost>

When the hit comes in, apache logs this message:

REDACTED.com:80 172.16.1.1 - - [21/Feb/2011:12:29:38 -0500] "PUT
/manager/deploy?path=%2Fcongo&war=&update=true HTTP/1.0" 400 - "-"
"Tomcat Maven Plugin/1.1"

In the directory /var/lib/tomcat5.5/conf/Catalina/REDACTED.com, I have a
manager.xml:

<?xml version="1.0" encoding="UTF-8"?>

<Context path="/manager"
docBase="/usr/share/tomcat5.5/server/webapps/manager"
         privileged="true" antiResourceLocking="false"
antiJARLocking="false">

  <!-- Link to the user database we will get roles from -->
  <ResourceLink name="users" global="UserDatabase"
                type="org.apache.catalina.UserDatabase"/>

</Context>

Last but not least, there's a Host entry in the main server.xml:
      <Host name="congov2.stonekeep.com" appBase="webapps/REDACTED.com"
            unpackWARs="false" autoDeploy="false"
            xmlValidation="false" xmlNamespaceAware="false" />

I'm virtually positive that the /var/lib.../Catalina directory above is
the proper place to put the manager.xml - because if I drop a ROOT.xml
file there, the vhost configures up and hitting REDACTED.com gets me the
definition from the ROOT file.

But I can't get the manager app to deploy.

Help please?  Also, I'd love to find out where to look for output for
problems with the installation.  The catalina log file in
/var/log/tomcat5.5/ has no useful information :(

Thank you!





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to