cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abid Hussain <abid.huss...@abid76.de>
Subject Re: error while generating client
Date Fri, 17 Aug 2007 08:22:49 GMT
Hi Dan,

thanks for help. No offence, but I switched back to XFire 1.2.6 and 
everything works fine now!

Best regards,

Abid

Dan Diephouse schrieb:
> Hi Abid,
> 
> I'm not very good with German, but I think the problem is that you have a
> undeclared prefix somewhere. Can you attach your WSDL?
> 
> - Dan
> 
> On 8/14/07, Abid Hussain <abid.hussain@abid76.de> wrote:
>> Hi,
>>
>> I'm using CXF 2.0.1. Maybe the problem is not solvable at the moment and
>> will be fixed in future release...
>>
>> Best regards,
>>
>> Abid
>>
>> Velidanda Srinivas schrieb:
>>> Ok, I understand now.
>>>
>>> The problem seems to be with databinding.
>>>
>>> Are you running on latest release CXF 2.0.1 or 2.0.
>>>
>>> If you are using 2.0, try with CXF 2.0.1, it has some fixes related to
>> jaxb bindings.
>>>
>>>> -----Original Message-----
>>>> From: Abid Hussain [mailto:abid.hussain@abid76.de]
>>>> Sent: 14 August 2007 17:39
>>>> To: cxf-user@incubator.apache.org
>>>> Subject: Re: error while generating client
>>>>
>>>>
>>>> Hi,
>>>>
>>>> thanks for quick answer.
>>>>
>>>>> Which language version are you using, Is it not english?
>>>> I'm actually not sure what you mean. My OS is german.
>>>>
>>>> Best regards,
>>>>
>>>> Abid
>>>>
>>>>
>>>>>> -----Original Message-----
>>>>>> From: Abid Hussain [mailto:abid.hussain@abid76.de]
>>>>>> Sent: 14 August 2007 17:30
>>>>>> To: cxf-user@incubator.apache.org
>>>>>> Subject: error while generating client
>>>>>>
>>>>>>
>>>>>> Hi again,
>>>>>>
>>>>>> when i try to generate a client using wsdltojava, I get
>>>> the error that
>>>>>> the namespace for the prefix jaxb wasn't declared. Anybody
>>>> knows what
>>>>>> that means?
>>>>>>
>>>>>> I use the following ant script:
>>>>>> <target name="clientgen">
>>>>>>    <java
>>>>>> classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true"
>>>>>> classpathref="compile.classpath">
>>>>>>            <arg line="-p modulverwaltung.service.client" />
>>>>>>            <arg line="-client
>>>>>> http://localhost:8080/modulverwaltung/services/ModuleWS?wsdl" />
>>>>>>    </java>
>>>>>> </target>
>>>>>>
>>>>>> Here's the output:
>>>>>> Buildfile: D:\java\moduleserviceclient\build.xml
>>>>>> clientgen:
>>>>>>        [java] 14.08.2007 13:54:11
>>>>>> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>>>>>>        [java] INFO: Loading plugin
>>>>>> jar:file:/D:/java/moduleserviceclient/WebContent/WEB-INF/lib/c
>>>>>> xf-2.0.1-incubator.jar!/META-INF/tools-plugin
>>>>>> .xml
>>>>>>        [java] 14.08.2007 13:54:11
>>>>>> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>>>>>>        [java] INFO: Found 1 frontends in <default> plugin.
>>>>>>        [java] 14.08.2007 13:54:11
>>>>>> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>>>>>>        [java] INFO: Loading <jaxws> frontend from <default>
plugin.
>>>>>>        [java] 14.08.2007 13:54:11
>>>>>> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>>>>>>        [java] INFO: Found 1 databindings in <default> plugin.
>>>>>>        [java] 14.08.2007 13:54:11
>>>>>> org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
>>>>>>        [java] INFO: Loading <jaxb> databinding from
>>>> <default> plugin.
>>>>>>        [java] FEHLER:  'Der Namensbereich für Präfix 'jaxb'
>>>>>> wurde nicht
>>>>>> deklariert.'
>>>>>>        [java] javax.xml.transform.TransformerException:
>>>>>> java.lang.RuntimeException: Der Namensbereich für Präfix
>>>> 'jaxb' wurde
>>>>>> nicht deklariert
>>>>>> .
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransform(TransformerImpl.java:647)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransform(TransformerImpl.java:279)
>>>>>>        [java] at
>>>>>> org.apache.cxf.helpers.DOMUtils.writeXml(DOMUtils.java:334)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.util.JAXBUtils.getPackageMappingSchemaBin
>>>>>> dingFile(JAXBUtils.java:122)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.i
>>>>>> nitialize(JAXBDataBinding.java:165)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(
>>>>>> WSDLToJavaContainer.java:506)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLTo
>>>>>> JavaContainer.java:187)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLTo
>>>>>> JavaContainer.java:234)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRu
>>>>>> nner.java:83)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
>>>>>>        [java] Caused by: java.lang.RuntimeException: Der
>>>> Namensbereich
>>>>>> für Präfix 'jaxb' wurde nicht deklariert.
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.SerializerBase.getN
>>>>>> amespaceURI(SerializerBase.java:866)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.SerializerBase.addA
>>>>>> ttribute(SerializerBase.java:406)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.ToUnknownStream.add
>>>>>> Attribute(ToUnknownStream.java:286)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2
>>>>>> TO.java:177)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2
>>>>>> TO.java:81)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransformIdentity(TransformerImpl.java:592)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransform(TransformerImpl.java:638)
>>>>>>        [java] ... 10 more
>>>>>>        [java] ---------
>>>>>>        [java] java.lang.RuntimeException: Der
>>>> Namensbereich für Präfix
>>>>>> 'jaxb' wurde nicht deklariert.
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.SerializerBase.getN
>>>>>> amespaceURI(SerializerBase.java:866)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.SerializerBase.addA
>>>>>> ttribute(SerializerBase.java:406)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xml.internal.serializer.ToUnknownStream.add
>>>>>> Attribute(ToUnknownStream.java:286)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2
>>>>>> TO.java:177)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2
>>>>>> TO.java:81)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransformIdentity(TransformerImpl.java:592)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransform(TransformerImpl.java:638)
>>>>>>        [java] at
>>>>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
>>>>>> ransform(TransformerImpl.java:279)
>>>>>>        [java] at
>>>>>> org.apache.cxf.helpers.DOMUtils.writeXml(DOMUtils.java:334)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.util.JAXBUtils.getPackageMappingSchemaBin
>>>>>> dingFile(JAXBUtils.java:122)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.i
>>>>>> nitialize(JAXBDataBinding.java:165)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(
>>>>>> WSDLToJavaContainer.java:506)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLTo
>>>>>> JavaContainer.java:187)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLTo
>>>>>> JavaContainer.java:234)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRu
>>>>>> nner.java:83)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
>>>>>>        [java] at
>>>>>> org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
>>>>>>        [java] WSDLToJava Error : Thrown by JAXB : Premature
>>>>>> end of file.
>>>>>> BUILD SUCCESSFUL
>>>>>> Total time: 3 seconds
>>>>>> --
>>>>>>
>>>>>> Abid Hussain
>>>>>> Mail: abid.hussain@abid76.de
>>>>>> Web: http://www.abid76.de
>>>>>>
>>>>>> ______________________________________________________________
>>>>>> __________
>>>>>> This e-mail has been scanned for all viruses by MessageLabs.
>>>>>> ______________________________________________________________
>>>>>> __________
>>>>>>
>>>> ______________________________________________________________
>>>> __________
>>>>> This e-mail has been scanned for all viruses by MessageLabs.
>>>>>
>>>>> To learn more about Singularity's business process
>>>> management solutions and services please visit:
>>>>> www.singularity.co.uk
>>>>> www.singularity.us.com
>>>>> Singularity operates globally through its offices in New
>>>> York, London, Singapore, Ireland and India. Singularity
>>>> Limited is incorporated in the United Kingdom with
>>>> Registration Number NI 31519 and its Registered Office at 100
>>>> Patrick Street, Derry, BT48 7EL, United Kingdom.
>>>> --
>>>>
>>>> Abid Hussain
>>>> Mail: abid.hussain@abid76.de
>>>> Web: http://www.abid76.de
>>>>
>>>> ______________________________________________________________
>>>> __________
>>>> This e-mail has been scanned for all viruses by MessageLabs.
>>>> ______________________________________________________________
>>>> __________
>>>>
>>> ________________________________________________________________________
>>> This e-mail has been scanned for all viruses by MessageLabs.
>>>
>>> To learn more about Singularity's business process management solutions
>> and services please visit:
>>> www.singularity.co.uk
>>> www.singularity.us.com
>>> Singularity operates globally through its offices in New York, London,
>> Singapore, Ireland and India. Singularity Limited is incorporated in the
>> United Kingdom with Registration Number NI 31519 and its Registered Office
>> at 100 Patrick Street, Derry, BT48 7EL, United Kingdom.
>> --
>>
>> Abid Hussain
>> Mail: abid.hussain@abid76.de
>> Web: http://www.abid76.de
>>
> 
> 
> 

-- 

Abid Hussain
Mail: abid.hussain@abid76.de
Web: http://www.abid76.de

Mime
View raw message