Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. [INFO] Building war: C:Workspace2swwebapptargetmkyongweb-core-1.0.war
  2. [INFO] [tomcat:deploy {execution: default-cli}]
  3. [INFO] Deploying war to http://localhost:8080/mkyongweb-core
  4. [INFO] ------------------------------------------------------------------------
  5. [ERROR] BUILD ERROR
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO] Cannot invoke Tomcat manager
  8.  
  9. Embedded error: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager/deploy?path=%2Fmkyongweb-core&war=
  10.  
  11. <tomcat-users>
  12. <role rolename="admin"/>
  13. <role rolename="manager"/>
  14. <user username="admin" password="password" roles="admin,manager"/>
  15. </tomcat-users>
  16.  
  17. <server>
  18. <id>tomcat7</id>
  19. <username>admin</username>
  20. <password>password</password>
  21. </server>
  22.  
  23. <build>
  24. <plugins>
  25. <!-- Maven Tomcat Plugin -->
  26. <plugin>
  27. <groupId>org.codehaus.mojo</groupId>
  28. <artifactId>tomcat-maven-plugin</artifactId>
  29. <version>1.0</version>
  30. <configuration>
  31. <server>tomcat7</server>
  32. <url>h ttp://loca lhost:8080/manager</url>
  33. <path>/mkyongWebApp</path>
  34. </configuration>
  35. </plugin>
  36. <!-- Maven compiler plugin -->
  37. <plugin>
  38. <artifactId>maven-compiler-plugin</artifactId>
  39. <configuration>
  40. <source>1.6</source>
  41. <target>1.6</target>
  42. </configuration>
  43. </plugin>
  44.  
  45. </plugins>
  46. </build>
  47.  
  48. <plugins>
  49. <!-- Maven Tomcat Plugin -->
  50. <plugin>
  51. <groupId>org.apache.tomcat.maven</groupId>
  52. <artifactId>tomcat6-maven-plugin</artifactId>
  53. <version>2.0-beta-1</version>
  54. <configuration>
  55. <server>tomcat7</server>
  56. <url>http://localhost:8080/manager</url>
  57. <path>/mkyongWebApp</path>
  58. </configuration>
  59. </plugin>
  60.  
  61. <!-- Maven compiler plugin -->
  62. <plugin>
  63. <artifactId>maven-compiler-plugin</artifactId>
  64. <configuration>
  65. <source>1.6</source>
  66. <target>1.6</target>
  67. </configuration>
  68. </plugin>
  69.  
  70. </plugins>
  71.  
  72. <plugin>
  73. <groupId>org.codehaus.mojo</groupId>
  74. <artifactId>tomcat-maven-plugin</artifactId>
  75. <configuration>
  76. <server>tomcat7</server>
  77. <url>http://localhost:8080/manager/html</url>
  78. </configuration>
  79. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement