The last step is to define a utility JAR for your Enterprise Application. A WSAD Utility project takes the output build directory of the chosen project, and jars it up into the file name specified when you run your application.
To create your Utility project for the lib/classes.jar
file:
Open the EAR Deployment Descriptor of you EAR project by expanding your EAR project.
Click the Module tab.
Under Project Utility JARs, select Add….
In the dialog box, select your Java project, and type in the name of the JAR file to be created. In this example it is
lib/_HelloWorld_slib_sclasses.jar
.Note: You must type the URI exactly as specified in the EJB’s Manifest classpath. Notice that the forward slashes have been become underscores. You can find the EJB manifest under the
EJB Project/ejbmodule/META-INF/MANIFEST.MF
to verify the name of this JAR.Click Finish.
Any error in your Tasks console regarding an unresolved reference to lib/_HelloWorld_slib_sclasses.jar
should disappear.