Java Apache Tomcat 7.0.14:build-impl.xml:1111: 模块尚未部署
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22573787/
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
Apache Tomcat 7.0.14:build-impl.xml:1111: The module has not been deployed
提问by xrcwrn
While deploying a project in Netbeans7.4It is not deploying project in Apache Tomcat 7.0.14am it is showing following
在Netbeans7.4 中部署项目时它不是在Apache Tomcat 7.0.14 中部署项目,它显示如下
E:\Project\atom\nbproject\build-impl.xml:1111: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 22 seconds)
line no:1111 at built-impl.xml
is
行号:1111 在built-impl.xml
是
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false"
forceRedeploy="${forceRedeploy}"/>
To resolve above problem I have followed this link
要解决上述问题,我已按照此链接
My context.xml
file contains
我的context.xml
文件包含
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/atom"/>
And all permission is set for general users
并且所有权限都是为普通用户设置的
How to resolve this problem, what can be other cause for this error
如何解决此问题,此错误的其他原因可能是什么
Edit: Now installed Netbeans 8.0and Apache Tomcat 8then also showing same problem
I am using struts2.3.15
and hibernet3.6
编辑:现在安装了Netbeans 8.0和Apache Tomcat 8然后也显示了我正在使用的相同问题struts2.3.15
和hibernet3.6
My web.xml
content is
我的web.xml
内容是
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class> business.schedular.QuartzSchedulerListener </listener-class>
</listener>
<session-config>
<session-timeout>
120
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>pages/login.jsp</welcome-file>
</welcome-file-list>
</web-app>
采纳答案by Mathu
I am facing this issue often,and let me share my experience:
我经常遇到这个问题,让我分享一下我的经验:
when I experience this issue, I just switch off my wireless network connectivity and then I will restart Netbeans 7.4 in the wireless offline mode. Once it is restarted I will deploy all the applications which I have to execute for a day.
遇到此问题时,我只需关闭无线网络连接,然后在无线离线模式下重新启动 Netbeans 7.4。重新启动后,我将部署我必须执行一天的所有应用程序。
Deployment will be done Successfully. Later you can activate wireless/network connectivity in your system,further deployment doesn't shows the error.
部署将成功完成。稍后您可以在系统中激活无线/网络连接,进一步部署不会显示错误。
Until closing Neatbeans7.4, you can deploy,you can clean and build, you can do whatever you want.
在关闭 Neatbeans7.4 之前,您可以部署,您可以清理和构建,您可以为所欲为。
But if you are planning to restart the IDE again, Do the same, Deactivate the wireless/network connectivity and do the deployment.
但是,如果您打算再次重新启动 IDE,请执行相同操作,停用无线/网络连接并进行部署。
I am handling this issue daily by following the above steps.
我每天都按照上述步骤处理这个问题。
Before Wireless/Network Activation:
无线/网络激活前:
After Wireless/Network Activation:
无线/网络激活后:
回答by jdiver
Check the web.xml file; all defined servlets in web.xml file should be in source. There may be some servlet definitions left behind after you delete or renamed servlet class files. If this is the case, netbeans still clean-build application successfully but cannot deploy.
检查 web.xml 文件;web.xml 文件中所有定义的 servlet 都应该在源代码中。删除或重命名 servlet 类文件后,可能会留下一些 servlet 定义。如果是这种情况,netbeans 仍会成功清理构建应用程序,但无法部署。
回答by Prabha
First you have to check your XMLfiles are valid or not.
首先,您必须检查您的XML文件是否有效。
Step1If you are using NetBeans IDE just right click on XML file in your project and select validate
步骤 1如果您使用的是 NetBeans IDE,只需右键单击项目中的 XML 文件并选择验证
Step2If xml files don't have any error the open your project location and delete the build.xmlfile and redeploy the application again.
Step2如果 xml 文件没有任何错误,请打开您的项目位置并删除build.xml文件并重新部署应用程序。
It may be helpful to you. All the best
它可能对你有帮助。祝一切顺利
回答by Don Chakkappan
Where is the location of your project.If it is in C drive , this kind of problem may arise.Because , clean and build process requires some of the file modification.But , the c drive will not grant it.Just try the same after changing the location of project.
你项目的位置在哪里。如果在C盘,可能会出现这种问题。因为clean和build过程需要一些文件修改改变项目的位置。
回答by xrcwrn
I faced above problem because I was using proxy server. Due to proxy server It is showing the Problem.
我遇到了上述问题,因为我使用的是代理服务器。由于代理服务器它显示问题。
回答by Sharmila
To solve this problem go to C:\Users\yourComputerName\AppData\Local\NetBeans and delete the cache folder.This definately solved my problem.
要解决此问题,请转到 C:\Users\yourComputerName\AppData\Local\NetBeans 并删除缓存文件夹。这绝对解决了我的问题。