Hi Farrukh,

I tried running a few test cases here. Including one of your tests that
you sent me a while back. Everything is working fine for me. Those
classes haven't changed in a while, so I am not sure what the issue
could be.

Thanks,

--Keith


Farrukh Najmi wrote:
> 
> Hi,
> 
> I have been unable to generate Castor bindings with the latest CVS bits.
> I have tried doing a brand new checkout ina clean directory and building
> the jar target from scratch. Nothing doing. I keep getting the same
> stack trace below. I have tried searching the archives but dont see any
> thing that matches. I suspect some kind of class version mismatch but
> cant get a finger on it. Thanks for your help.
> 
> --------------------Stack Trace ------------------
> java.lang.IllegalAccessError: try to access class
> org.exolab.castor.builder.SGStateInfo from class
> org.exolab.castor.builder.SourceGenerator
> java.lang.IllegalAccessError: try to access class
> org.exolab.castor.builder.SGStateInfo from class
> org.exolab.castor.builder.SourceGenerator
>         at
> org.exolab.castor.builder.SourceGenerator.generateSource(Unknown Source)
> 
>         at
> org.exolab.castor.builder.SourceGenerator.generateSource(Unknown Source)
> 
>         at
> org.exolab.castor.builder.SourceGenerator.generateSource(Unknown Source)
> 
>         at org.exolab.castor.builder.SourceGenerator.main(Unknown
> Source)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:107)
>         at org.apache.tools.ant.taskdefs.Java.run(Java.java:245)
>         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:122)
> 
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:86)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:532)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:506)
> 
>         at org.apache.tools.ant.Main.runBuild(Main.java:420)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> -------------ant target to run SourceGenerator---------------
> I use the following ant target to generate the bidnings using
> SourceGenerator:.
> 
>    <target name="bindings" depends="prepare">
> 
>    <delete dir="src/share/org/oasis/ebxml/registry/bindings"/>
> 
>   <java classname="org.exolab.castor.builder.SourceGenerator" >
>          <arg line="-f -types j2 -i misc/schema/rim.xsd -dest src/share"
> />
>          <classpath>
>           <pathelement location="." />
>           <pathelement location="lib/castor-0.9.3.9-xml.jar" />
>            <pathelement location="lib/xerces-J_1.4.0.jar" />
>          </classpath>
>   </java>
> 
>   <java classname="org.exolab.castor.builder.SourceGenerator" >
>          <arg line="-f -types j2 -i misc/schema/query.xsd -dest
> src/share" />
>          <classpath>
>           <pathelement location="." />
>           <pathelement location="lib/castor-0.9.3.9-xml.jar" />
>            <pathelement location="lib/xerces-J_1.4.0.jar" />
>          </classpath>
>   </java>
> 
>   <java classname="org.exolab.castor.builder.SourceGenerator" >
>          <arg line="-f -types j2 -i misc/schema/rs.xsd -dest src/share"
> />
>          <classpath>
>           <pathelement location="." />
>           <pathelement location="lib/castor-0.9.3.9-xml.jar" />
>            <pathelement location="lib/xerces-J_1.4.0.jar" />
>          </classpath>
>   </java>
>    </target>
> 
> My castor.properties and castorbuilder.properties are attached.
> 
> --
> Regards,
> Farrukh
> 
>   ------------------------------------------------------------------------
> # THE CASTOR PROPERTIES FILE
> # This file specifies values for Castor run-time
> # which may be configured by the user.
> # $Id: castor.properties,v 1.1 2001/12/15 00:16:17 farrukh_najmi Exp $
> 
> # Defines the default XML parser to be used by castor
> # The parser must implement org.xml.sax.Parser
> #
> org.exolab.castor.parser=org.apache.xerces.parsers.SAXParser
> 
> # Defines the default XML serializer to be used by castor
> # The serializer must implement org.apache.xml.serialize.Serializer
> #
> org.exolab.castor.serializer=org.apache.xml.serialize.XMLSerializer
> 
> # Defines the NodeType for use with Java primitive types (int, long,
> # boolean, etc). This value is only used by the Introspector.
> # valid values are either "attribute" or "element". By default
> # all primitives are marshalled as attributes. Simply uncomment
> # the following line to change the NodeType to element.
> #
> #org.exolab.castor.xml.introspector.primitive.nodetype=element
> 
> # Defines the Naming "style" or conventions to use when
> # creating XML names from Java class or field names.
> # Valid values are as follows:
> # -----------------------------------------------------------------
> # lower (default)  |  All names are lowercase with hyphens
> #                  |  separating words.
> #                  |
> #                  |  Example: personInfo = person-info
> # -----------------------------------------------------------------
> # mixed            |  All names are mixed case, with Uppercase
> #                  |  character as the first letter of a new word.
> #                  |
> #                  |  Example: personInfo = personInfo
> #                  |  Example: FooBar     = fooBar
> # -----------------------------------------------------------------
> # {Any ClassName}  |  Any Class which implements
> #                  |  org.exolab.castor.xml.XMLNaming
> # -----------------------------------------------------------------
> #
> # By default all names are treated as the "lower" option.
> # To preserve the Java mixed-case conventions simply
> # uncomment the following line.
> #
> #org.exolab.castor.xml.naming=mixed
> 
> # Defines the Regular Expression Evaluator to be used by Castor
> # The evaluator must implement org.exolab.castor.util.RegExpEvaluator
> #
> # An implementation which uses the Jakarta RE library
> org.exolab.castor.regexp=org.exolab.castor.util.JakartaRegExpEvaluator
> #
> # Uncomment the following to basically supress evaluation of Regular expressions
> #org.exolab.castor.regexp=org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator
> 
> # True if all documents should be indented on output by default
> #
> org.exolab.castor.indent=true
> 
> # True if xml documents should be validated by the SAX Parser
> #
> org.exolab.castor.parser.validation=false
> org.exolab.castor.parser.namespaces=false
> 
> # True if all documents should be validated by the marshalling framework
> #
> org.exolab.castor.marshalling.validation=true
> 
> # Comma separated list of SAX 2 features that should be enabled
> # for the default parser.
> #
> #org.exolab.castor.features=
> 
> # True if should produce verbose messages
> #
> org.exolab.castor.debug=false
> 
> # List of collection handlers for Java 1.1 and Java 1.2 run-times
> #
> org.exolab.castor.mapping.collections=\
>   org.exolab.castor.mapping.loader.J1CollectionHandlers,\
>   org.exolab.castor.mapping.loader.J2CollectionHandlers
> 
> # List of persistence factories for the supported database servers
> #
> org.exolab.castor.jdo.engines=\
>   org.exolab.castor.jdo.drivers.OracleFactory,\
>   org.exolab.castor.jdo.drivers.PostgreSQLFactory,\
>   org.exolab.castor.jdo.drivers.SybaseFactory,\
>   org.exolab.castor.jdo.drivers.SQLServerFactory,\
>   org.exolab.castor.jdo.drivers.DB2Factory,\
>   org.exolab.castor.jdo.drivers.InformixFactory,\
>   org.exolab.castor.jdo.drivers.HsqlFactory,\
>   org.exolab.castor.jdo.drivers.InstantDBFactory,\
>   org.exolab.castor.jdo.drivers.InterbaseFactory,\
>   org.exolab.castor.jdo.drivers.MySQLFactory,\
>   org.exolab.castor.jdo.drivers.SapDbFactory,\
>   org.exolab.castor.jdo.drivers.GenericFactory
> 
> # List of key generator factories
> #
> org.exolab.castor.jdo.keyGeneratorFactories=\
>   org.exolab.castor.jdo.drivers.MaxKeyGeneratorFactory,\
>   org.exolab.castor.jdo.drivers.HighLowKeyGeneratorFactory,\
>   org.exolab.castor.jdo.drivers.IdentityKeyGeneratorFactory,\
>   org.exolab.castor.jdo.drivers.SequenceKeyGeneratorFactory,\
>   org.exolab.castor.jdo.drivers.UUIDKeyGeneratorFactory
> 
> # Collection handlers for the source code generator
> #
> org.exolab.castor.builder.type.j2=\
>   org.exolab.castor.builder.FieldInfoFactoryJ2
> org.exolab.castor.builder.type.j1=\
>   org.exolab.castor.builder.FieldInfoFactory
> org.exolab.castor.builder.type.odmg=\
>   org.exolab.castor.builder.FieldInfoFactoryODMG30
> 
>   ------------------------------------------------------------------------
> #
> # Property file for SourceCodeGenerator
> #
> # $Id: castorbuilder.properties,v 1.1 2001/12/15 00:16:17 farrukh_najmi Exp $
> 
> # To enable bound properties uncomment the following line. Please
> # note that currently *all* fields will be treated as bound properties
> # when enabled. This will change in the future when we introduce
> # fine grained control over each class and it's properties.
> #
> #org.exolab.castor.builder.boundproperties=true
> 
> # Java class mapping of <xsd:element>'s and <xsd:complexType>'s
> #
> #org.exolab.castor.builder.javaclassmapping=element
> 
> # This property allows one to specify the super class of *all*
> # generated classes
> #
> #org.exolab.castor.builder.superclass=com.xyz.BaseObject
> 
> # XML namespace mapping to Java packages
> #
> org.exolab.castor.builder.nspackages=\
>   urn:oasis:names:tc:ebxml-regrep:rim:xsd:2.0=org.oasis.ebxml.registry.bindings.rim,\
>   
>urn:oasis:names:tc:ebxml-regrep:query:xsd:2.0=org.oasis.ebxml.registry.bindings.query,\
>   
>urn:oasis:names:tc:ebxml-regrep:registry:xsd:2.0=org.oasis.ebxml.registry.bindings.rs
> 
> # Set to true if you want to generate the equals method
> # for each generated class
> # false by default
> #org.exolab.castor.builder.equalsmethod=true
> 
> # Set to true if you want to use Object Wrappers instead
> # of primitives (e.g Float instead of float).
> # false by default.
> #org.exolab.castor.builder.primitivetowrapper=false
> 
> # Set to true if you want the generated class descriptors to
> # expose the element and attribute names they contain.
> # false by default.
> #org.exolab.castor.builder.classdescfieldnames=false

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

Reply via email to