Many applications rely on third-party utility JARs for functionality. You may want to add more dependant JARs during your development process, and after you have assembled your development mode ear. In order for third-party JARs to be available to Nucleus components, they must be EAR-scoped, and should reside in the lib
directory of your Enterprise Application. Your EJB project must also be aware of them.
Note: If you add dependent JARs to the ATG-Class-Path
manifest attribute of your ATG module before generating the development EAR file, and the assembler distorts the names, causing errors in the WSAD task list.
To add dependant JARs to your ATG application:
Copy or move the necessary JAR files into your EAR project’s
lib
folder. EAR project files are stored in a folder under the WSAD workspace location (for example,C:\j2ee-workspace
).In WSAD, right click on your EAR project and select Refresh.
Navigate to the
\lib
directory of your EAR project. Your JARs should be visible.Open the EJB’s manifest file (
EJB Project/ejbmodule/META-INF/MANIFEST.MF
)Under the Dependencies section, check the JAR files you want to use.
Save the file.