com.sun.xml.internal.ws.spi.ProviderImpl无法转换为javax.xml.ws.spi.Provider

时间:2019-07-04 15:25:36

标签: soap osgi aem

通过SOAPAEM请求集成到OSGI bundle中时,我得到com.sun.xml.internal.ws.spi.ProviderImpl无法转换为javax.xml.ws.spi.Provider异常,而运行相同的代码在独立项目中很好。

尝试与bootdelegation一起玩但没用

Caused by: javax.xml.ws.WebServiceException: Unable to createEndpointReference Provider
    at javax.xml.ws.spi.Provider.provider(Provider.java:100) [:0.0.0]
    at javax.xml.ws.Service.<init>(Service.java:112) [:0.0.0]
    My project lines
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.sling.models.impl.ModelAdapterFactory.invokePostConstruct(ModelAdapterFactory.java:972) [org.apache.sling.models.impl:1.4.10]
    at org.apache.sling.models.impl.ModelAdapterFactory.createObject(ModelAdapterFactory.java:772) [org.apache.sling.models.impl:1.4.10]
    ... 240 common frames omitted
Caused by: java.lang.ClassCastException: com.sun.xml.internal.ws.spi.ProviderImpl cannot be cast to javax.xml.ws.spi.Provider
    at javax.xml.ws.spi.Provider.provider(Provider.java:96) [:0.0.0]

0 个答案:

没有答案