Hi Wade,

On Tuesday, July 15, 2003, at 10:20 AM, Wade Chandler wrote:
     I am trying to use the namingXML tag for complexTypeName and I
can't seem to figure out how to use it or something.

I have tried both syntax:

<cbf:complexTypeName>
        <suffix>ComplexType</suffix>
</cbf:complexTypeName>

AND

<cbf:complexTypeName suffix="ComplexType"/>

From the error message below, it looks like your binding file is structured like this:


<binding>
  <complexTypeName>
    <suffix> ComplexType</suffix>
  </complexTypeName>
</binding>

It should be

<binding>
  <namingXML>
    <complexTypeName>
      <suffix> ComplexType</suffix>
    </complexTypeName>
  </namingXML>
</binding>

I think. Note also that, if you are using a namespace prefix (e.g., cbf:) it needs to be on all the binding-related elements. It is missing from "suffix" in your example. (That won't cause this problem, but might trouble you in the future.

HTH,
Rhett


Both produce this error:


--Unable to load a binding file due to the following Exception:
--------------------------------
Stack Trace for :org.xml.sax.SAXException: unable to find
FieldDescriptor for 'complexTypeName' in ClassDescriptor of
binding{file:
file:///C:/projects/Redesetgrow/EFIS/FRS/2.2/ castor_SourceGenBinding.xml
; line: 8; column: 23}
org.xml.sax.SAXException: unable to find FieldDescriptor for
'complexTypeName' in ClassDescriptor of binding
at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.ja v
a:1224)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi s
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn o
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:555)
at
org.exolab.castor.builder.binding.BindingLoader.loadBinding(BindingLoad e
r.java:130)
at
org.exolab.castor.builder.binding.BindingLoader.createBinding(BindingLo a
der.java:250)
at
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:111 2
)
--------------------------------
org.xml.sax.SAXException: unable to find FieldDescriptor for
'complexTypeName' in ClassDescriptor of binding{file:
file:///C:/projects/Redesetgrow/EFIS/FRS/2.2/ castor_SourceGenBinding.xml
; line: 8; column: 23}
at
org.exolab.castor.builder.binding.BindingLoader.loadBinding(BindingLoad e
r.java:196)
at
org.exolab.castor.builder.binding.BindingLoader.createBinding(BindingLo a
der.java:250)
at
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:111 2
)
-- No binding file will be used


Any help will be greatly appreciated.

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to