HI,

what Castor JARs do you have on your classpath ?

Regards
Werner

Dayalan, Ravikumar wrote:
Hi ,
I want to add one more point here.. The same code was working when i was using castor 0.9.x version. its not working in castor 1.2
any specifica reason ?
thanks
Ravi.

    -----Original Message-----
    *From:* Dayalan, Ravikumar [mailto:[EMAIL PROTECTED]
    *Sent:* Friday, February 22, 2008 3:20 PM
    *To:* dev@castor.codehaus.org; [EMAIL PROTECTED]
    *Subject:* [castor-dev] Error while generating java source from XSD


    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(ClassMappingDescriptor.java:276)

         [java]     at
    
org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHandler.java:235)

         [java]     at
    
org.exolab.castor.xml.UnmarshalHandler.setAttributeValueOnObject(UnmarshalHandler.java:3127)

         [java]     at
    
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandler.java:3074)

         [java]     at
    
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandler.java:2862)

         [java]     at
    
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:2388)

         [java]     at
    
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java: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(Unknown
    Source)
         [java]     at
    
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
    Sour

    ce)
         [java]     at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    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(MappingUnmarshaller.java:245)

         [java]     at
    
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:153)

         [java]     at
    
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:128)

         [java]     at
    org.exolab.castor.xml.Unmarshaller.setMapping(Unmarshaller.java:541)
         [java]     at
    
org.exolab.castor.xml.schema.SimpleTypesFactory.loadTypesDefinitions(SimpleTypesFactory.java:427)

         [java]     at
    
org.exolab.castor.xml.schema.SimpleTypesFactory.getType(SimpleTypesFactory.java:393)

         [java]     at
    
org.exolab.castor.xml.schema.SimpleTypesFactory.getBuiltInType(SimpleTypesFactory.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>(ExtensionUnmarshaller.java:126)

         [java]     at
    
org.exolab.castor.xml.schema.reader.SimpleContentUnmarshaller.startElement(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(SchemaUnmarshaller.java:484)

         [java]     at
    
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)

         [java]     at
    org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    Source)
         [java]     at
    
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
    Source)
         [java]     at
    
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
    Sour

    ce)
         [java]     at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    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.java: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.
=========================================================
=========================================================
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.
=========================================================

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to