盘古大叔他很忙 2016-06-10 07:49 采纳率: 0%
浏览 2377

在在使用 6 maven build...去运行项目的结果出现报错

具体报错如下
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'server' (position: START_TAG seen ...\n\t... @264:10) @ C:\Users\Administrator.m2\settings.xml, line 264, column 10
[WARNING]
[INFO] Scanning for projects...
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building babasprot Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:deploy (default-cli) @ babasprot >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ babasprot ---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ babasprot ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ babasprot ---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ babasprot ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ babasprot ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ babasprot ---
[INFO] Packaging webapp
[INFO] Assembling webapp [babasprot] in [D:\java\babasprot\target\babasprot]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\java\babasprot\src\main\webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: D:\java\babasprot\target\babasprot.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] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) @ babasprot <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ babasprot ---
[INFO] Deploying war to http://localhost:8080/

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Uploading: http://localhost:8080/manager/text/deploy?path=%2F
Uploaded: http://localhost:8080/manager/text/deploy?path=%2F (3 KB)

[ERROR] Tomcat return http status error: 401, Reason Phrase: Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.704s
[INFO] Finished at: Fri Jun 10 15:43:40 CST 2016
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project babasprot: Tomcat return http status error: 401, Reason Phrase: Unauthorized:
[ERROR] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
[ERROR]
[ERROR]


[ERROR] 401 Unauthorized
[ERROR] <br> [ERROR] &lt;!--<br> [ERROR] BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}<br> [ERROR] H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}<br> [ERROR] PRE, TT {border: 1px dotted #525D76}<br> [ERROR] A {color : black;}A.name {color : black;}<br> [ERROR] --&gt;<br> [ERROR]
[ERROR]
[ERROR]
[ERROR]

401 Unauthorized


[ERROR]


[ERROR] You are not authorized to view this page. If you have not changed
[ERROR] any configuration files, please examine the file
[ERROR] conf/tomcat-users.xml in your installation. That
[ERROR] file must contain the credentials to let you use this webapp.
[ERROR]


[ERROR]


[ERROR] For example, to add the manager-gui role to a user named
[ERROR] tomcat with a password of s3cret, add the following to the
[ERROR] config file listed above.
[ERROR]


[ERROR]

[ERROR] <role rolename="manager-gui"/>
[ERROR] <user username="tomcat" password="s3cret" roles="manager-gui"/>
[ERROR]

[ERROR]


[ERROR] Note that for Tomcat 7 onwards, the roles required to use the manager
[ERROR] application were changed from the single manager role to the
[ERROR] following four roles. You will need to assign the role(s) required for
[ERROR] the functionality you wish to access.
[ERROR]


[ERROR]

    [ERROR]
  • manager-gui - allows access to the HTML GUI and the status
    [ERROR] pages

  • [ERROR]
  • manager-script - allows access to the text interface and the
    [ERROR] status pages

  • [ERROR]
  • manager-jmx - allows access to the JMX proxy and the status
    [ERROR] pages

  • [ERROR]
  • manager-status - allows access to the status pages only

  • [ERROR]

[ERROR]


[ERROR] The HTML interface is protected against CSRF but the text and JMX interfaces
[ERROR] are not. To maintain the CSRF protection:
[ERROR]


[ERROR]

    [ERROR]
  • Users with the manager-gui role should not be granted either
    [ERROR] the manager-script or manager-jmx roles.

  • [ERROR]
  • If the text or jmx interfaces are accessed through a browser (e.g. for
    [ERROR] testing since these interfaces are intended for tools not humans) then
    [ERROR] the browser must be closed afterwards to terminate the session.

  • [ERROR]

[ERROR]


[ERROR] For more information - please see the
[ERROR] Manager App HOW-TO.
[ERROR]


[ERROR]
[ERROR]
[ERROR]
[ERROR] -> [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
  • 写回答

2条回答 默认 最新

  • Evankaka 博客专家认证 2016-06-10 15:38
    关注

    [ERROR] You are not authorized to view this page. If you have not changed
    [ERROR] any configuration files, please examine the file
    [ERROR] conf/tomcat-users.xml in your installation. That
    [ERROR] file must contain the credentials to let you use this webapp.
    这是在说没有权限将工程打包放在tomcat中去?你这是什么项目?jar?war?pom?

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题