Endpoint not registering
blinder Jan 13, 2010 4:36 PMhaving a bit of a problem getting a web service to work. (using jboss as 5.0.1 ga on mac os x)
i have a simple pojo, with the @WebService annotion, and a very simple method annotated with the @WebMethod annotation. my web.xml simply defines a servlet who's class points to my pojo (as per the specification for jax-ws)
now, when i go to deploy the war, jboss deploys it, but the endpoint is never rigistered, and i never see the console output that the wsdl is being published. my console simply ends with:
16:16:56,507 INFO [TomcatDeployment] deploy, ctxPath=/my-war
i've been all over google, but my google-fu is failing me here. i can't seem to figure out what would be preventing jboss from identifying this as a web service.
my implementation class:
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class TestService {
@WebMethod
public String echo (String message) {
return "I was told to tell you this: " + message;
}
}
and here's my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>alico-fs-ws</display-name>
<servlet>
<servlet-name>foobar</servlet-name>
<servlet-class>com.foo.services.TestService</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>foobar</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
</web-app>
i am most likely doing something dumb, and i'm really tired and blah blah, i just can't see it. so, anyone see what i'm missing?
(btw, the editor in this forum is painful, truly and completely painful)