Troubleshooting
Problem
This technote describes an error that can occur in WebSphere® Studio Application Developer when you are using the {Websphere_studio_install_dir}\bin\ejbdeploy.bat to generate EJB deploy code from the command line: [*Error] ejbModule/com/test/MyEjbHome.java(5): javax.ejb cannot be resolved or is not a valid superinterface [*Error] ejbModule/com/test/MyEjbHome.java(10): javax.ejb cannot be resolved (or is not an exception type) for the method create [*Error] ejbModule/com/test/MyEjb.java(8): javax.ejb cannot be resolved or is not a valid superinterface [*Error] ejbModule/com/test/MyEjb.java(9): javax.ejb cannot be resolved (or is not a valid type) for the field MyEjb.mySessionCtx [*Error] ejbModule/com/test/MyEjb.java(13): javax.ejb cannot be resolved (or is not a valid return type) for the method getSessionContext [*Error] ejbModule/com/test/MyEjb.java(14): mySessionCtx cannot be resolved [*Error] ejbModule/com/test/MyEjb.java(19): javax.ejb cannot be resolved (or is not a valid type) for the argument ctx of the method setSessionContext [*Error] ejbModule/com/test/MyEjb.java(20): mySessionCtx cannot be resolved [*Error] ejbModule/com/test/MyEjb.java(25): javax.ejb cannot be resolved (or is not an exception type) for the method ejbCreate
Log InLog in to view more of this document
Historical Number
15295;487;000
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21195423