An EJB Exception:The user-provided class "XXXX" needed by the EnterpriseBean could not be found or l...

----------

Problem:
----------
After delpoy an EJB application to Websphere server 7, there was an exception: "The user-provided class "XXXX" needed by the EnterpriseBean could not be found or loaded."
 
----------
Cause:
----------
this problem occurs because the stub/skeleton files of the EJB are no more compatable with the other code.If you do not regenerate the RMIC code every time you change either classes that are called inside the EJB, you get this problem, in some extreme cases delete the stub and skeleton classes for the EJB and generate them again, this should totally remove exception you are getting.
 
----------
Solution:
----------
1) Deploy your EJB.Jar from your ear file separately in WAS. This will generate deployment code in your EJB.jar.
2) Take the deployed EJB.Jar and put it in your original .ear file, overwriting the original EJB.Jar.
3) Now start up the .ear file and it should work.
 
----------
Note:
----------
"Deploy" the EJB in RAD7:
1. Select the EJB Project in the J2EE perspective view;
2. Righ-click on the EJB project;
3. Select "Prepare for preparement" in the context menu;
 
----------
Reference:
----------

转载于:https://www.cnblogs.com/zjun/archive/2012/02/14/2351175.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值