cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Zavizionov <alexey.zavizio...@gmail.com>
Subject Re: Can't find prefix for... Namespace prefixes must be set...
Date Tue, 03 Feb 2009 15:38:57 GMT
It was after we removed the "wsdlLocation" annotation  for our
service. Because it points to local file after generation.
I guess it parse that local wsdl file with requests' server name and context.
Does it?


Alexey.

On Tue, Feb 3, 2009 at 2:50 PM, Alexey Zavizionov
<alexey.zavizionov@gmail.com> wrote:
> Hello, list
>
> Could you help me with that exception?
>
> WARNING: org.apache.cxf.transport.http.WSDLQueryHandler Exception
> caught writing response.
> org.apache.cxf.transport.http.WSDLQueryException: Exception occurred
> while trying to process
> http://localhost:8080/wsrp/soap/services/WSRP_v1_PortletM
> anagement_Service?wsdl
>        at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:214)
>        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:152)
>        at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
>        at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:156)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at org.exoplatform.services.wsrp2.filter.WSRPFilter.doFilter(WSRPFilter.java:66)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.wsdl.WSDLException: WSDLException:
> faultCode=OTHER_ERROR: Can't find prefix for
> 'urn:oasis:names:tc:wsrp:v1:types'. Namespace prefixe
> s must be set on the Definition object using the addNamespace(...) method.
>        at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source)
>        at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown Source)
>        at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown
> Source)
>        at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>        at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:171)
>        ... 20 more
>
> We deploy service with
>    Endpoint endpoint = Endpoint.publish(address, object);
>
> ENV: Tomcat 6.0.16, CXF 2.1.2,
>
> Thanks.
>

Mime
View raw message