Hello, Can you check you have correctly configured your tomcat instance : http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Configuring_Manager_Application_Access
Thanks 2011/10/11 laredotornado-3 <laredotorn...@gmail.com>: > Hi, > > I'm using maven 3.0.3 with the Maven-Tomcat (1.1) plugin. I'm having > trouble deploying my WAR file to a running Tomcat (6.0.33) instance using > > mvn clean install tomcat:deploy > > which spits out the 401 error below. My Tomcat plugin configuration is as > follows ... > > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>tomcat-maven-plugin</artifactId> > <version>1.1</version> > <configuration> > <url>http://localhost:8080/manager</url> > <server>tomcat-server</server> > > <warFile>target/${project.artifactId}-${project.version}.${project.packaging}</warFile> > </configuration> > </plugin> > </plugins> > > I have verified that the credentials (corresponding to the tomcat-server) > are correct by using them to login in a web browser. Any thoughts about why > this is failing? > > > ===========================The error message > =============================================== > ... > [INFO] > [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ pplus2 --- > [INFO] Packaging webapp > [INFO] Assembling webapp [pplus2] in [C:\Documents and > Settings\E18538\workspace\pplus2\target\pplus2-1.0-SNAPSHOT] > [INFO] Processing war project > [INFO] Copying webapp resources [C:\Documents and > Settings\E18538\workspace\pplus2\src\main\webapp] > [INFO] Webapp assembled in [218 msecs] > [INFO] Building war: C:\Documents and > Settings\E18538\workspace\pplus2\target\pplus2-1.0-SNAPSHOT.war > [WARNING] Warning: selected war files include a WEB-INF/web.xml which will > be ignored > (webxml attribute is missing from war task, or ignoreWebxml attribute is > specified as 'true') > [INFO] > [INFO] <<< tomcat-maven-plugin:1.1:deploy (default-cli) @ pplus2 <<< > [INFO] > [INFO] --- tomcat-maven-plugin:1.1:deploy (default-cli) @ pplus2 --- > [INFO] Deploying war to http://localhost:8080/pplus2 > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 5.236s > [INFO] Finished at: Tue Oct 11 10:24:32 CDT 2011 > [INFO] Final Memory: 14M/36M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project > pplus2: Cannot invoke Tomcat manager: Server returned HTTP response code: > 401 for URL: http://localhost:8080/manager/deploy?path=%2Fpplus2&war= -> > [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Getting-401-error-when-trying-to-use-Maven-Tomcat-plugin-tp4892167p4892167.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org