Glassfish: EJB container initialization failed

I wrote a small web service, and when I try to deploy it to the glass phase, I get this error: Deployment error: exception while loading the application: EJB container initialization failed. See the server.log file for more details.

@WebService(serviceName = "Mathematics") public class Mathematics { @WebMethod(operationName = "add") public double add(@WebParam(name = "a") double a, @WebParam(name = "b") double b) { return NovusMath.add(a, b); } } 

Relevant parts of server.log :

 [#|2012-02-04T21:25:45.437+0100|WARNING|glassfish3.1.1| javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=39; _ThreadName=Thread-2;|Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1.1/glassfish/domains/domain1/applications/ Mathematics-web-1.0-SNAPSHOT/WEB-INF/lib/Mathematics-lib-1.0-SNAPSHOT.jar java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1.1/glassfish/domains/domain1/applications/ Mathematics-web-1.0-SNAPSHOT/WEB-INF/lib/Mathematics-lib-1.0-SNAPSHOT.jar at java.net.URI$Parser.fail(URI.java:2827) at java.net.URI$Parser.checkChars(URI.java:3000) 

...

 [#|2012-02-04T21:25:45.906+0100|SEVERE|glassfish3.1.1| javax.enterprise.system.tools.admin.org.glassfish.deployment.admin| _ThreadID=39;_ThreadName=Thread-2;| Exception while loading the app : EJB Container initialization error javax.xml.ws.WebServiceException: WS00056 : Deployment cannot proceed as the ejb has a null endpoint address uri. Potential cause may be webservice endpoints not supported in embedded ejb case at org.glassfish.webservices.WebServiceEjbEndpointRegistry. registerEndpoint(WebServiceEjbEndpointRegistry.java:117) 

If someone tells me what I'm doing wrong, I would really appreciate it.

+7
source share
1 answer

The contents of server.log perfectly indicate that the problem occurs when trying to parse the 17th (indexing starts at 0) character

 file:/C:/Program Files/glassfish-3.1.1/glassfish/... 

It seems to be a space. This refers to a bug already fixed: GLASSFISH-17242 Your options are:

  • Glassfish update
  • avoid using a space in the way
+6
source

All Articles