users@glassfish.java.net

com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "soapenv

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Apr 2009 01:31:08 PDT

I develop a metro webservice in windows Xp with galasfish 9.1_02 (build b04-fcs) and all is ok
I move the webservice to a unix machine with solaris and glasfish
9.0_01 (build b02-p01)
and dosent work

may someone help me?

 ant run
Buildfile: build.xml

run:
     [java] ---[HTTP request - http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService]---
     [java] Content-type: text/xml;charset="utf-8"
     [java] Soapaction: ""
     [java] Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
     [java] <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:test xmlns:ns2="http://server.ws.sfe.tirea/"/></S:Body></S:Envelope>--------------------
     [java] ---[HTTP response - http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService - 200]---
     [java] null: HTTP/1.1 200 OK
     [java] Content-type: text/xml;charset=utf-8
     [java] Content-length: 19
     [java] Server: Sun Java System Application Server Platform Edition 9.0_01
     [java] X-powered-by: Servlet/2.5
     [java] Date: Thu, 23 Apr 2009 07:59:18 GMT
     [java] Soapaction: ""
     [java] <soapenv:Envelope/>--------------------
     [java] com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "soapenv"
     [java] at [row,col {unknown-source}]: [1,19]
     [java] at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:292)
     [java] at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:191)
     [java] at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:94)
     [java] at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:116)
     [java] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
     [java] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
     [java] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
     [java] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
     [java] at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
     [java] at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:160)
     [java] at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
     [java] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
     [java] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
     [java] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
     [java] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
     [java] at com.sun.xml.ws.client.Stub.process(Stub.java:222)
     [java] at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
     [java] at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
     [java] at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
     [java] at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
     [java] at $Proxy37.test(Unknown Source)
     [java] at tirea.sfe.ws.client.ServerClient.main(Unknown Source)
     [java] Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "soapenv"
     [java] at [row,col {unknown-source}]: [1,19]
     [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:267)
     [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:95)
     [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:110)
     [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:100)
     [java] at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:175)
     [java] at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:303)
     [java] at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:129)
     [java] at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:287)
     [java] ... 21 more
     [java] Caused by: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "soapenv"
     [java] at [row,col {unknown-source}]: [1,19]
     [java] at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
     [java] at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:467)
     [java] at com.ctc.wstx.sr.NsInputElementStack.resolveAndValidateElement(NsInputElementStack.java:368)
     [java] at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2945)
     [java] at com.ctc.wstx.sr.BasicStreamReader.handleRootElem(BasicStreamReader.java:2093)
     [java] at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2073)
     [java] at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
     [java] at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
     [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)
     [java] ... 27 more

BUILD SUCCESSFUL
Total time: 17 seconds

More information

sever.log :

[#|2009-04-23T10:16:38.918+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy] Selecting file /var/opt/SUNWappserver/domains/sfe/autodeploy/wspvTirea.war for autodeployment.|#]

[#|2009-04-23T10:16:43.580+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.ejb|_ThreadID=14;_ThreadName=Timer-4;|wsgen successful|#]
[#|2009-04-23T10:16:43.586+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=14;_ThreadName=Timer-4;|LDR5202:Exception in EJBClassLoader
java.io.IOException: Nombre de archivo demasiado largo
        at java.io.UnixFileSystem.canonicalize0(Native Method)
        at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:157)
        at java.io.File.getCanonicalPath(File.java:559)
        at com.sun.enterprise.loader.EJBClassLoader$1.run(EJBClassLoader.java:418)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.loader.EJBClassLoader.findResource0(EJBClassLoader.java:391)
        at com.sun.enterprise.loader.EJBClassLoader.findResource(EJBClassLoader.java:467)
        at java.lang.ClassLoader.getResource(ClassLoader.java:977)
        at java.lang.ClassLoader.getResource(ClassLoader.java:972)
        at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
        at com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:782)
        at com.sun.xml.rpc.spi.JaxRpcObjectFactory.newInstance(JaxRpcObjectFactory.java:131)
        at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.<init>(JaxRpcRICodegen.java:120)
        at com.sun.enterprise.webservice.codegen.JaxRpcCodegenFactory.getAdapter(JaxRpcCodegenFactory.java:50)
        at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:839)
        at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)
        at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:413)
        at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
        at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:1189)
        at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:179)
        at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:534)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:413)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:358)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
|#]

[#|2009-04-23T10:16:43.646+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;Servlet;SerClientImpl;http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService;|DPL5306:Servlet Web Service Endpoint [SerClientImpl] listening at address [http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService]|#]

[#|2009-04-23T10:16:43.957+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|deployed with moduleid = wspvTirea|#]

[#|2009-04-23T10:16:44.281+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=Timer-4;wspvTirea;server;/wspvTirea;|WEB0100: Loading web module [wspvTirea] in virtual server [server] at [/wspvTirea]|#]

[#|2009-04-23T10:16:44.323+0200|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_ThreadID=14;_ThreadName=Timer-4;|WSSERVLET12: JAX-WS context listener initializing|#]

[#|2009-04-23T10:16:44.331+0200|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_ThreadID=14;_ThreadName=Timer-4;|wsdl cannot be found from DD or annotation. Will generate and publish a new WSDL for SEI endpoints.|#]

[#|2009-04-23T10:16:44.441+0200|INFO|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=14;_ThreadName=Timer-4;|WSSERVLET14: JAX-WS servlet initializing|#]

[#|2009-04-23T10:16:44.522+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy] Successfully autodeployed : /var/opt/SUNWappserver/domains/sfe/autodeploy/wspvTirea.war.|#]


wsdl[b][/b]

definitions targetNamespace="http://server.ws.sfe.tirea/" name="SerClientImplService">
?
        <types>
?
        <xsd:schema>
<xsd:import namespace="http://server.ws.sfe.tirea/" [b]schemaLocation="http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService/__container$publishing$subctx/WEB-INF/wsdl/SerClientImplService_schema1.xsd"/>[/b]
</xsd:schema>
</types>
?
        <message name="GetValoracion">
<part name="parameters" element="tns:GetValoracion"/>
</message>
?
        <message name="GetValoracionResponse">
<part name="parameters" element="tns:GetValoracionResponse"/>
</message>
?
        <message name="test">
<part name="parameters" element="tns:test"/>
</message>
?
        <message name="testResponse">
<part name="parameters" element="tns:testResponse"/>
</message>
?
        <portType name="ServerTireaWSPV">
?
        <operation name="GetValoracion">
<input message="tns:GetValoracion"/>
<output message="tns:GetValoracionResponse"/>
</operation>
?
        <operation name="test">
<input message="tns:test"/>
<output message="tns:testResponse"/>
</operation>
</portType>
?
        <binding name="SerClientImplPortBinding" type="tns:ServerTireaWSPV">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
?
        <operation name="GetValoracion">
<soap:operation soapAction=""/>
?
        <input>
<soap:body use="literal"/>
</input>
?
        <output>
<soap:body use="literal"/>
</output>
</operation>
?
        <operation name="test">
<soap:operation soapAction=""/>
?
        <input>
<soap:body use="literal"/>
</input>
?
        <output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
?
        <service name="SerClientImplService">
?
        <port name="SerClientImplPort" binding="tns:SerClientImplPortBinding">
<soap:address location="http://tireasol23.ral.tirea.es:18999/wspvTirea/SerClientImplService"/>
</port>
</service>
</definitions>



$[b][/b][b][/b]
[Message sent by forum member 'caton70' (caton70)]

http://forums.java.net/jive/thread.jspa?messageID=343357