not able to deploy, context file broken

前端 未结 1 884
说谎
说谎 2021-01-13 13:37

i used tomcat 7 and netbeans 7.4

when i start my web application i get

Cannot deploy the module. The context.xml file seems to be broken. Check whether it is

相关标签:
1条回答
  • 2021-01-13 13:46

    Figured it out. The Netbeans deployment process wants you to add 1 simple parameter to the Context tag, namely: path. It needs to know what path the application will be on.

    For example, this was my (opening) Context tag:

    <Context antiJARLocking="true" path="/sas/">
    

    My application is deployed at the /sas/ context root.

    And now, Netbeans deploys my application without any further errors.

    FYI: the antiJARLocking is something I put in to avoid locking of JAR's. It's not mandatory. For more information on the antiJARLocking, refer to the documentation over at: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

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