本文介绍了build-impl.xml:1031:尚未部署模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究Java Web应用程序,我在 Netbeans 7.3 上使用 SmartGwt ,突然间我遇到了这个问题。我尝试清理 build-impl.xml 然后重新启动IDE,我应该说我对此知之甚少。有人可以告诉我为什么它会出错并且我该如何解决?

I have been working on a Java web application and i am using SmartGwt on Netbeans 7.3 and out of a sudden I encountered this problem. I tried cleaning the build-impl.xml then restarting the IDE and I should say I have fairly low knowledge on this. Can someone please tell me why it is giving an error and how I can fix that?

错误信息说明:

nbproject/build-impl.xml:1031: The module has not been deployed. See the server log for details.
BUILD FAILED (total time: 4 seconds)

注意:我正在使用 Tomcat 7.0.34

推荐答案

可能这么晚但响应对其他人有用了:
有时候,如果在项目的
创建时未指定服务器或servlet容器,则 NetBeans 无法创建 context.xml 文件。

may its so late but the response useful for others so :Sometimes, when you don't specify a server or servlet container at thecreation of the project, NetBeans fails to create a context.xml file.


  1. 在网页下的项目中,创建一个名为 META-INF 的文件夹。

  1. In your project under Web Pages, create a folder called META-INF.

通过鼠标右键单击网页来执行此操作,然后选择:

Do this by right mouse button clicking on Web pages, and select:

New-> Other-> Other->文件夹

将文件夹命名为 META-INF 。即使在Windows上,案例也很重要。

Name the folder META-INF. Case is important, even on Windows.


  1. 中创建一个名为 context.xml 的文件META-INF 文件夹。

  1. Create a file called context.xml in the META-INF folder.

通过鼠标右键单击新的 META-INF 文件夹来执行此操作,和
选择:

Do this by right mouse button clicking on the new META-INF folder, andselect:

New-> Other-> XML-> XML 文档

将其命名为上下文(NetBeans添加 .xml
选择格式良好的文档
按完成

Name it context (NetBeans adds the .xml)Select Well-formed DocumentPress Finish


  1. 编辑新文档( context.xml ) ,并添加以下内容:

  1. Edit the new document (context.xml), and add the following:

<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/app-name"/>


将app-name替换为你的名字应用程序。

Replace app-name with the name of your application.

现在,您的就地部署应该可以正常运行。如果没有,请确保每个人都可以读取
文件。

Now your in-place deployment should work. If not, make sure that thefile can be read by everyone.

context.xml 文件特定于Tomcat。有关
该文件的更多信息,请参阅 tomcat.apache.org 中的Tomcat文档。

The context.xml file is specific to Tomcat. For more information aboutthat file, see the Tomcat documentation at tomcat.apache.org.

这篇关于build-impl.xml:1031:尚未部署模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 13:01