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..
You must be using an outdated version of jax-ws (I didn't find EffectiveAlternativeSelector in my 2.2.1 copy), but let me try.
$JAVA_HOME/lib/logging.properties
)com.sun.xml.ws.policy.EffectiveAlternativeSelector.level=OFF
java -Djava.util.logging.config.file=/path/to/your/logging.properties MainClass
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With