ERROR - an ejb jar does not exist for the selected project and map validation cannot run


Error in ejb project -

an ejb jar does not exist for the selected project and map validation cannot run

Resolution -

Step 1 - Check the content of ejb-jar.xml and see if it is not corrupted.

Step 2 - If its fine, right click the project , go to properties -> libraries -> and see if there is any error showing up within Jar's on build path.

Step 3 - Go to the Order and Export tab and see if the source folder that contains the file ejb-jar.xml is at the top of the list.