cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sertic Mirko, Bedag" <>
Subject AW: WSDL first results in javax.wsdl.WSDLException
Date Thu, 28 Aug 2008 08:10:05 GMT

Thank you for your response.

I tried the wsdl validator from 2.1.1 and it says "Passed Validation : Valid WSDL". I also
tried with 2.1.2, and it also passed the validation, but I am still getting the Exception.

Is there something I have to consider when I am using CXF with Spring? Here is my spring config:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

	<import resource="classpath:META-INF/cxf/cxf.xml"/> 
	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /> 
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> 
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> 

	<bean id="ccInfoServiceImpl" class="">
	<jaxws:endpoint id="ccInfoServiceEndpoint" implementor="#ccInfoServiceImpl" address="/ccinfo">
           <bean class="org.apache.cxf.feature.LoggingFeature"/>


-----Urspr√ľngliche Nachricht-----
Von: Daniel Kulp [] 
Gesendet: Mittwoch, 27. August 2008 21:34
Cc: Sertic Mirko, Bedag
Betreff: Re: WSDL first results in javax.wsdl.WSDLException

Can you try with 2.1.2?    Also, try running the wsdlvalidator on the wsdl to 
make sure that's valid.


On Wednesday 27 August 2008 7:55:08 am Sertic Mirko, Bedag wrote:
> Hi
> I am new to CXF and want  to implement a WebService with CXF 2.1.1 and
> WSDL first. Code generations runs pretty smooth, but when I try to
> access the WebService with serice?wsdl to get the WSDL document, I am
> getting the following exception:
> javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't
> find prefix for ... Namespace prefixes must be set on the Definition
> object using the addNamespace(...) method.
> And ideas?
> Thanks a lot
> Mirko

Daniel Kulp

View raw message