Using JARs from Enterprise Application
I've created a Enterprise Application in NWDS consisting of 2 EJB-Modules and 1 Web Module.
Therefore I've created the appropriate projects in NWDS. After deployment to WEB AS the application worked fine.
Now I'm trying to outsource some global utility classes, that should be used by all modules. Therefore I created an additional Java project and the approriate classes and put it all together in one JAR. All references are set, build in NWDS works and the EAR file contains that JAR.
But after deployment, the application fails with a NoClassDefFoundError, when one of the modules tries to access those utility classes.
Does anybody has an idea, what went wrong?
Maybe, a project of type "J2EE Server Component -> Library" is the solution. But I haven't found any documentation about this.
Help is highly appreciated. Thanks in advance!