users@glassfish.java.net

java.lang.IllegalArgumentException: prefix xsd is not bound to a namespace

From: Hess Yvan <Yvan.Hess_at_imtf.ch>
Date: Mon, 27 Aug 2007 13:24:20 +0200

I have a very simple webservice defined as follow:
 
@Stateless( name="Ping", mappedName="ulysse/Ping")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@WebService(name="PingService", serviceName = "ulysse",targetNamespace =
"http://www.imtf.com/hypersuite/ulysse")
public class PingBean implements Ping
{
    @WebMethod
    @WebResult(targetNamespace =
"http://www.imtf.com/hypersuite/ulysse", partName = "return")
    public String ping( @WebParam(name = "msg", partName = "msg") String
msg)
    {
        System.out.println ("[PingBean] ping method called !");
        return "[PingBean] ping: " + msg;
    }
}
 
when I tried to call it, from XMLspy for example, using the following
request (see below) I got an exception into the server.log
"java.lang.IllegalArgumentException: prefix xsd is not bound to a
namespace" (see below). This webservice was deployed to a JBOSS server
and was working fine. Now I am migrating on glassfish V2 M1 and it
doesn't work. Any idea of the problem....I am a little bit lost. It
seems that if I replace the "xsd:string" of my soap call by "string" it
is working. Where is the problem ?
 
Thanks in advance for your help. Yvan Hess
 
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <m:ping xmlns:m="http://www.imtf.com/hypersuite/ulysse">
         <msg xsi:type="xsd:string">String</msg>
      </m:ping>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
[#|2007-08-27T13:17:14.260+0200|WARNING|sun-appserver9.1|javax.enterpris
e.resource.webservices.jaxws.wstx|_ThreadID=22;_ThreadName=httpSSLWorker
Thread-8080-0;_RequestID=0ef886b6-aa4a-40bb-8c74-beba408ba542;|WSTX-SERV
ICE-5015: Handling exception to complete JTA transaction created by
WS-TX service handler
java.lang.IllegalArgumentException: prefix xsd is not bound to a
namespace
 at
com.sun.xml.bind.DatatypeConverterImpl._parseQName(DatatypeConverterImpl
.java:340)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.XsiTypeLoader.parseXsiType(XsiT
ypeLoader.java:89)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.XsiTypeLoader.startElement(XsiT
ypeLoader.java:67)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyL
oader.java:55)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElem
ent(UnmarshallingContext.java:449)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startEleme
nt(UnmarshallingContext.java:427)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElemen
t(InterningXmlVisitor.java:71)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStart
Element(StAXStreamConnector.java:275)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAX
StreamConnector.java:209)
 at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unm
arshallerImpl.java:358)
 at
com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120)
 at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233)
 at
com.sun.xml.ws.server.sei.EndpointArgumentsBuilder$RpcLit$PartBuilder.re
adRequest(EndpointArgumentsBuilder.java:632)
 at
com.sun.xml.ws.server.sei.EndpointArgumentsBuilder$RpcLit.readRequest(En
dpointArgumentsBuilder.java:598)
 at
com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHan
dler.java:243)
 at
com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.j
ava:93)
 at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
 at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
 at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
 at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
 at
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl
.java:106)
 at
com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java
:147)
 at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.ja
va:115)
 at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
 at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
 at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
 at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
 at
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl
.java:106)
 at
com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:317)
 at
com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(Co
mmonServerSecurityPipe.java:218)
 at
com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonSer
verSecurityPipe.java:129)
 at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.ja
va:115)
 at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
 at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
 at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
 at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
 at
com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
 at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter
.java:444)
 at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
 at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapt
er.java:135)
 at
com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Messa
geDispatcher.java:113)
 at
com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDi
spatcher.java:87)
 at
com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint
(EjbWebServiceServlet.java:200)
 at
com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebService
Servlet.java:129)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
 at
com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:1
14)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:206)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:150)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
 at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
 at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:268)
 at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdap
ter(DefaultProcessorTask.java:637)
 at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
DefaultProcessorTask.java:568)
 at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(De
faultProcessorTask.java:813)
 at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcesso
rTask(DefaultReadTask.java:339)
 at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:261)
 at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:212)
 at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
 at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWork
erThread.java:106)
|#]