content="The J2EE checklist helps you identify problems that might be occurring from your EJBs, dynamic web projects or your web services applications or tools." /> content="The J2EE checklist helps you identify problems that might be occurring from your EJBs, dynamic web projects or your web services applications or tools." /> EJB troubleshooting checklist

 

EJB troubleshooting checklist

The EJB checklist presents various questions or tasks that you can go through to help determine or eliminate possible problems that are preventing you from successfully doing what you want to do within this product.

Some of the items in this checklist are merely things you should ask yourself during your troubleshooting process and some are tips or links to information you might find useful.

 

Jump to a section below that best describes what you were trying to do:

 

Useful how-to information

For a step by step topic on developing EJBs within the help: Developing enterprise beans - overview
For a redbook on EJB strategies and development see: EJB 2.0 Development with WebSphere Studio Application Developer
For a help topic on how to test the logic of your EJB applications read: Creating tests for Enterprise javabeans

 

Problems with EJB Projects

Check how you have structured your application

Check to see if you have a classpath problem

Check to see if your problem is a limitation with the specifications

 

Problems with session beans

Is this a stateless or a stateful session bean?
Is your session bean using container managed or bean managed transactions?
Are all requires resource references defined correctly?

 

Problems with container managed beans

Are you trying to deploy your EJB to the server? Go to the related help topic
Does your application use EJB query langauge (QL)?

 

Problems with mapping your CMPs

Which database are you trying to map your EJBs to?

Some EJB deploy code directly depends on the Database vendor type and Operating System that you choose.
For example, if you choose DB2 on Windows and generate the EJB deploy code, it is possible that it may fail if your intended runtime target is DB2 on z/OS. Make sure that your backend database defined for your EJB is your intented runtime database and Operating System so that when you generate the EJB deploy code it will be correct for that platform. The ideal situation is to have both development and production databases on the same platform; However, this may not be realistic so you can create multiple backends and switch between them in the EJB Deployment descriptor. Ensure that after you change your backend in the EJB Deployment descriptor that you generate the EJB deploy code again.

Verify that your database metadata files are not currupted

Verify that you have mapped your EJB to your database correctly: (The following are yes or no questions to jog your mind)

 

Problems with message-driven beans

Are Queues/Topics and their connection factories properly configured?
Are the listener ports defined?
Are the JNDI names properly specified?
Is JAAS security id specified correctly and used if required by a connection factory?

EJB App Exceptions are not thrown by MDBs as they have no client to intercept them

 

Problems with bean managed persistance EJBs

BMP EJBs are an advanced programming model. The best resources for debugging your code or learning about how to write BMPs are books on the topic. See the useful how-to information at the top of this topic for links to books.

 

Problems with deploying your EJBs

Is the datasource JNDI name correctly associated with the ejb projects or individual cmp ejbs?
Is the correct backend ID specified in the WebSphere bindings section of the EJB Deployment Descriptor?

Are transactional attributes and access intents specified in the EJB Deployment descriptor and understood?

The best source for this information is in the WebSphere Application Server information center. See this listed in the Information Centers and Libraries site

Does the generate code work correctly?

When troubleshooting ejbdeploy problems, go through the tooling first before you debug your generated code.

 

Is this a server configuration issue?

The best source for server related information is in the WebSphere Application Server information center. See this listed in the Information Centers and Libraries site . Questions you might want to ask yourself are:

Which version of the server is indicated in your console?
Is this a datasource configuration issue?
Does the server start cleanly?

 

Is this a server runtime issue?

The best source for server related information is in the WebSphere Application Server information center. See this listed in the Information Centers and Libraries site . Questions you might want to ask yourself are:

Check the Websphere Troubleshooting tips
Is this a classloading issue?
Is this a DataSource configuration issue?
Does the server start cleanly?

 

Before you call support about your EJBs

  1. Save your configuration and restart the server
  2. Create a reproducable test case
  3. Write down any error messages you are getting
  4. About calling support

Parent topic: Configuration checklist

Related tasks
Introduction to troubleshooting
Contacting IBM Software Support

Open this checklist into a new window target="_blank">Terms of use | Feedback