I am running Jax-WS Metro Patch 3.2.0 GA on my JBOSS 5.x server. I am trying to connect to a SharePoint webservice using an Eclipse created client. When I run my code, it fails at the service creation line:
Lists service = new Lists(url, new QName("http://schemas.microsoft.com/sharepoint/soap/", "Lists"));
with the error:
java.lang.Exception: Error: javax.xml.ws.WebServiceException: Unable to create Provider: com.sun.xml.ws.spi.ProviderImpl cannot be cast to javax.xml.ws.spi.Provider
BTW, the same code runs fine as JUnit test and I am able to see it write items to the SharePoint List so it has to be when I run it on the JBoss server.
Any clue what's happening here?