通过SOAP
将AEM
请求集成到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]