【发布时间】:2011-10-20 21:08:52
【问题描述】:
我在 JDK 6 中使用 jaxws 2.2.3 和 Jboss 5.1。
调用ws客户端时,我得到
java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider org.jboss.ws.core.jaxws.spi.ProviderImpl not found (see full stack trace below)
当我从 jboss/lib/endorsed 中删除库 jbossws-native-*.jar 时,一切正常。但他们必须在那里。
我试图告诉 jboss 使用 com.sun.xml.ws.spi.ProviderImpl:
- META-INF/services/javax.xml.ws.spi.Provider
- -Djavax.xml.ws.spi.Provider
-
首先阅读我的库 WEB-INF/jboss-classloading.xml
<classloading xmlns="urn:jboss:classloading:1.0" parent-first="false" domain="DefaultDomain" top-level-classloader="true" parent-domain="Ignored" export-all="NON_EMPTY" import-all="true"> </classloading>
运气不好。我花了一整天的时间,我不知道。
请帮帮我。
【问题讨论】:
标签: jax-ws classloader jboss5.x