• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JNDI lookup from LoginModule class

Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,

I'm writing my own implementation of JAAS' LoginModule class. I have packaged this class in a jar file and added this jar as an application client module of my EAR.
When I try to deploy my application I get the following error:

org.jboss.deployment.DeploymentException: Failed to setup client ENC; - nested throwable: (org.jboss.deployment.DeploymentException: Failed to resolve ejb-link: SignonEJB make by ejb-name: ejb/SignonEJB)

Here is my ejb-ref element in my application-client.xml:


I haven't created an ejb-jar.xml because I'm using annotations, but here is my jboss.xml

The SignonEJB is ejb module of my ear.

I'm not sure if MyLoginModule class needs to be an application client. I just need it to be able to find the SignonEJB, so I'm guessing it needs to have an ENC, right?
Is there a better way to implement this?

I'd be very greatful if anyone could help me with this.
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic