First you need to pack your ejbs and other components as an ear. You also need to add the common library (let�s say its name is commons.jar) to the same ear. Just for simplicity let�s assume that the commons.jar library is in the ear�s root. Then all you need to do is to change the manifest files for all your ejb jars that use this common library, adding a line like this:
Hi Premil: You need to add the third party libraries to your classpath as external jar files.
If you are using WSAD : do as follows 1.)Right click on your project-->select Properties 2.)Pop-up window opens ---select Java build path on left side. On right side go to Libraries tab ---->Click on Add External Jars to add the jar file you needed.
You can directly go to your classpath file and edit it by adding the path for Jar files you needed for your project.