0 Replies Latest reply on Aug 6, 2013 3:48 PM by sdnakhla

    java.lang.NoClassDefFoundError: org/picketlink/idm/config/StoreConfiguration

    sdnakhla

      I'm beginning to migrate my Seam 2.3 app over to JavaEE 6, and as part of that will be using PicketLink 2.5.0 and PicketBox 5.0 for security, particularly the IDM component.  I'm trying to make use of the JPA Identity Store, and have created my own entities with the appropriate annotations.  However, when I attempt to add a user, I get the following exception:

       

         

      java.lang.NoClassDefFoundError: org/picketlink/idm/config/StoreConfiguration

       

      I've looked in the JAR files, and sure enough I don't see this object.  I'm using PicketBox 5.0.  Is this a known issue with this combination of PicketLink and PicketBox?  Is there something I'm doing wrong?  Is this object located in a different JAR?  The code to create my user looks like this:

       

       

        

      ConfigurationBuilder builder = new ConfigurationBuilder();

          builder.identityManager().jpaStore();

       

          PicketBoxConfiguration config = builder.build();

          DefaultPicketBoxManager picketBoxManager = new DefaultPicketBoxManager(

                  config);

       

          picketBoxManager.start();

       

          EntityManagerPropagationContext.set(this.entityManager);

       

          IdentityManager idm = picketBoxManager.getIdentityManager();

       

              SimpleUser user = new SimpleUser("testuser");

              idm.add(user);

              System.out.println("User added");