That was my first guess as well, but I've verified my username password via
the HTML manager view several times and it all checks out.

I did try doing a remote deploy via the Maven Cargo plugin and it works
fine, so it seems to be just a problem with the Maven Tomcat plugin.



Wayne Fay wrote:
> 
> HTTP 401 is "unauthorized". I would assume your name or password are
> incorrect, or some other similar reason.
> 
> Check the Tomcat logs too.
> 
> Wayne
> 
> On Tue, Sep 16, 2008 at 10:47 AM, leojhartiv <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> I was wondering if there was anything special I need to do in order to
>> deploy my Maven-generated WAR file to a remote tomcat instance (on
>> another
>> server).  The following config (substiture remote URL with
>> http://localhost:8080/manager) works fine on my local desktop with a
>> local
>> tomcat instance:
>>
>> mvn tomcat:deploy
>>
>> <build>
>>  <plugins>
>>   <plugin>
>>    <groupId>org.codehaus.mojo</groupId>
>>    <artifactId>tomcat-maven-plugin</artifactId>
>>    <configuration>
>>     <warFile>
>>      ${project.build.directory}/${project.build.finalName}.war
>>     </warFile>
>>     <update>true</update>
>>     <path>/appPath</path>
>>     <url>http://server:38080/manager</url>
>>     <username>adminUser</username>
>>     <password>adminPassword</password>
>>    </configuration>
>>   </plugin>
>>  </plugins>
>>  </build>
>> But fails when I try to deploy remotely with the following error:
>> [INFO] Deploying war to http://server:38080/appPath
>> [TASKS] Scipping maven reporter: there is already a result available.
>> [HUDSON] Archiving ...pom.xml to .../pom.xml
>> [HUDSON] Archiving ....war to ....war
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Cannot invoke Tomcat manager
>>
>> Embedded error: Server returned HTTP response code: 401 for URL:
>> http://server:38080/manager/deploy?path=%2FappPath&war=&update=true
>> Any ideas?  Is there an additional configuration step I have to
>> incorporate?
>>
>> Thanks,
>> Leo
>> --
>> View this message in context:
>> http://www.nabble.com/Deploy-to-Remote-Tomcat-Instance-tp19516536p19516536.html
>> Sent from the mojo - user mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Deploy-to-Remote-Tomcat-Instance-tp19516536p19531031.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to