Skip to main content

EJB dependency library not found during server start-up

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
hordine
Offline
Joined: 2008-10-18

I've deployed an EJB module to Glassfish 2.1 and declared a library, which is located in the lib/applibs dir, as its dependencies. I deploy it using asadmin and the --libraries option to declare the dependency library.

That works during deployment of the EJB module. The classes from that library can be found without any problem.

But when I start Glassfish up, I get a NoClassDefFoundError about a class in this library.

Why do I get this error during startup and how can I fix it?

Thanks in advance.
Henrique