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
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]
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