IBM Support

Error generating EJB Deploy code from the command line

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

[{"Product":{"code":"SSBRLP","label":"WebSphere Studio Application Developer"},"Business Unit":{"code":"BU050","label":"BU NOT IDENTIFIED"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.1.1;5.1.2","Edition":"All Editions","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"-","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

15295;487;000

Document Information

Modified date:
16 June 2018

UID

swg21195423