Skip to main content

What URL does Glassfish deploy web service endpoints and wsdl to?

1 reply [Last post]
dwschulze
Offline
Joined: 2008-11-25
Points: 0

I have a very simple web service:

public class EventSourceService implements EventSource {

public SubscribeResponse subscribeOp(Subscribe body) { throw new UnsupportedOperationException("Not supported yet."); }

}

I build it with Maven and deploy it to glassfish. It shows a successful deploy and shows the webservice engine running it. I can't find the wsdl anywhere, however. There is nothing in the logs about a wsdl or about my class.

Is there a way to make Glassfish show me where it created the endpoint and wsdl? Tomcat shows you this, but I haven't found anything in glassfish the shows you where your wsdl is.

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dwschulze
Offline
Joined: 2008-11-25
Points: 0

The problem turned out to be the web.xml file that Maven generated for me. Maven gave me an old web.xml file with a DTD and a simple <web-app> tag. What I needed to have is this:

<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">