Hi all, Trying to deploy my first app to Tomcat using the Tomcat Maven Plugin.
I only ever seem to get this error however I configure the plugin: [INFO] Deploying war to http://localhost:8080/suzcrmdata-web [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot invoke Tomcat manager Embedded error: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/deploy?path=%2Fsuzcrmdata-web&war= My tomcat-users.xml file states: <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="admin" roles="admin,manager"/> </tomcat-users> My settings.xml states: <servers> <server> <id>localserver</id> <username>admin</username> <password>admin</password> </server> </servers> My pom.xml states: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <server>localserver</server> <path>/suzcrmdata</path> <warFile>C:/Home/MSPDev/trunk/suzcrmdata/web/target/suzcrmdata-web-1.0-SNAPSHOT.war</warFile> </configuration> </plugin> I'm not sure why it tries to deploy using a null war param and also why it tries to deploy to suzcrmdata-web when I've put put the path in the plugin configuration as 'suzcrmdata'. Any advice would be very much appreciated. Regards, Dean. Scanned by MailDefender - managed email security from intY - www.maildefender.net
