HI,
Sorry for the delayed response.
I use ant build. Here is my build path info.
<path id="path.base">
<fileset dir="${basedir}/lib">
<include name="castor-1.2.jar"/>
<include name="castor-1.2-codegen.jar"/>
<include name="commons-logging-1.0.4.jar"/>
<include name="castor-1.2-xml-schema.jar"/>
<include name="velocity-1.5.jar"/>
</fileset>
<fileset dir="${cc.toolkit.home}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${env.commonlibs}">
<include name="*.jar"/>
</fileset>
<fileset dir="${env.commonlibs}/exclude">
<include name="*.jar" />
</fileset>
<pathelement path="${java.class.path}"/>
</path>
I tried using this jar also castor-1.2-xml.jar instead of
castor-1.2.jar but getting hit with same problem.
For additional information iam putting the invocation also. (See this I
took from the working version of Castor0.9
<property name="PATHELEMENT" refid="path.base"/>
<echo message="${code.src}"/>
<java
className="org.exolab.castor.builder.SourceGenerator" fork="true"
failonerror="true">
<arg value="verbose=true"/>
<arg value="-i"/>
<arg
value="${code.src}/mymessageobjectmodel.xsd"/>
<arg value="-dest"/>
<arg value="${code.src}"/>
<arg
value="-packagecom.gwservices.cc.integration.mom"/>
<!--
<arg value="-nodesc"/>
-->
<arg value="-nomarshall"/>
<classpath refid="path.base"/>
</java>
Thanks
Ravi
-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2008 12:26 AM
To: dev@castor.codehaus.org
Cc: [EMAIL PROTECTED]
Subject: [castor-user] Re: [castor-dev] Error while generating java
source from XSD
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/casto
r/mapping
/xml/types/AccessType;)V
[java] at
org.exolab.castor.mapping.xml.ClassMappingDescriptor$7.setValue(ClassM
appingDescriptor.java:276)
[java] at
org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHand
ler.java:235)
[java] at
org.exolab.castor.xml.UnmarshalHandler.setAttributeValueOnObject(Unmar
shalHandler.java:3127)
[java] at
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandl
er.java:3074)
[java] at
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHand
ler.java:2862)
[java] at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.j
ava:2388)
[java] at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.j
ava: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(MappingUnma
rshaller.java:245)
[java] at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarsh
aller.java:153)
[java] at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarsh
aller.java:128)
[java] at
org.exolab.castor.xml.Unmarshaller.setMapping(Unmarshaller.java:541)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.loadTypesDefinitions(S
impleTypesFactory.java:427)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.getType(SimpleTypesFac
tory.java:393)
[java] at
org.exolab.castor.xml.schema.SimpleTypesFactory.getBuiltInType(SimpleT
ypesFactory.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>(Exten
sionUnmarshaller.java:126)
[java] at
org.exolab.castor.xml.schema.reader.SimpleContentUnmarshaller.startEle
ment(SimpleContentUnmarshaller.
java:167)
[java] at
org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.startEleme
nt(ComplexTypeUnmarshaller.java
:283)
[java] at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(Sc
hemaUnmarshaller.java:484)
[java] at
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(S
ax2ComponentReader.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(SourceGenerat
or.java:613)
[java] at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat
or.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
=========================================================
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