Skip to main content

Weird error deploying EJB on Glassfish 3.1

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-01-14


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

The content of the descriptor is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-ejb-app PUBLIC "-// GlassFish Application Server 3.1 EJB 3.1//EN" "">


serverlog.txt5.99 KB
MyEJB1.jar785 bytes
MyEJB2.jar1.08 KB