0 Replies Latest reply on Nov 16, 2009 3:24 AM by atamhank

    java.lang.RuntimeException: Invalid userPermissionClass

    atamhank Newbie


      Has anyone had this issue when adding JPA security permission store to the app generated via seamgen on command line. I am getting this runtime error after adding the security to running CRUD.

      Any help or guidance will be appreciated very much.

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test2]] (main) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.persistentPermissionResolver
              at org.jboss.seam.Component.newInstance(Component.java:2144)
      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.jpaPermissionStore
              at org.jboss.seam.Component.newInstance(Component.java:2144)
      Caused by: java.lang.RuntimeException: Invalid userPermissionClass com.test2.model.UserPermission - required annotation @PermissionUser not found on any Field or Method.at org.jboss.seam.security.permission.JpaPermissionStore.initProperties(JpaPermissionStore.java:129)