Do not use on any
shared computer
July 25, 2008 03:14pm pdt
null
[x]
Attachment Details

Adding external JAR's to an EJB and deploying as a EAR

Tags: Websphere, RAD6, J2EE, IE, Classnotfound exception
I have tried the following in order to add external jar's to my EJB but I get a runtime exception saying class not found or class method does not exist.

1) First I added the xxx.jar as external jar's from the EJB properties build path (This helps avoiding compilation errors).

2) Then I added the xxx.jar under EAR Utility JAR's by importing them as external jars.

3) Then I updated the manifest.mf of the EJB with Class-Path: xxx.jar

4) EJB deploys fine but throws a run time exception saying it is unable to find the classes in the xxx.jar file.

Note: Please provide settings in RAD6 envi.
Any help would be appreciated.
Thanks.

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: nskmore
Question Asked On: 04.23.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by TomasHelgi
Expert Comment by TomasHelgi:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by umitcan
Expert Comment by umitcan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628