Hey.
I tried to evaluate xfire to see if we could use xfire instead of axis 1.2
with our software. Our wsdl and shcemas works just fine and are valid with
xml-spy and also those work with axis without any problems. With XFire though
I get following errors when I try generate stubs from WSDL. Anybody have any
ideas? That MessageAbstractType is first time defined in mss.xsd and those
other types extend it. I don't quite understand the error.
Definition of MessageAbstract type in mss.xsd:
...
<xs:complexType name="MessageAbstractType" abstract="true">
<xs:sequence>
<xs:element name="AP_Info">
<xs:complexType>
<xs:attribute name="AP_ID"
type="xs:anyURI" use="required"/>
<xs:attribute name="AP_TransID"
type="xs:NCName" use="required"/>
<xs:attribute name="AP_PWD"
type="xs:string" use="required"/>
<xs:attribute name="Instant"
type="xs:dateTime" use="required"/>
<xs:attribute name="AP_URL"
type="xs:anyURI" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="MSSP_Info">
<xs:complexType>
<xs:sequence>
<xs:element name="MSSP_ID"
type="mss:MeshMemberType"/>
</xs:sequence>
<xs:attribute name="Instant"
type="xs:dateTime" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="MajorVersion" type="xs:integer"
use="required"/>
<xs:attribute name="MinorVersion" type="xs:integer"
use="required"/>
</xs:complexType>
...
Definition of type that extends MessageAbstractType in mss.xsd:
...
<xs:element name="MSS_StatusReq" type="mss:MSS_StatusReqType"/>
<xs:complexType name="MSS_StatusReqType">
<xs:complexContent>
<xs:extension base="mss:MessageAbstractType">
<xs:attribute name="MSSP_TransID"
type="xs:NCName" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="MSS_StatusResp" type="mss:MSS_StatusRespType"/>
<xs:complexType name="MSS_StatusRespType">
<xs:complexContent>
<xs:extension base="mss:MessageAbstractType">
<xs:sequence>
<xs:element name="MobileUser"
type="mss:MobileUserType"/>
<xs:element name="MSS_Signature"
type="mss:SignatureType" minOccurs="0"/>
<xs:element name="Status"
type="mss:StatusType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
...
And the error's I'm getting:
...
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MessageAbstractType' is already defined at 28,71 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_SignatureReq' is already defined at 28,71 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_SignatureReqType' is already defined at 54,73 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_SignatureResp' is already defined at 54,73 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_SignatureRespType' is already defined at 68,65 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_StatusReq' is already defined at 68,65 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_StatusReqType' is already defined at 76,67 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_StatusResp' is already defined at 76,67 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_StatusRespType' is already defined at 88,77 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_RegistrationReq' is already defined at 88,77 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_RegistrationReqType' is already defined at 103,79 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_RegistrationResp' is already defined at 103,79 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_RegistrationRespType' is already defined at 117,67 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ProfileReq' is already defined at 117,67 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ProfileReqType' is already defined at 127,69 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ProfileResp' is already defined at 127,69 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ProfileRespType' is already defined at 138,67 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ReceiptReq' is already defined at 138,67 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ReceiptReqType' is already defined at 152,69 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ReceiptResp' is already defined at 152,69 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_ReceiptRespType' is already defined at 162,71 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_HandshakeReq' is already defined at 162,71 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_HandshakeReqType' is already defined at 202,73 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_HandshakeResp' is already defined at 202,73 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_HandshakeRespType' is already defined at 243,40 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MobileUserType' is already defined at 251,34 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'DataType' is already defined at 259,55 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'SignatureProfileComparisonType' is already defined at 266,42 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MessagingModeType' is already defined at 273,47 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'DigestAlgAndValueType' is already defined at 279,36 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'mssURIType' is already defined at 286,40 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MeshMemberType' is already defined at 294,42 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'KeyReferenceType' is already defined at 303,39 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'SignatureType' is already defined at 311,42 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'MSS_MessageSignature' is already defined at 319,15 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'AdditionalServiceType' is already defined at 327,36 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'StatusType' is already defined at 334,40 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'StatusCodeType' is already defined at 340,42 in file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: 'StatusDetailType' is already defined at 345,13 in
file:/.../xml/mss.xsd
Apr 19, 2007 8:57:29 PM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
SEVERE: (related to above error) the first definition appears here at 0,0 in
file:/.../xml/mss.xsd#types?schema1
org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.
at
org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:105)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:151)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:133)
Exception in thread "main" org.codehaus.xfire.gen.GenerationException: Error
generating JAXB model.
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:137)
Caused by: org.codehaus.xfire.gen.GenerationException: Error generating JAXB
model.
at
org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:105)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:151)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:133)
--- Nested Exception ---
org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.
at
org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:105)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:151)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:133)
...
And as I said this work with Axis and xmlspy accepts and validates those
without problems, so I don't quite understand the problem.
Any ideas what does that error message mean? And surely if somebody have ideas
how it could be solved...
Thanks!
--
Esa
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email