Hi -
I answered my own question so I'll post the answer here for anyone else.
I misconfigured the plugin with a bad manager URL, I had it set to
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<warFile>${project.build.directory}/JobProcessing.war</warFile>
<server>harley-tomcat</server>
<url>http://harley.i.zinio.com:8080/manager/html</url>
<path>/JobProcessing</path>
</configuration>
</plugin>
But it should be this (notice I stripped out the /html from the manager
URL):
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<warFile>${project.build.directory}/JobProcessing.war</warFile>
<server>harley-tomcat</server>
<url>http://harley.i.zinio.com:8080/manager</url>
<path>/JobProcessing</path>
</configuration>
</plugin>
Julio A. Mistral
Zinio, LLC
________________________________
From: Julio Mistral [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 10:10 PM
To: [email protected]
Subject: [mojo-user] tomcat plugin fails and spits out html
Hi -
When I add the tomcat plugin and call either the "tomcat:deploy" or
"tomcat:redploy" goals, I always get an odd error. The plugin fails
saying it can't contact the tomcat manager and spits out a bunch of
html.
[INFO] Redeploying application at
http://harley.i.zinio.com:8080/JobProcessing
[HUDSON] Archiving c:\hudson\jobs\Zinio -
CI\workspace\Zinio\JobProcessing\pom.xml
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot invoke Tomcat manager: <html>
<head>
<style>
H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}
table {
width: 100%;
}
td.page-title {
text-align: center;
vertical-align: top;
font-family:sans-serif,Tahoma,Arial;
font-weight: bold;
background: white;
color: black;
}
td.title {
text-align: left;
vertical-align: top;
font-family:sans-serif,Tahoma,Arial;
font-style:italic;
font-weight: bold;
background: #D2A41C;
}
td.header-left {
text-align: left;
vertical-align: top;
font-family:sans-serif,Tahoma,Arial;
font-weight: bold;
background: #FFDC75;
}
td.header-center {
text-align: center;
vertical-align: top;
font-family:sans-serif,Tahoma,Arial;
font-weight: bold;
background: #FFDC75;
}
td.row-left {
text-align: left;
vertical-align: middle;
font-family:sans-serif,Tahoma,Arial;
color: black;
}
td.row-center {
text-align: center;
vertical-align: middle;
font-family:sans-serif,Tahoma,Arial;
color: black;
}
And on and on and on...and what's strangest of all is that in the HTML
it spits out, I can see tomcat saying that it successfully redeployed my
app. I followed the config instructions, is there something I'm
missing?
Thanks,
-Julio
Julio A. Mistral
Zinio, LLC