I'm using netbeans to generate web service client in my application. And my program using jax-ws library to set timeout in calling web service.
Problem arise because it generate a lot of this warning message whenever i start this program.:
Dec 13, 2010 4:35:21 PM [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives WARNING: WSP0075: Policy assertion "{http://schemas.xmlsoap.org/ws/2004/10/wsat}ATAlwaysCapability" was evaluated as "UNKNOWN".
Dec 13, 2010 4:35:21 PM [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives WARNING: WSP0075: Policy assertion "{http://schemas.xmlsoap.org/ws/2004/10/wsat}ATAssertion" was evaluated as "UNKNOWN".
Dec 13, 2010 4:35:21 PM [com.sun.xml.ws.policy.EffectiveAlternativeSelector] selectAlternatives WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
I found the same problem with mine in here: http://forums.java.net/node/707265 , but it also have no answer until now.
Is there any way to hide this warning? I try to search using google, and can't find any match answer for this problem..
My guess is that the WSDL from which the client was generated contains policy assertions related to WS-AtomicTransaction. Since WS-AtomicTransaction requires a transaction manager and the JRE doesn't contain one, it's not surprising that the JAX-WS runtime in the JRE has no support for WS-AtomicTransaction and doesn't understand these policy assertions.
If you don't need WS-AtomicTransaction, then you have two options to get rid of these warnings:
If you need WS-AtomicTransaction, then you will probably have to run the code in an application server or as a Java EE application client.