3 Replies Latest reply on Apr 19, 2012 11:09 AM by wolfgangknauf

    Jboss EJB Client missing LoginModule

    mreinhardt

      I've got a problem with my EJB client under JBoss AS 7.1. I'm getting the following error:

       

      Caused by: javax.security.auth.login.LoginException: Die Anmeldemodulklasse kann nicht gefunden werden: org.jboss.security.ClientLoginModule
          at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
          at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
          at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      

       

      Any ideas what's missing?

        • 1. Re: Jboss EJB Client missing LoginModule
          wolfgangknauf

          Hi Martin,

           

          I assume you use a "standalone ejb client app" (not e.g. a web app which tries to access an EJB)?

           

          How do you start your ejb client app? I assume it is "app-client.bat" or "app-client.sh"?

          If you already use this approach, then please post more details about your app (e.g. config).

           

          Best regards

           

          Wolfgang

          • 2. Re: Jboss EJB Client missing LoginModule
            mreinhardt

            I'm using the jboss-client-7.1.0.Final.jar from an Java class

            • 3. Re: Jboss EJB Client missing LoginModule
              wolfgangknauf

              Hi,

               

              the easiest way around your error is to find the JAR which contains "org.jboss.security.ClientLoginModule".

               

              But I recently learned that the suggested way to start a standalone ejb client application is to use the script "appclient.bat / .sh"  in your JBoss "bin" directory. Launch the script this way:

               

              "%JBOSS_HOME%\appclient.bat MyApp.ear#MyApplicationClient.jar"

               

              This should provide you with all necessary JBoss libraries, and enhanced features like EJB injection will also work.

               

              Note that "appclient.bat" will not work in JBoss 7.1.1, you need a snapshot of 7.1.2. If interested read this thread: https://community.jboss.org/thread/195232 (only the second part of it contains "relevant" information ;-)).

               

              Hope this helps

               

              Wolfgang