Class Not Found from EJB JAR in deployments

20 views
Skip to first unread message

Arnie Morein

unread,
May 5, 2026, 11:54:15 AMMay 5
to WildFly
Greetings all, class loader question.

I have a small EJB JAR (ldap-auth.jar) that is supposed to provide simple user authentication and authorization for applications.

It has a single EJB that does all the JNDI work. The caller must supply a cargo object and get it back (modified). Custom exceptions can be thrown.

I have the jar in the deployments folder and at the injection point, the JNDI look up appears to be working.

However, the class where the injection is supposed to happen is throwing a CNFE for one of the custom exception classes that is in the JAR.

So I can look up an EJB but despite the fact that I have:

<module name="deployment.ldad-auth.jar" export="true" services="import" />

in the jboss-deployment-structure.xml file, the classes from said deployment are NOT apparently on the app's class path?

Reply all
Reply to author
Forward
0 new messages