Missing jar in Glassfish 3.1?
Since migrating to Glassfish 3.1, my project cant source: com.sun.xml.rpc.client.StubPropertyConstants;
. Glassfish 2.1 found this class under: 开发者_高级运维webservices-rt.jar.
Does Glassfish 3.1 bundle with this library?
You might need the jaxrpc-impl.jar
No, the class is in GlassFish 3.1 modules/webservices-osgi.jar
But you might be hitting OSGi class loading isolation, which is a good thing...
I'm not certain as to why - although, adding the JAXWS-2.1 libraries to my project by right clicking Libraries
and selected Add Library
fixed this issue. I also opened my jdk/jre/libs
dir and added an endorsed folder with webservices-api.jar
.
精彩评论