-
1. Re: Jboss EJB Client missing LoginModule
wolfgangknauf Apr 19, 2012 5:02 AM (in response to mreinhardt)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 Apr 19, 2012 9:30 AM (in response to wolfgangknauf)I'm using the jboss-client-7.1.0.Final.jar from an Java class
-
3. Re: Jboss EJB Client missing LoginModule
wolfgangknauf Apr 19, 2012 11:09 AM (in response to mreinhardt)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