问题描述
我将jaxws 2.2.3和Jboss 5.1与JDK 6一起使用。
I use jaxws 2.2.3 and Jboss 5.1 with JDK 6.
调用ws客户端时,我得到
When calling ws client, I get
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 /背书的库中删除jbossws-native-*。jar库时,一切正常。但是它们必须在那里。
When I remove libs jbossws-native-*.jar from jboss/lib/endorsed everthing works fine. But they must be there.
我试图告诉jboss使用com.sun.xml.ws.spi.ProviderImpl:
I tried to tell jboss to use com.sun.xml.ws.spi.ProviderImpl:
- META-INF / services / javax.xml.ws.spi.Provider
- -Djavax.xml.ws.spi.Provider
-
首先阅读我的库WEB-INF / jboss-classloading.xml
- META-INF/services/javax.xml.ws.spi.Provider
- -Djavax.xml.ws.spi.Provider
to read first my libs 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>
没有运气。我花了整整一整天,我不知道。
No luck. I spent whole day with this and I have no idea.
请帮助我。
推荐答案
我为jboss创建了认可的库实例-/ jboss / server // lib /认可并复制了以下jar:
I created endorsed libs for jboss instance - /jboss/server//lib/endorsed and copied these jars:
jaxws-api-2.2.3.jar
jaxws-rt-2.2.3.jar
jaxws-spring-1.8.jar
policy-2.2.2.jar
在启动文件中我添加了:
in my startup file I added:
set PRIVATE_ENDORSED_DIRS=%JBOSS_HOME%\server\portal_V1\lib\endorsed
然后在run.bat中运行:
then in run.bat:
if "x%PRIVATE_ENDORSED_DIRS%" == "x" (
set "JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed"
) else (
set "JBOSS_ENDORSED_DIRS=%PRIVATE_ENDORSED_DIRS%;%JBOSS_HOME%\lib\endorsed"
)
REM set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed
我无法使用JBoss库,因为存在JBoss实例不属于我,对他们一无所知。
I couldn't play with JBoss libraries, because there are JBoss instances which don't belong to me and I know nothing about them.
这篇关于找不到ProviderImpl Jboss 5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!