Hi,
Iam using castor 1.2 version , I am referring to the latest jars as
given in the site.
But I am getting the following error?
Any help will be much appreciated.
[echo] generating NJM MOM...
[echo] L:\GC_Project\MessageObjectModel_WC/src
[java] -- Disabling generation of Marshaling framework methods
(marshal, unmarshal, validate).
[java] java.lang.NoSuchMethodError:
org.exolab.castor.mapping.xml.ClassMapping.setAccess(Lorg/exolab/castor/
mapping
/xml/types/AccessType;)V
[java] at
org.exolab.castor.mapping.xml.ClassMappingDescriptor$7.setValue(ClassMap
pingDescriptor.java:276)
[java] at
org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHandle
r.java:235)
[java] at
org.exolab.castor.xml.UnmarshalHandler.setAttributeValueOnObject(Unmarsh
alHandler.java:3127)
[java] at
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandler
.java:3074)
[java] at
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandle
r.java:2862)
[java] at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.jav
a:2388)
[java] at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.jav
a:1418)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Sour
ce)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[java] at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:715)
[java] at
org.castor.mapping.MappingUnmarshaller.loadMappingInternal(MappingUnmars
haller.java:245)
[java] at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshal
ler.java:153)
[java] at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshal
ler.java:128)
[java] at
org.exolab.castor.xml.Unmarshaller.setMapping(Unmarshaller.java:541)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.loadTypesDefinitions(Sim
pleTypesFactory.java:427)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.getType(SimpleTypesFacto
ry.java:393)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.getBuiltInType(SimpleTyp
esFactory.java:205)
[java] at
org.exolab.castor.xml.schema.Schema.getSimpleType(Schema.java:1284)
[java] at
org.exolab.castor.xml.schema.Schema.getType(Schema.java:2120)
[java] at
org.exolab.castor.xml.schema.reader.ExtensionUnmarshaller.<init>(Extensi
onUnmarshaller.java:126)
[java] at
org.exolab.castor.xml.schema.reader.SimpleContentUnmarshaller.startEleme
nt(SimpleContentUnmarshaller.
java:167)
[java] at
org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.startElement
(ComplexTypeUnmarshaller.java
:283)
[java] at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(Sche
maUnmarshaller.java:484)
[java] at
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax
2ComponentReader.java:255)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Sour
ce)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[java] at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator
.java:613)
[java] at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator
.java:548)
[java] at
org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.j
ava:309)
[java] Exception in thread "main"
BUILD FAILED
Thanks
Ravi.
=========================================================
The information in this transmission is intended for official use only and may
contain information from NJM Insurance Group that is privileged, confidential
and exempt from disclosure under applicable law. It is intended for the
exclusive use of the persons or entities to which it is addressed. If you are
not an intended recipient or the employee or agent responsible for delivering
this transmission to an intended recipient, be aware that any disclosure,
dissemination, distribution or copying of this communication, or the use of its
contents, is strictly prohibited. If you received this transmission in error,
please notify the sender by return e-mail and delete the material from any
computer.
=========================================================