Skip to main content

@WebService and @Stateless not showing endpoint in GlassFish 4.0

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
agoncal
Offline
Joined: 2005-04-10

Hi all,

I wrote two very basic SOAP Web Services (
https://github.com/agoncal/agoncal-sample-jaxws/tree/master/01-EndPoints) :
one using a servlet endpoint and another one using an EJB endpoint :

*@WebService*
public class HelloServletEndpoint {

public String saySomethingServlet(String something) {
return "The HelloServletEndpoint is saying : " + something;
}
}

*@WebService*
*@Stateless*
public class HelloEJBEndpoint {

public String saySomethingEJB(String something) {
return "The HelloEJBEndpoint is saying : " + something;
}
}

I've packaged them in a war file and deployed the war into a GlassFish 4.0
instance (a full profile). When I check the admin console, I can view the
servlet endpoint (test it and see the generated WSDL) but it does not work
with the EJB endpoint (see the attached image).

Because JAX-WS is not part of the Web Profile I'm wondering if I need to
package this into an ear file... Any idea of what's happening ?

Thanks

--
Antonio Goncalves
Software architect and Java Champion

Web site |
Twitter
| LinkedIn | Paris
JUG
| Devoxx France