title: Error deploying JSF app in Glassfish
body: <p>I used to deploy a JSF+Primefaces app in a Glassfish server without any trouble. Recently I upgraded my NetBeans version. I haven't had any problems with the most of the applications after that. But with one of them when I tried to do the deployment, it failed and this was the error message:</p>
  
  <blockquote>
    <p>Error occurred during deployment: Exception while loading the app :
    java.lang.IllegalStateException: ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: java.lang.RuntimeException:
    com.sun.faces.config.ConfigurationException:
    java.util.concurrent.ExecutionException:
    com.sun.faces.config.ConfigurationException: Unable to parse document
    'jar:file:/opt/glassfish3/glassfish/domains/domain1/applications/[name-of-the-application]/WEB-INF/lib/javax.faces.jar!/META-INF/mojarra_ext.taglib.xml':
    null. Please see server.log for more details.</p>
  </blockquote>
  
  <p>It seems like all is ok with the project (cleans and build well), but the error keeps appearing. This is the environment I'm using:</p>
  
  <ul>
  <li>NetBeans 7.3.1</li>
  <li>JSF 2.2 (Mojarra)</li>
  <li>GlassFish Open Source Edition 3.1.1 (build 12).</li>
  </ul>
  
  <p>PS: When I try to do the deployment with Glassfish 3 bundled in NetBeans, this is the error:</p>
  
  <blockquote>
    <p>SEVERE: Error during deployment : class com.sun.faces.application.annotation.PersistenceUnit Scanner cannot access its superinterface com.sun.faces.application.annotation.Scanner</p>
  </blockquote>
  
  <p>Thanks</p>