Weird error deploying EJB on Glassfish 3.1
I've came across an NPE deploying an EJB project depending on whether the glassfish-ejb-jar.xml descriptor is present in the jar file. Removing the descriptor file from the project, the EJB is deployed successfully.
I've attached the server.log file from Glassfish 3.1.2. Also I've attached the EJB jar files where the MyEJB1.jar doesn't contain the descriptor and MyEJB2.jar that it does. The exception is thrown when I attempt to deploy MyEJB2.jar with the descriptor file. Does anybody knows how to solve the problem?.
This is happening to me when I updated the Eclipse plugin GlassFish Tools 126.96.36.199305291930
The content of the descriptor is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-ejb-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 EJB 3.1//EN" "http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd">