Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-388

Exception when configuring JPA Identity Store via PicketLink subsystem

XMLWordPrintable

    • Hide

      Subsystem configuration:
      <subsystem xmlns="urn:jboss:domain:picketlink:1.0">
      <identity-management jndi-name="picketlink/JPADSBasedPartitionManager" alias="jpa.ds.based.partition.manager">
      <identity-configuration name="jpa.config">
      <jpa-store data-source="jboss/datasources/PicketLinkDatasource">
      <supportedTypes supportsAll="true"/>
      </jpa-store>
      </identity-configuration>
      </identity-management>
      </subsystem>

      Show
      Subsystem configuration: <subsystem xmlns="urn:jboss:domain:picketlink:1.0"> <identity-management jndi-name="picketlink/JPADSBasedPartitionManager" alias="jpa.ds.based.partition.manager"> <identity-configuration name="jpa.config"> <jpa-store data-source="jboss/datasources/PicketLinkDatasource"> <supportedTypes supportsAll="true"/> </jpa-store> </identity-configuration> </identity-management> </subsystem>
    • Compatibility/Configuration

      When configuring the PicketLink subsystem with a JPA-based IdentityStore, I get the following exception on app server startup:

      11:49:23,183 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.PartitionManagerService."jpa.ds.based.partition.manager": org.jboss.msc.service.StartException in service jboss.PartitionManagerService."jpa.ds.based.partition.manager": Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
      Caused by: java.lang.NoSuchMethodError: org.picketlink.idm.config.JPAIdentityStoreConfiguration.<init>(Ljava/util/Set;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Set;ZZ)V
      at org.picketlink.as.subsystem.idm.config.JPAStoreSubsystemConfiguration.<init>(JPAStoreSubsystemConfiguration.java:71)
      at org.picketlink.as.subsystem.idm.config.JPAStoreSubsystemConfigurationBuilder.create(JPAStoreSubsystemConfigurationBuilder.java:53)
      at org.picketlink.as.subsystem.idm.config.JPAStoreSubsystemConfigurationBuilder.create(JPAStoreSubsystemConfigurationBuilder.java:14)
      at org.picketlink.idm.config.IdentityStoresConfigurationBuilder.create(IdentityStoresConfigurationBuilder.java:128)
      at org.picketlink.idm.config.NamedIdentityConfigurationBuilder.create(NamedIdentityConfigurationBuilder.java:75)
      at org.picketlink.idm.config.IdentityConfigurationBuilder.create(IdentityConfigurationBuilder.java:147)
      at org.picketlink.idm.config.IdentityConfigurationBuilder.buildAll(IdentityConfigurationBuilder.java:112)
      at org.picketlink.as.subsystem.idm.service.PartitionManagerService.start(PartitionManagerService.java:84)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      ... 3 more

      The subsystem configuration looks like this:

      <subsystem xmlns="urn:jboss:domain:picketlink:1.0">
      <identity-management jndi-name="picketlink/JPADSBasedPartitionManager" alias="jpa.ds.based.partition.manager">
      <identity-configuration name="jpa.config">
      <jpa-store data-source="jboss/datasources/PicketLinkDatasource">
      <supportedTypes supportsAll="true"/>
      </jpa-store>
      </identity-configuration>
      </identity-management>
      </subsystem>

      This config worked under 2.6.0.Beta3, but fails under 2.6.0.CR1

              psilva@redhat.com Pedro Igor Craveiro
              sdnakhla_jira Akhbar Falafel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: