build-impl.xml:1031: The module has not been deployed

前端 未结 9 2105
小鲜肉
小鲜肉 2020-12-03 11:44

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

相关标签:
9条回答
  • 2020-12-03 12:18

    One of the main reason for this error is due to permission not granted to all users. so remove this error, follow the following steps :
    1) Go to the C:/Programme Files/Apache Software Foundation/Tomcat 7.0
    2) Right click on the Tomcat 7.0 folder and click on properties.
    3) go to Security Tab.
    4) Select the User and click on Edit... button
    5) Grant all the permission to the user and click on apply and ok.
    Refresh the system and now try. I hope it will work

    0 讨论(0)
  • 2020-12-03 12:28
    • Check if there any other instance of the server is running already
    • Check if the port that will be used by the server is free.
    0 讨论(0)
  • 2020-12-03 12:31

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

    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->File Folder

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

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

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

    New->Other->XML->XML Document

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

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

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

    Replace app-name with the name of your application.

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

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

    0 讨论(0)
  • 2020-12-03 12:34

    Take a look at the server logs!

    I had been with this for hours. The awful Tomcat servlet is not very helpful neither but if you can see the stacktrace that should be enough.

    For instance, I read the following error message there:

    Caused by: java.lang.IllegalArgumentException: The servlets named [DetailsServlet] and [AddToCart] are both mapped to the url-pattern [/carrito] which is not permitted

    As you can see, the message was pretty clear and easy to fix :-)

    0 讨论(0)
  • 2020-12-03 12:36

    If you add jars in tomcat's lib folder you can see this error

    0 讨论(0)
  • 2020-12-03 12:37

    Start your IDE with administrative privilege( Windows: right click and run as admin), so that it has read write access to tomact folder for deployment. It worked for me.

    0 讨论(0)
提交回复
热议问题