2 Replies Latest reply on Jun 20, 2013 8:58 AM by jaikiran

    Stuck with custom login module and principal

    simas_ch

      Hi,

       

      I'm trying to port my applicatoin from JBoss 6 to WildFly.

       

      I have a custom login module and defined it as a module.

      Authentication in the web container works fine. But when I try to get the Principal in an EJB I get a NoClassDefFoundError.

      So I thought to put the custome principal to the application. But then I get:

       

      java.lang.ClassCastException: security.ProShopPrincipal cannot be cast to security.ProShopPrincipal

       

      Whey does my application not see the ProShopPrincipal that is contained in the module?

       

      Thanks,

      Simon