Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
SystemAdmin
SystemAdmin
1479 Posts
ACCEPTED ANSWER

Pinned topic Websphere 6.1 migration for EJB does shows CHKJ2470E: This method must return EJB 2.0: 7.10.5

‏2007-08-11T15:05:59Z |
I am trying to deploy EJB2.1 using the websphere commandline deployment tool.
The below is the error ..

*Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSessionBean.class(Method: processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSessionBean): CHKJ2456W: This method should throw com.statestreet.sle.framework.util.errhandling.SLCWException for com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession or there may be compile errors in the deployment code.
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSessionBean.class(Method: processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSessionBean): CHKJ2456W: This method should throw com.statestreet.sle.framework.util.errhandling.SLCWException for com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession or there may be compile errors in the deployment code.
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2404W: Application exception SLCWException must extend java.lang.Exception (EJB 2.0: 18.1.1, 18.2.1).
exec *Error ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2470E: This method must return com.statestreet.sle.tes.availtrade.data.AvailTradeResponseData (EJB 2.0: 7.10.5).
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2471W: This method must throw com.statestreet.sle.framework.util.errhandling.SLCWException (EJB 2.0: 7.10.5).
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2433W: Cannot validate processAvailTrdRequest(com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData,com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper) because com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData cannot be reflected. Check the classpath.
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2404W: Application exception SLCWException must extend java.lang.Exception (EJB 2.0: 18.1.1, 18.2.1).
exec *Error ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2470E: This method must return com.statestreet.sle.tes.availtrade.data.AvailTradeResponseData (EJB 2.0: 7.10.5).
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2471W: This method must throw com.statestreet.sle.framework.util.errhandling.SLCWException (EJB 2.0: 7.10.5).
exec Removing ModuleCore Validator messages on wldlinkejb has started... Messages removed. Validation of wldlinkejb by ModuleCore Validator has started... Validation of wldlinkejb by ModuleCore Validator is complete. All known probl Removing WebSphere EJB Extensions Validator messages on wldlinkejb has starte Messages removed. Validation of wldlinkejb by WebSphere EJB Extensions Validator has started... Validation of wldlinkejb by WebSphere EJB Extensions Validator is complete. A Removing EJB Validator messages on wldlinkejb has started... Messages removed. Validation of wldlinkejb by EJB Validator has started... Validating com.statestreet.sle.wld.pool.ejb.PoolRestrictionCallBean. Validating com.statestreet.sle.wld.pool.ejb.PoolRestrictionCall. Validating com.statestreet.sle.wld.pool.ejb.PoolRestrictionCallHome. Validating com.statestreet.sle.esi.negotiation.ejb.WeblendCallBean. Validating com.statestreet.sle.esi.negotiation.ejb.WeblendCall. Validating com.statestreet.sle.esi.negotiation.ejb.WeblendCallHome. Validating com.statestreet.sle.wld.update.ejb.WeblendDMLTradeUpdateBean. Validating com.statestreet.sle.wld.update.ejb.WeblendDMLTradeUpdate. Validating com.statestreet.sle.wld.update.ejb.WeblendDMLTradeUpdateHome. Validation of wldlinkejb by EJB Validator is complete. All known problems hav Removing XML Validator messages on wldlinkejb has started... Messages removed. Validation of wldlinkejb by XML Validator has started... /wldlinkejb/ejbModule/META-INF/ejb-jar.xml Validation of wldlinkejb by XML Validator is complete. All known problems hav Removing Map Validator messages on wldlinkejb has started... Messages removed. Validation of wldlinkejb by Map Validator has started... Validation of wldlinkejb by Map Validator is complete. All known problems hav *Warning ImportedClasses/com/statestreet/sle/wld/update/ejb/WeblendDMLTradeUpdate.class(Method: updateDMLData(com.statestreet.sle.oir.idm.data.LoanRequestConfirmationData), Class: com.statestreet.sle.wld.update.ejb.WeblendDMLTradeUpdate): CHKJ2433W: Cannot validate updateDMLData(com.statestreet.sle.oir.idm.data.LoanRequestConfirmationData) because com.statestreet.sle.oir.idm.data.LoanRequestConfirmationData cannot be reflected. Check the classpath.
exec *Warning ImportedClasses/com/statestreet/sle/tes/availtrade/ejb/AvailTradeSession.class(Method: processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData), Class: com.statestreet.sle.tes.availtrade.ejb.AvailTradeSession): CHKJ2433W: Cannot validate processAvailTrdRequest(com.statestreet.sle.aaa.signon.data.SessionUserData,com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData) because com.statestreet.sle.aaa.signon.data.SessionUserData cannot be reflected. Check the classpath.
exec Shutting down workbench.
exec Execution Halted: Validation Errors Reported
exec 2 Errors, 8 Warnings, 0 Informational Messages

I am attaching my Remote and Bean file.. The depoyment on WAS5 does not show this error . But WAS6.1 shows the error .. Kindly help..
Below is the Remote interface

package com.statestreet.sle.tes.availtrade.ejb;

import com.statestreet.sle.aaa.signon.data.SessionUserData;
import com.statestreet.sle.tes.availtrade.data.AvailTradeSearchData;
import com.statestreet.sle.framework.util.errhandling.SLCWException;
import com.statestreet.sle.tes.availtrade.data.AvailTradeResponseData;
import com.statestreet.sle.tes.availtrade.util.AvailTradeSignonBrokerRulesHelper;
/**
* This is an Enterprise Java Bean Remote Interface
*/
public interface AvailTradeSession extends javax.ejb.EJBObject {

public AvailTradeResponseData processAvailTrdRequest(
AvailTradeSearchData argSearchData,
AvailTradeSignonBrokerRulesHelper argSgnBrkRulesHelper)
throws SLCWException, java.rmi.RemoteException;
public AvailTradeResponseData processAvailTrdRequest(
SessionUserData argUserData,
AvailTradeSearchData argSearchData)
throws SLCWException, java.rmi.RemoteException;
}
The Bean class implements the above business methods with the exact return type..