Welcome to the IBM Websphere Commerce Hub


Welcome to the IBM Websphere Commerce Hub

Come join me in my journey to explore the various features and capabilities of IBM Websphere Commerce and understand how retailers can benefit from its really cool out-of-box functionality.

Tuesday, May 22, 2012

RESOLVED : An EJB JAR does not exist for the selected project and Map Validation cannot run

Issue:

1. Incase if you ever see the below error in the "Problems" tab of the RAD -
    "An EJB JAR does not exist for the selected project and Map Validation cannot run"
2. The Deployment Descriptor file is not seen/found in the "WebsphereCommerceServerExtensionData" project
3. Clicking on the Map.mapxmi , the file does not open and an error is displayed "The ejb or database is nor defined in the ejb-jar.xml"

Resolution:

It is implicitly assumed in RAD 6 that the source folder which contains the deployment descriptor xml file (DD) should be the FIRST source folder of the project. Otherwise the DD cannot be found.

So, the solution for this problem is to put the folder that contains the deployment descriptor at the top of the Order and Export list in the Project Properties. Then the DD can be found.

So, move the folder "WebsphereCommerceServerExtensionData/ejbModule" to the top in the Order/Export list in the Project Properties.

Incase you do not find that folder in the list , use the following steps to create the new folder -

  1. Open RAD and create a new EJB project
  2. Right click on the Project in Project Explorer, and choose: Properties
  3. Select Java Build Path
  4. Go to the Source tab
  5. Click Add Folder...> Create New Folder...
  6. Go to Order and Export, move the new folder upwards so that it is found at the top of the list.
  7. Press OK to close the properties View
  8. Run Project > Clean (followed by Build Automatically)
  9. Check the Problems view; you will see the above errors

 

No comments:

Post a Comment