You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
I had an application that was written back when J2SE included SAAJ, so of course it broke after upgrading from Java 8, and I grabbed jaxws-ri from Maven and put the necessary jars on the classpath and the application worked again, but with this warning:
Using deprecated META-INF/services mechanism with non-standard property:
javax.xml.soap.MetaFactory. Property javax.xml.soap.SAAJMetaFactory should be used instead.
The application calls SOAPConnectionFactory.newInstance and MessageFactory.newInstance, ultimately causing the ServiceLoader to find the META-INF/services/javax.xml.soap.MetaFactory file.
I was able to make the warning go away by modifying saaj-impl.jar, simply extracting the javax.xml.soap.MetaFactory service file, deleting it from the jar, then re-adding it under the non-deprecated name javax.xml.soap.SAAJMetaFactory. With that, my application worked fine and gave no warning, though someone more knowledgeable than I will have to judge whether that's a fully correct fix.
The text was updated successfully, but these errors were encountered:
I had an application that was written back when J2SE included SAAJ, so of course it broke after upgrading from Java 8, and I grabbed jaxws-ri from Maven and put the necessary jars on the classpath and the application worked again, but with this warning:
The application calls
SOAPConnectionFactory.newInstance
andMessageFactory.newInstance
, ultimately causing theServiceLoader
to find theMETA-INF/services/javax.xml.soap.MetaFactory
file.I was able to make the warning go away by modifying
saaj-impl.jar
, simply extracting thejavax.xml.soap.MetaFactory
service file, deleting it from the jar, then re-adding it under the non-deprecated namejavax.xml.soap.SAAJMetaFactory
. With that, my application worked fine and gave no warning, though someone more knowledgeable than I will have to judge whether that's a fully correct fix.The text was updated successfully, but these errors were encountered: