title: GlassFish - IllegalStateException
body: <p>I'm making a small application. For now it has a couple of entity classes and a <code>index.xhtml</code> which just has the word <code>TEST</code>. It seems that when I try to run it on the server, the application doesn't create a database and the glassfish server gives me the error :</p>
  
  <pre><code>org.jboss.weld.exceptions.IllegalStateException: WELD-000227: Bean identifier index inconsistency detected - the distributed container probably does not work with identical applications
  Expected hash: 1888662881
  Current index: BeanIdentifierIndex [hash=-1322634367, indexed=12]:
  0: WELD%AbstractBuiltInBean%WebProjectManager%HttpSession
  1: WELD%AbstractBuiltInBean%com.ibm.jbatch.container.cdi.BatchCDIInjectionExtension%HttpSession
  2: WELD%AbstractBuiltInBean%com.sun.faces.flow.FlowDiscoveryCDIExtension%HttpSession
  3: WELD%AbstractBuiltInBean%org.glassfish.cdi.transaction.TransactionalExtension%HttpSession
  4: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider%HttpSession
  5: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.servlet.internal.CdiExternalRequestScopeExtension%HttpSession
  6: WELD%AbstractBuiltInBean%org.glassfish.jersey.ext.cdi1x.transaction.internal.TransactionalExceptionInterceptorProvider%HttpSession
  7: WELD%AbstractBuiltInBean%org.glassfish.jms.injection.JMSCDIExtension%HttpSession
  8: WELD%AbstractBuiltInBean%org.glassfish.osgicdi.impl.OSGiServiceExtension%HttpSession
  9: WELD%AbstractBuiltInBean%org.glassfish.sse.impl.ServerSentEventCdiExtension%HttpSession
  10: WELD%AbstractBuiltInBean%org.hibernate.validator.internal.cdi.ValidationExtension%HttpSession
  11: WELD%AbstractBuiltInBean%root_WebProjectManager%HttpSession
  </code></pre>
  
  <p><strong>persistence.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence     http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  version="2.0"&gt;
  &lt;persistence-unit name="WebProjectManager"&gt;
  &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
   &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;
  &lt;properties&gt;
    &lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/&gt;
  
    &lt;property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:xe"/&gt;
    &lt;property name="javax.persistence.jdbc.user" value="alexander"/&gt;
    &lt;property name="javax.persistence.jdbc.password" value="0898725863"/&gt;
  
    &lt;property name="eclipselink.ddl-generation" value="create-or-extend-tables"/&gt;
    &lt;property name="eclipselink.create-ddl-jdbc-file-name" value="createDDL_ddlGeneration.jdbc"/&gt;
    &lt;property name="eclipselink.drop-ddl-jdbc-file-name" value="dropDDL_ddlGeneration.jdbc"/&gt;
    &lt;property name="eclipselink.ddl-generation.output-mode" value="both"/&gt;
  &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Any ideas how to fix this ?</p>
  
  <p><strong>PS:</strong> I only have entity classes at this point so maybe that's the reason it doesn't create the database (maybe it needs, some ejb's and managed beans for example. Note sure.). Don't really know so here is the whole project so far: <a href="https://drive.google.com/file/d/0B-LAX_pu8QCUdDg3VXNBUDNKTU0/view" rel="nofollow">project</a></p>