You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sachin <cs...@pisoftek.com> on 2003/06/30 06:50:50 UTC

Document does not contain a default constructor (New Bie)

Hello All,
               i am trying to deploy a web services which is supposed to
take XML Document as input and after some
changes in Document it will return back to user.

but when i am deploying it with axis it is saying that Document should have
default constructor.I am using dom4j whose
org.dom4j.Document does not have default constructor

So what should i do to over come this problem.Plz help me

Jun 30, 2003 9:23:17 AM org.apache.axis.wsdl.fromJava.Types isBeanCompatible
WARNING: The class org.dom4j.Document does not contain a default
constructor, wh
ich is a requirement for a bean class.  The class cannot be converted into
an xm
l schema type.  An xml schema anyType will be used to define this class in
the w
sdl file.
WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://dom4j.org'.
Namespace prefixes 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.axis.wsdl.fromJava.Emitter.emit(Emitter.java:267)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:504)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)