title: Glassfish DeploymentException: Error in linking security policy for
body: <p>I have been trying to deploy my web application (war) from Glassfish AdminConsole but I keep getting the following error message -</p>
  
  <pre><code>Exception while loading the app : Error in linking security policy for MyApp-war -- Inconsistent Module State.
  </code></pre>
  
  <p>But it deploys without any problem when I do it from Netbeans. (I don't know if Netbeans is doing something that I am missing before deploying the application.)</p>
  
  <p>And I also tried with the latest version of Glassfish (i.e. V3.1.1 (build 12)
  ), and I can deploy the same application without any problem from AdminConsole.</p>
  
  <p>I am using Glassfish 3.1 (build 43) and Netbeans 7.0.</p>
  
  <p>Is there any Security Policy setting that I have to have before deploying my application with this version of Glassfish?</p>