javaee / metro-jaxws-commons

Metro has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/metro-wsit/
Other
10 stars 9 forks source link

SpringService must handle getSPI(ServletModule.class) #60

Open glassfishrobot opened 14 years ago

glassfishrobot commented 14 years ago

I tried to define an mex for an STS which failed, because the reference to the token service via getSPI failed (at least that's what I think). This might be similar to issue 14.

Here's the XML fragment

which results in the following error java.lang.NullPointerException at com.sun.xml.ws.mex.server.MEXEndpoint.findEndpoint(MEXEndpoint.java:203) at com.sun.xml.ws.mex.server.MEXEndpoint.processGetRequest(MEXEndpoint.java:1 ... 28.07.2010 13:24:07 com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle Unsupported Content-Type: text/xml; charset="utf-8" Supported ones are: [application/soap+xml] com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/xml; charset="utf-8" Supported ones are: [application/soap+xml] at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:295) at ... Through debugging I found out that the method "getSPI" from the class "SpringService" (part of the JAXWS Spring Integration) returns null for the SPI. The reason seems to be that MEXEndpoint give a class reference to "ServletModule" but SpringService only checks for "Module". #### Environment Operating System: All Platform: All URL: [http://forums.java.net/jive/thread.jspa?threadID=152043&tstart=0](http://forums.java.net/jive/thread.jspa?threadID=152043&tstart=0) #### Affected Versions [current]
glassfishrobot commented 14 years ago

Reported by magir@java.net

glassfishrobot commented 14 years ago

Was assigned to kohsuke@java.net

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS_COMMONS-60