Я пишу веб-сервис, используя JAX-WS, netbeans 7.0 и glassfish-3.1.1.Я пытаюсь отправить SOAPHandler на свой веб-сервис, используя @HandlerChain:
package ws;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.HandlerChain;
@WebService(serviceName = "ServerInfo", portName="ServerInfoPort")
@HandlerChain(file="handler-chain.xml")
public class ServerInfo {
@WebMethod(operationName="getServerName")
public String getServerName()
{
return "test server";
}
}
handler-chain.xml:
<handler-chains 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">
<handler-chain>
<handler>
<handler-name>ws.SoapMessageHandler</handler-name>
<handler-class>ws.SoapMessageHandler</handler-class>
</handler>
</handler-chain>
</handler-chains>
, но в журналах напечатайте Glassfish:
SEVERE: component referenced from annotation symbol cannot be found
symbol: javax.jws.HandlerChain
location: class ws.ServerInfo
Помоги мне !!!Пожалуйста!