I use jaxws 2.2.3 and Jboss 5.1 with JDK 6.
When calling ws client, I get
java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider
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
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
I couldn't play with JBoss libraries, because there are JBoss instances which don't belong to me and I know nothing about them.