Link to home
Start Free TrialLog in
Avatar of _Esam
_Esam

asked on

How to package an EAR file for a struts, ejb, and utility module for WebSpher 6.1 using RAD 7.5.1?

Hi,
I have an application that uses struts 1.3.8 with the web module.
It also uses an ejb  module and an utility module for the ejb module.

Now when I run this application on the local test server for webspher 6.1 it runs fine.

But when I export it as an EAR module, then try to deploy it on local server, it does not run properly.
The server complaints which looks like ... the app can't find the classes for the utility module.
 
I can't seem to find out why this is the case.
Can someone shed me some light as to how to package this EAR properly so that the ejb module can find the dependent utility module so that it can be exported and then run properly?

Thanks much,
_Esam
Avatar of HonorGod
HonorGod
Flag of United States of America image

So you are trying to have a stand-alone application that allows you to connect to some EJB's on your WebSphere Application Server?

If this is the case, you need the Application Client

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/ccli_appclients.html
Avatar of _Esam
_Esam

ASKER

So you are trying to have a stand-alone application that allows you to connect to some EJB's on your WebSphere Application Server?
NO.
I did say that I am trying to export the ear file (Enterprise Application) which has a web module that uses struts, it also has an ejb module (this ejb module is within the enterprise application and it uses some java utility classes) ....

Looks like when it is exported, it can't find these utility classes which the ejb needs...
It runs run when I run from within RAD but when I export the ear and then deploy and run it .. it can't find those utility classes...

I believe I am clear...
Let me know.

Thanks.
_Esam
ok. sorry for the confusion.

When you export the EAR, does the export succeed?
ASKER CERTIFIED SOLUTION
Avatar of _Esam
_Esam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent!  Thank you so very much for sharing your solution.

Good luck & have a great day.