【发布时间】:2013-07-25 22:05:58
【问题描述】:
我正在尝试从展开的 war 目录进行部署,但出现相同的上下文错误(如果我从 eclipse 部署或尝试从管理器页面部署,则会出现以下错误输出):
我的运行配置 - war:exploded tomcat:exploded - 将分解后的 war 文件的内容复制到 \apache7\work\Catalina\localhost 和 \apache7\work\Catalina\localhost\mycontext
我是否缺少 apache\tomcat 配置设置?
任何想法都非常感谢!
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://***:8080/manager/text</url>
<path>/mycontext</path>
<warDirectory>
${project.build.directory}/exploded/${project.build.finalName}.war
</warDirectory>
<server>etomcat</server>
<username>${tomcat.username}</username>
<password>${tomcat.password}</password>
</configuration>
eclipse 的输出:无法在项目 MyProject 上执行目标 org.codehaus.mojo:tomcat-maven-plugin:1.1:exploded (default-cli):无法调用 Tomcat 管理器:FAIL - 无法在上下文路径/部署应用程序我的上下文
日志: 127.0.0.1 - tomcat [25/Jul/2013:14:05:28 -0400] “GET /manager/text/deploy?path=%2Fmycontext&war=file%3A%2FD%3A%2F[path to project] HTTP/ 1.1" 200 74
[错误] 无法在项目 MyProject 上执行目标 org.codehaus.mojo:tomcat-maven-plugin:1.1:exploded (default-cli):无法调用 Tomcat 管理器:FAIL - 无法在上下文路径 /mycontext 部署应用程序
org.apache.maven.lifecycle.LifecycleExecutionException: 无法在项目 Pathways-Core-war 上执行目标 org.codehaus.mojo:tomcat-maven-plugin:1.1:exploded (default-cli):无法调用 Tomcat 管理器: FAIL - 无法在上下文路径 /mycontext 部署应用程序
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
...LifecycleModuleBuilder.buildProject(LifecycleModuleBuildere(Launcher.java:409) 在 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 原因:org.apache.maven.plugin.MojoExecutionException:无法调用 Tomcat 管理器:FAIL - 无法在上下文路径 /mycontext 部署应用程序
【问题讨论】:
标签: eclipse maven deployment tomcat7 contextpath