[Version 5.0.2 and later]Errors deploying enterprise beans

What kind of error are you seeing?

If neither of these errors matches the ones you are seeing:

If you do not see a problem that resembles yours, or if the information provided does not solve your problem, see Obtaining help from IBM.

WSVR0040E: addEjbModule failed for MyApp-EJB.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl] java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr

Possible causes of this error include:

  1. Security permissions are not given for the application in the installation_root\properties\server.policy file.

    Check the server.policy file to see if the security permissions are given for the application.

    Give permissions for the application in the server.policy file. For example:

    //purchaseOrder permission 
    grant codeBase "file:${was.install.root}/installedApps/myApp.ear/-"{ 
     permission java.security.AllPermission; 
     }; 
    
    where myApp.ear is the application name.

  2. A was.policy file does not exist in the application/META-INF directory, while deploying the application to the server.
    1. Check for syntax errors in the was.policy file in theapplication\META-INF directory and make sure the application ear file name is given correctly.
    2. Create a was.policy file in the EAR of the application containing the problem enterprise bean, under the application\META-INF directory with the following contents:
      // WebSphere Application Server Security Policy for the application you are running
      grant codeBase "file:myApp.ear" 
      { 
      permission java.security.AllPermission; 
      }; 
      .
      

Exception: Class must implement the inherited abstract method AnnuityHolder20BeanCacheEntry_25ce2e23.setACustEmail(String)

The following error might appear when you use the Application Server Toolkit (ASTK) to regenerate deployment code.

Description:Class must implement the inherited abstract method 
AnnuityHolder20BeanCacheEntry_25ce2e23.setACustEmail(String)
On Resource:AnnuityHolder20BeanCacheEntryImpl_25ce2e23.java
In Folder:Annuity20EJB/ejbModule/com/ibm/wssvt/tc/pli/ejb/websphere_deploy/DB2UDBNT_V72_1

This error occurs because when you regenerate the deployment code, the old code is not deleted.

To correct this problem delete the folder com.ibm.wssvt.tc.pli.ejb.websphere_deploy.DB2UDBNT_V72_1


Related tasks
Troubleshooting by task: What are you trying to do?
Troubleshooting by component: What is not working?
Related reference
Troubleshooting code deployment and installation problems



Searchable topic ID:   rtrb_ejbdepprobs
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rtrb_ejbdepprobs.html

Library | Support | Terms of Use | Feedback