Java 失败 - 在上下文路径 /RxCircle 部署应用程序但上下文无法启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27185797/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 03:57:04  来源:igfitidea点击:

FAIL - Deployed application at context path /RxCircle but context failed to start

javamaventomcatnetbeans-7

提问by santosh karadla

FAIL - Deployed application at context path /RxCircle but context failed to start The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210) at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:173) at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:125) at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:202) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

失败 - 在上下文路径 /RxCircle 部署了应用程序,但上下文未能启动模块尚未部署。在 org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210) 在 org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:173) 在 org.netbeans .modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:125) 在 org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:202) 在 org.netbeans.core.execution.RunClassThread.run (RunClassThread.java:153)

i am using tomcat 6 netbeans 7.0 java 6

我正在使用 tomcat 6 netbeans 7.0 java 6

i am getting this error when i am running my application in netbeans..

当我在 netbeans 中运行我的应用程序时出现此错误..

回答by GKS

This is a very generic error message and can be due to any reason like wrong servlet filter defined or malformed application context file. To understand fully you need to get more logging details from tomcat. So set the logging level to debug in tomcat and then start the tomcat. Below url you may refer for further details

这是一个非常通用的错误消息,可能是由于任何原因造成的,例如错误的 servlet 过滤器定义或格式错误的应用程序上下文文件。要完全理解,您需要从 tomcat 获取更多日志记录详细信息。所以在tomcat中设置日志级别为debug,然后启动tomcat。您可以参考以下网址了解更多详情

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

How to set level logging to DEBUG in Tomcat?

如何在Tomcat中将级别日志设置为DEBUG?

Hopefully you will get more details about the deployment error root cause.

希望您能获得有关部署错误根本原因的更多详细信息。

回答by cosbor11

I suspect that either (1) Your web.xml is missing, (2) your applicationContext is malformed or (3) your versions are not playing nicely together.

我怀疑 (1) 您的 web.xml 丢失,(2) 您的 applicationContext 格式错误或 (3) 您的版本不能很好地协同工作。

Since you are using Netbeans you can view the Server Log by doing this:

由于您使用的是 Netbeans,您可以通过执行以下操作来查看服务器日志:

  1. Open the Serviceswindow (if it is not open go to: Window > Services)
  2. Right-click on the TomcatServer and select View Server Log.
  1. 打开Services窗口(如果它是不开放,请访问:Window > Services
  2. 右键单击Tomcat服务器并选择View Server Log

Now you can see the actual exception that is causing Tomcat not to deploy your war.

现在您可以看到导致 Tomcat 不部署您的战争的实际异常。

回答by Rafael

Try stopping the Tomcat server so as to allow Netbeans to run it. If the server is already running when Netbeans tries to deploy an app Netbeans will display the delopy failed message.

尝试停止 Tomcat 服务器以允许 Netbeans 运行它。如果 Netbeans 尝试部署应用程序时服务器已经在运行,则 Netbeans 将显示部署失败消息。

回答by Afrar Malakooth

I had the same issue. I was using Java 8, Tomcat 8, NetBeans 8.1.

我遇到过同样的问题。我使用的是 Java 8、Tomcat 8、NetBeans 8.1。

What I did was, I manually replaced: 1. nbproject/build-impl.xml 2. web/WEB-INF/web.xml

我所做的是,我手动替换了: 1. nbproject/build-impl.xml 2. web/WEB-INF/web.xml

with a previous version of the files. Please make sure to have backups.

与以前版本的文件。请确保有备份。