[Version 5.0.2 and later]Errors deploying enterprise beans

What kind of error are you seeing?

If this error does not match what you are seeing:

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; 
      }; 
      .
      


Related tasks
Troubleshooting by task: What are you trying to do?



Searchable topic ID:   rtrb_ejbdepprobs
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/rtrb_ejbdepprobs.html

Library | Support | Terms of Use | Feedback