开发者

Missing jar in Glassfish 3.1?

开发者 https://www.devze.com 2023-02-28 19:00 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消