3 Replies Latest reply on Jan 8, 2014 1:12 PM by John Manko

    Errors trying to start my application

    John Manko Newbie

      I'm getting the following error when trying to include PicketLink in my project.  I do annotate a producer method with @PicketLink, but for some reason it's not found.  Any help would be appreciated.

       

      javax.ejb.CreateException: Initialization failed for Singleton InitializeSecurity

          at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:483)

          at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:81)

          at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:654)

          at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:396)

          at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219)

          at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180)

          at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)

          at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166)

          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)

          at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

          at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAs(Subject.java:356)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

          at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

          at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

          at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

          at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

          at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

          at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

          at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

          at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

          at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

          at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

          at java.lang.Thread.run(Thread.java:724)

      Caused by: org.picketlink.idm.IdentityManagementException: PLIDM000404: Could not load partition for type [interface org.picketlink.idm.model.Partition] and name [not specified].

          at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:300)

          at org.picketlink.producer.IdentityManagerProducer.createDefaultPartition(IdentityManagerProducer.java:206)

          at org.picketlink.producer.IdentityManagerProducer.createEmbeddedPartitionManager(IdentityManagerProducer.java:199)

          at org.picketlink.producer.IdentityManagerProducer.init(IdentityManagerProducer.java:111)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.weld.injection.MethodInjectionPoint.invokeWithSpecialValue(MethodInjectionPoint.java:72)

          at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:66)

          at org.jboss.weld.util.Beans.callInitializers(Beans.java:389)

          at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:378)

          at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

          at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)

          at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

          at org.glassfish.weld.services.NonModuleInjectionServices.aroundInject(NonModuleInjectionServices.java:87)

          at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

          at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

          at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

          at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)

          at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

          at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

          at org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:110)

          at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:129)

          at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:189)

          at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

          at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

          at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:774)

          at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

          at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:368)

          at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:377)

          at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

          at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

          at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

          at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

          at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

          at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

          at org.glassfish.weld.services.JCDIServiceImpl.injectEJBInstance(JCDIServiceImpl.java:257)

          at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1683)

          at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:443)

          ... 44 more

      Caused by: org.picketlink.idm.config.SecurityConfigurationException: To use JPAIdentityStore you must provide an EntityManager producer method qualified with @org.picketlink.annotations.PicketLink.

          at org.picketlink.internal.EEJPAContextInitializer.initContextForStore(EEJPAContextInitializer.java:26)

          at org.picketlink.idm.config.AbstractIdentityStoreConfiguration.initializeContext(AbstractIdentityStoreConfiguration.java:102)

          at org.picketlink.idm.internal.DefaultPartitionManager.getIdentityStoreAndInitializeContext(DefaultPartitionManager.java:917)

          at org.picketlink.idm.internal.DefaultPartitionManager.getStoreForPartitionOperation(DefaultPartitionManager.java:659)

          at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:294)

          ... 83 more


      Here is my EJB interface:

      @Local

      public interface InitializeSecurityLocal {

              public EntityManager getEntityManager();

      }


      And my implementation:

      @Singleton

      @Startup

      public class InitializeSecurity implements InitializeSecurityLocal {

       

          @Inject

          private PartitionManager partitionManager;

         

          @PersistenceContext(unitName = "PlatformPU")

          private EntityManager entityManager;

       

          @PostConstruct

          public void create() {

      //        // Create an IdentityManager

      //        IdentityManager identityManager = partitionManager.createIdentityManager();

          }

         

          @PicketLink   

          @Produces

          @Override

          public EntityManager getEntityManager(){

              return this.entityManager;

          }

      }

       




        • 1. Re: Errors trying to start my application
          John Manko Newbie

          Well. in order to try to get this working I changed my classes to match the IDM-JPA Quickstart, to no avail.  I get the same error.

          • 2. Re: Errors trying to start my application
            Pedro Igor Master

            HI,

             

                 Can you post the errors when you try to deploy the IDM-JPA quickstart ?

            • 3. Re: Errors trying to start my application
              John Manko Newbie

              Below is the entire deployment log.  I'd liek to first note that I changed the PicketLink version in the quickstart to 2.5.3.Beta1, because I need the fix for bug [PLINK-302] Annotate date fields in the simple schema with @Temporal - JBoss Issue Tracker

               

                      <!-- PicketLink dependency versions -->

                      <version.picketlink.javaee.bom>2.5.3.Beta1</version.picketlink.javaee.bom>

               

              Here is the log:

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              INFO:   visiting unvisited references

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE X509CREDENTIALTYPEENTITY (ID NUMERIC(19) IDENTITY NOT NULL, BASE64CERT VARCHAR(1024) NULL, EFFECTIVEDATE DATETIME NULL, EXPIRYDATE DATETIME NULL, TYPENAME VARCHAR(255) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'X509CREDENTIALTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE OTPCREDENTIALTYPEENTITY (ID NUMERIC(19) IDENTITY NOT NULL, EFFECTIVEDATE DATETIME NULL, EXPIRYDATE DATETIME NULL, TOTPDEVICE VARCHAR(255) NULL, TOTPSECRETKEY VARCHAR(255) NULL, TYPENAME VARCHAR(255) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'OTPCREDENTIALTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE PASSWORDCREDENTIALTYPEENTITY (ID NUMERIC(19) IDENTITY NOT NULL, EFFECTIVEDATE DATETIME NULL, EXPIRYDATE DATETIME NULL, PASSWORDENCODEDHASH VARCHAR(255) NULL, PASSWORDSALT VARCHAR(255) NULL, TYPENAME VARCHAR(255) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'PASSWORDCREDENTIALTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE RELATIONSHIPIDENTITYTYPEENTITY (IDENTIFIER NUMERIC(19) IDENTITY NOT NULL, DESCRIPTOR VARCHAR(255) NULL, IDENTITYTYPE_ID VARCHAR(255) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (IDENTIFIER))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'RELATIONSHIPIDENTITYTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE ATTRIBUTETYPEENTITY (ID NUMERIC(19) IDENTITY NOT NULL, NAME VARCHAR(255) NULL, TYPENAME VARCHAR(255) NULL, VALUE VARCHAR(1024) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'ATTRIBUTETYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE DIGESTCREDENTIALTYPEENTITY (ID NUMERIC(19) IDENTITY NOT NULL, DIGESTHA1 IMAGE NULL, DIGESTREALM VARCHAR(255) NULL, EFFECTIVEDATE DATETIME NULL, EXPIRYDATE DATETIME NULL, TYPENAME VARCHAR(255) NULL, OWNER_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'DIGESTCREDENTIALTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE ATTRIBUTEDTYPEENTITY (ID VARCHAR(255) NOT NULL, DTYPE VARCHAR(31) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'ATTRIBUTEDTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE IDENTITYTYPEENTITY (ID VARCHAR(255) NOT NULL, CREATEDDATE DATETIME NULL, ENABLED BIT default 0 NULL, EXPIRATIONDATE DATETIME NULL, TYPENAME VARCHAR(255) NULL, PARTITION_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'IDENTITYTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE ACCOUNTTYPEENTITY (ID VARCHAR(255) NOT NULL, EMAIL VARCHAR(255) NULL, FIRSTNAME VARCHAR(255) NULL, LASTNAME VARCHAR(255) NULL, LOGINNAME VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'ACCOUNTTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE GROUPTYPEENTITY (ID VARCHAR(255) NOT NULL, NAME VARCHAR(255) NULL, PATH VARCHAR(255) NULL, PARENT_ID VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'GROUPTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE PARTITIONTYPEENTITY (ID VARCHAR(255) NOT NULL, CONFIGURATIONNAME VARCHAR(255) NULL, NAME VARCHAR(255) NULL, TYPENAME VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'PARTITIONTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE RELATIONSHIPTYPEENTITY (ID VARCHAR(255) NOT NULL, TYPENAME VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'RELATIONSHIPTYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "CREATE TABLE ROLETYPEENTITY (ID VARCHAR(255) NOT NULL, NAME VARCHAR(255) NULL, PRIMARY KEY (ID))": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'ROLETYPEENTITY' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE X509CREDENTIALTYPEENTITY ADD CONSTRAINT X509CRDNTLTYPNTITYWNRD FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'X509CRDNTLTYPNTITYWNRD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE OTPCREDENTIALTYPEENTITY ADD CONSTRAINT TPCRDNTLTYPEENTITYWNRD FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'TPCRDNTLTYPEENTITYWNRD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE PASSWORDCREDENTIALTYPEENTITY ADD CONSTRAINT PSSWRDCRDNTLTYPNTTWNRD FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'PSSWRDCRDNTLTYPNTTWNRD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE RELATIONSHIPIDENTITYTYPEENTITY ADD CONSTRAINT RLTNSHPDNTTYTDNTTYTYPD FOREIGN KEY (IDENTITYTYPE_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'RLTNSHPDNTTYTDNTTYTYPD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE RELATIONSHIPIDENTITYTYPEENTITY ADD CONSTRAINT RLTNSHPDNTTYTYPNTTWNRD FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'RLTNSHPDNTTYTYPNTTWNRD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE ATTRIBUTETYPEENTITY ADD CONSTRAINT TTRBUTETYPEENTITYWNRID FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'TTRBUTETYPEENTITYWNRID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE DIGESTCREDENTIALTYPEENTITY ADD CONSTRAINT DGSTCRDNTLTYPNTITYWNRD FOREIGN KEY (OWNER_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'DGSTCRDNTLTYPNTITYWNRD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE IDENTITYTYPEENTITY ADD CONSTRAINT DNTTYTYPEENTITYPRTTNID FOREIGN KEY (PARTITION_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'DNTTYTYPEENTITYPRTTNID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE IDENTITYTYPEENTITY ADD CONSTRAINT IDENTITYTYPEENTITY_ID FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'IDENTITYTYPEENTITY_ID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE ACCOUNTTYPEENTITY ADD CONSTRAINT ACCOUNTTYPEENTITY_ID FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'ACCOUNTTYPEENTITY_ID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE GROUPTYPEENTITY ADD CONSTRAINT FK_GROUPTYPEENTITY_ID FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'FK_GROUPTYPEENTITY_ID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE GROUPTYPEENTITY ADD CONSTRAINT GROUPTYPEENTITYPRENTID FOREIGN KEY (PARENT_ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'GROUPTYPEENTITYPRENTID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE PARTITIONTYPEENTITY ADD CONSTRAINT PARTITIONTYPEENTITY_ID FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'PARTITIONTYPEENTITY_ID' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE RELATIONSHIPTYPEENTITY ADD CONSTRAINT RLATIONSHIPTYPEENTITYD FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'RLATIONSHIPTYPEENTITYD' in the database.

              WARNING:   PER01000: Got SQLException executing statement "ALTER TABLE ROLETYPEENTITY ADD CONSTRAINT FK_ROLETYPEENTITY_ID FOREIGN KEY (ID) REFERENCES ATTRIBUTEDTYPEENTITY (ID)": com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'FK_ROLETYPEENTITY_ID' in the database.

              INFO:   TopLevel AvailabilityService.getAvailabilityEnabled: [true]

              INFO:   TopLevel EjbAvailabilityService.getAvailabilityEnabled: [true]

              INFO:   Global AvailabilityEnabled: [true], application AvailabilityEnabled: [false]

              INFO:   StatefulContainerBuilder AvailabilityEnabled [false] for this application

              INFO:   StatefulContainerBuilder.buildStoreManager() storeName: [Resources-91042596998676482-BackingStore]

              INFO:   [FileBackingStore::initialize] Successfully Created and initialized store. Working dir: /home/jmanko/Documents/AGODevelopment/glassfish-4.0/glassfish/domains/domain1/session-store/Resources-91042596998676482; Configuration: BackingStoreConfiguration{clusterName='null', instanceName='null', storeName='Resources-91042596998676482-BackingStore', shortUniqueName='91042596998676482', storeType='file', maxIdleTimeInSeconds=-1, relaxVersionCheck='null', maxLoadWaitTimeInSeconds=0, baseDirectoryName='/home/jmanko/Documents/AGODevelopment/glassfish-4.0/glassfish/domains/domain1/session-store/Resources-91042596998676482', keyClazz=interface java.io.Serializable, valueClazz=class org.glassfish.ha.store.util.SimpleMetadata, synchronousSave=false, typicalPayloadSizeInKiloBytes=0, vendorSpecificSettings={start.gms=false, async.replication=true, key.transformer=com.sun.ejb.base.sfsb.util.SimpleKeyGenerator@702e868c, local.caching=true, value.class.is.thread.safe=true, broadcast.remove.expired=false}}

              INFO:   StatefulContainerbuilder instantiated store: org.glassfish.ha.store.adapter.file.FileBackingStore@7e838add, with ha-enabled [false], and backing store configuration: BackingStoreConfiguration{clusterName='null', instanceName='null', storeName='Resources-91042596998676482-BackingStore', shortUniqueName='91042596998676482', storeType='file', maxIdleTimeInSeconds=-1, relaxVersionCheck='null', maxLoadWaitTimeInSeconds=0, baseDirectoryName='/home/jmanko/Documents/AGODevelopment/glassfish-4.0/glassfish/domains/domain1/session-store/Resources-91042596998676482', keyClazz=interface java.io.Serializable, valueClazz=class org.glassfish.ha.store.util.SimpleMetadata, synchronousSave=false, typicalPayloadSizeInKiloBytes=0, vendorSpecificSettings={start.gms=false, async.replication=true, key.transformer=com.sun.ejb.base.sfsb.util.SimpleKeyGenerator@702e868c, local.caching=true, value.class.is.thread.safe=true, broadcast.remove.expired=false}}

              INFO:   EJB5181:Portable JNDI names for EJB Resources: [java:global/PicketLink_Quickstart/Resources!org.jboss.as.quickstarts.picketlink.authorization.idm.jpa.Resources, java:global/PicketLink_Quickstart/Resources]

              INFO:   EJB5181:Portable JNDI names for EJB IDMInitializer: [java:global/PicketLink_Quickstart/IDMInitializer, java:global/PicketLink_Quickstart/IDMInitializer!org.jboss.as.quickstarts.picketlink.authorization.idm.jpa.IDMInitializer]

              INFO:   EJB5181:Portable JNDI names for EJB LoginController: [java:global/PicketLink_Quickstart/LoginController!org.jboss.as.quickstarts.picketlink.authorization.idm.jpa.LoginController, java:global/PicketLink_Quickstart/LoginController]

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type S from public void org.picketlink.idm.credential.handler.PasswordCredentialHandler.setup(S) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.spi.CredentialStore<?> from public void org.picketlink.idm.credential.handler.AbstractCredentialHandler.setup(S) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.spi.CredentialStore<?> from public void org.picketlink.idm.credential.handler.TOTPCredentialHandler.setup(org.picketlink.idm.spi.CredentialStore<?>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.spi.CredentialStore<?> from public void org.picketlink.idm.credential.handler.AbstractCredentialHandler.setup(S) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              WARNING:   The following warnings have been detected: WARNING: Parameter 1 of type org.picketlink.idm.model.Attribute<? extends java.io.Serializable> from public void org.picketlink.idm.model.AbstractAttributedType.setAttribute(org.picketlink.idm.model.Attribute<? extends java.io.Serializable>) is not resolvable to a concrete type.

               

              INFO:   PLIDM001000: Bootstrapping PicketLink IDM Partition Manager

              INFO:   PLIDM001001: Initializing Identity Store [class org.picketlink.idm.jpa.internal.JPAIdentityStore]

              SEVERE:   Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method

              javax.ejb.EJBException: javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

                  at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:656)

                  at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:396)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)

                  at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166)

                  at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

                  at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)

                  at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                  at java.security.AccessController.doPrivileged(Native Method)

                  at javax.security.auth.Subject.doAs(Subject.java:356)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                  at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                  at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                  at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                  at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                  at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                  at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                  at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                  at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                  at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                  at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                  at java.lang.Thread.run(Thread.java:724)

              Caused by: javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:483)

                  at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:81)

                  at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:654)

                  ... 42 more

              Caused by: org.picketlink.idm.IdentityManagementException: PLIDM000404: Could not load partition for type [interface org.picketlink.idm.model.Partition] and name [not specified].

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:300)

                  at org.picketlink.producer.IdentityManagerProducer.createDefaultPartition(IdentityManagerProducer.java:206)

                  at org.picketlink.producer.IdentityManagerProducer.createEmbeddedPartitionManager(IdentityManagerProducer.java:199)

                  at org.picketlink.producer.IdentityManagerProducer.init(IdentityManagerProducer.java:111)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.weld.injection.MethodInjectionPoint.invokeWithSpecialValue(MethodInjectionPoint.java:72)

                  at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:66)

                  at org.jboss.weld.util.Beans.callInitializers(Beans.java:389)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:378)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)

                  at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:110)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:129)

                  at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:189)

                  at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:774)

                  at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

                  at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:368)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:377)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.glassfish.weld.services.JCDIServiceImpl.injectEJBInstance(JCDIServiceImpl.java:257)

                  at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1683)

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:443)

                  ... 44 more

              Caused by: java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManagerFactory.

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.verifyOpen(EntityManagerFactoryDelegate.java:338)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:303)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:317)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMFromCurrentInvocation(EntityManagerWrapper.java:268)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:213)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getCriteriaBuilder(EntityManagerWrapper.java:834)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.getPartitions(JPAIdentityStore.java:283)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.get(JPAIdentityStore.java:275)

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:294)

                  ... 83 more

               

              SEVERE:   Exception during lifecycle processing

              javax.ejb.EJBException: javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

                  at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:656)

                  at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:396)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)

                  at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166)

                  at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

                  at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)

                  at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                  at java.security.AccessController.doPrivileged(Native Method)

                  at javax.security.auth.Subject.doAs(Subject.java:356)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                  at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                  at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                  at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                  at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                  at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                  at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                  at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                  at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                  at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                  at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                  at java.lang.Thread.run(Thread.java:724)

              Caused by: javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:483)

                  at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:81)

                  at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:654)

                  ... 42 more

              Caused by: org.picketlink.idm.IdentityManagementException: PLIDM000404: Could not load partition for type [interface org.picketlink.idm.model.Partition] and name [not specified].

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:300)

                  at org.picketlink.producer.IdentityManagerProducer.createDefaultPartition(IdentityManagerProducer.java:206)

                  at org.picketlink.producer.IdentityManagerProducer.createEmbeddedPartitionManager(IdentityManagerProducer.java:199)

                  at org.picketlink.producer.IdentityManagerProducer.init(IdentityManagerProducer.java:111)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.weld.injection.MethodInjectionPoint.invokeWithSpecialValue(MethodInjectionPoint.java:72)

                  at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:66)

                  at org.jboss.weld.util.Beans.callInitializers(Beans.java:389)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:378)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)

                  at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:110)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:129)

                  at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:189)

                  at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:774)

                  at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

                  at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:368)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:377)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.glassfish.weld.services.JCDIServiceImpl.injectEJBInstance(JCDIServiceImpl.java:257)

                  at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1683)

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:443)

                  ... 44 more

              Caused by: java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManagerFactory.

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.verifyOpen(EntityManagerFactoryDelegate.java:338)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:303)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:317)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMFromCurrentInvocation(EntityManagerWrapper.java:268)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:213)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getCriteriaBuilder(EntityManagerWrapper.java:834)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.getPartitions(JPAIdentityStore.java:283)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.get(JPAIdentityStore.java:275)

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:294)

                  ... 83 more

               

              SEVERE:   Exception while loading the app

              SEVERE:   Undeployment failed for context /picketlink-authorization-idm-jpa

              SEVERE:   Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

              javax.ejb.CreateException: Initialization failed for Singleton IDMInitializer

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:483)

                  at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:81)

                  at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:654)

                  at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:396)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180)

                  at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)

                  at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166)

                  at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)

                  at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)

                  at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)

                  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                  at java.security.AccessController.doPrivileged(Native Method)

                  at javax.security.auth.Subject.doAs(Subject.java:356)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                  at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                  at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                  at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                  at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                  at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                  at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                  at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                  at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                  at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                  at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                  at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                  at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                  at java.lang.Thread.run(Thread.java:724)

              Caused by: org.picketlink.idm.IdentityManagementException: PLIDM000404: Could not load partition for type [interface org.picketlink.idm.model.Partition] and name [not specified].

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:300)

                  at org.picketlink.producer.IdentityManagerProducer.createDefaultPartition(IdentityManagerProducer.java:206)

                  at org.picketlink.producer.IdentityManagerProducer.createEmbeddedPartitionManager(IdentityManagerProducer.java:199)

                  at org.picketlink.producer.IdentityManagerProducer.init(IdentityManagerProducer.java:111)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                  at java.lang.reflect.Method.invoke(Method.java:606)

                  at org.jboss.weld.injection.MethodInjectionPoint.invokeWithSpecialValue(MethodInjectionPoint.java:72)

                  at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:66)

                  at org.jboss.weld.util.Beans.callInitializers(Beans.java:389)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:378)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:60)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)

                  at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:110)

                  at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:129)

                  at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:189)

                  at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:716)

                  at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:774)

                  at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

                  at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:368)

                  at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:377)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)

                  at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)

                  at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:142)

                  at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)

                  at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)

                  at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:91)

                  at org.glassfish.weld.services.JCDIServiceImpl.injectEJBInstance(JCDIServiceImpl.java:257)

                  at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1683)

                  at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:443)

                  ... 44 more

              Caused by: java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManagerFactory.

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.verifyOpen(EntityManagerFactoryDelegate.java:338)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:303)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)

                  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:317)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMFromCurrentInvocation(EntityManagerWrapper.java:268)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:213)

                  at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getCriteriaBuilder(EntityManagerWrapper.java:834)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.getPartitions(JPAIdentityStore.java:283)

                  at org.picketlink.idm.jpa.internal.JPAIdentityStore.get(JPAIdentityStore.java:275)

                  at org.picketlink.idm.internal.DefaultPartitionManager.getPartitions(DefaultPartitionManager.java:294)

                  ... 83 more