title: "Exception while loading the app" without a stack trace
body: <p>I'm migrating my app from GlassFish 3.0.1 to GlassFish 3.1.1. Deployment fails, with the following error messages:</p>
  
  <pre><code>SEVERE: Exception while loading the app
  SEVERE: Exception while shutting down application container
  SEVERE: Exception while shutting down application container : java.lang.NullPointerException
  SEVERE: java.lang.RuntimeException: Error occurred during deployment: Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details. 
  </code></pre>
  
  <p>There is no stack trace. I turned on the root logging level to FINEST, and the first SEVERE message occurs after a Weld message:</p>
  
  <pre><code>//...
  FINE: WELD-000105 Enabled interceptor types for Manager
  Enabled alternatives: [] []
  Registered contexts: [interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.RequestScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped]
  Registered beans: 0
  Specialized beans: 0
  : []
  </code></pre>
  
  <p>And before several messages like these (for several different classes):</p>
  
  <pre><code>FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
  FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
  FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/net/sf/ehcache/config/TerracottaConfiguration$ValueMode.class
  //...
  </code></pre>
  
  <p>What could be causing this error? Could these PWC4451 messages be indicating that some libraries aren't being loaded?</p>