java.lang.ClassNotFoundException : com/sun/xml/ws/policy/PolicyException
Problem
Deploying a JAX-WS web service on Tomcat, hits following error message :
java.lang.ClassNotFoundException:
com/sun/xml/ws/policy/PolicyException
Solution
The JAX-WS dependency library “policy.jar” is missing.
- Go here http://jax-ws.java.net/.
- Download JAX-WS RI distribution.
- Unzip it and copy “policy.jar” to Tomcat library folder “{$TOMCAT}/lib“.
- Restart Tomcat.
there is no any policy.jar file
How to add that to a springboot app with embedded tomcat ?
Thank you very much for that hint 🙂 You saved my hours!!