This is a codegen command-line issue, I'm not sure if we need a JUnit test to reproduce it. All I did was include the snapshot jars (and their dependents) in the classpath and ran the org.exolab.castor.builder.SourceGeneratorMain class. All input schemas give me the same exception.
I initially thought, it was a class-incompatibility caused by a mismatch of castor jars in my classpath. However, as I wrote earlier, the excecption is thrown even when I set the classpath to the minimal-set of jars I listed. thanks, -- ajd. On 08/01/2008, Werner Guttmann <[EMAIL PROTECTED]> wrote: > > Hmm ... can you supply me with a JUnit test (following the structure of > the test case template as shown in the correspüonding XML HOW-TO), and > we'll look into this in detail. > > Werner > > aldrin d'souza wrote: > > Hello Werner, > > > > I was trying to verify a fix included in this snapshot > > (http://jira.codehaus.org/browse/CASTOR-2235) > > Here's what I did: > > > > ----------------------- > > d:\work> set > > CLASSPATH=castor-1.2-20080107.220735-1.jar;castor- > codegen-1.2-20080107.221655-1.jar;commons-logging-1.1-dev.jar;velocity- > 1.3.jar;commons-collections-2.1.jar;logkit-1.0.1.jar > > d:\work>java org.exolab.castor.builder.SourceGeneratorMain -i > minimal.xsd > > ----------------------- > > > > Here's what I got: > > > > ----------------------- > > Exception in thread "main" java.lang.NoSuchMethodError: > > org.castor.xml.InternalContext.getXMLNaming > ()Lorg/exolab/castor/xml/XMLNaming; > > at > > org.exolab.castor.xml.XMLMappingLoader.createFieldDesc( > XMLMappingLoader.java > > :535) > > at > > > org.exolab.castor.mapping.loader.AbstractMappingLoader.createFieldDescriptors > (AbstractMappingLoader.java:415) > > at > > org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor( > XMLMappingLoader.java > > :237) > > at > > > org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDescriptors > (AbstractMappingLoader.java:262) > > at > > org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.java > :156) > > > > at > > org.castor.mapping.MappingUnmarshaller.getMappingLoader( > MappingUnmarshaller.java:167) > > at > > org.castor.mapping.MappingUnmarshaller.getMappingLoader( > MappingUnmarshaller.java:133) > > at org.exolab.castor.xml.Unmarshaller.setMapping > > (Unmarshaller.java:541) > > at > > org.exolab.castor.xml.schema.SimpleTypesFactory.loadTypesDefinitions( > SimpleTypesFactory.java:427) > > at > > org.exolab.castor.xml.schema.SimpleTypesFactory.getType( > SimpleTypesFactory.java > > :393) > > at > > org.exolab.castor.xml.schema.SimpleTypesFactory.getBuiltInType( > SimpleTypesFactory.java:205) > > at > > org.exolab.castor.xml.schema.Schema.getSimpleType(Schema.java:1284) > > at org.exolab.castor.xml.schema.Schema.getSimpleType > > (Schema.java:1224) > > at > > org.exolab.castor.xml.schema.SimpleTypeReference.resolveTypeReference( > SimpleTypeReference.java:104) > > at > > org.exolab.castor.xml.schema.SimpleTypeReference.getType( > SimpleTypeReference.java > > :94) > > at > > org.exolab.castor.xml.schema.AttributeDecl.getSimpleType( > AttributeDecl.java:256) > > at > > org.exolab.castor.builder.factory.SourceFactory.processAttributes( > SourceFactory.java:1727) > > at > > org.exolab.castor.builder.factory.SourceFactory.processComplexType > > (SourceFactory.java:1897) > > at > > org.exolab.castor.builder.factory.SourceFactory.processComplexType( > SourceFactory.java:806) > > at > > org.exolab.castor.builder.factory.SourceFactory.createSourceCode( > SourceFactory.java > > :373) > > at > > org.exolab.castor.builder.factory.SourceFactory.processComplexType( > SourceFactory.java:770) > > at > > org.exolab.castor.builder.factory.SourceFactory.createSourceCode( > SourceFactory.java:373) > > at > > org.exolab.castor.builder.SourceGenerator.createClasses( > SourceGenerator.java:898) > > at > > org.exolab.castor.builder.SourceGenerator.generateAllClassFiles( > SourceGenerator.java:752) > > at org.exolab.castor.builder.SourceGenerator.generateSource > > (SourceGenerator.java:705) > > at > > org.exolab.castor.builder.SourceGenerator.generateSource( > SourceGenerator.java:648) > > at > > org.exolab.castor.builder.SourceGenerator.generateSource( > SourceGenerator.java:546) > > at > > org.exolab.castor.builder.SourceGeneratorMain.main( > SourceGeneratorMain.java:309) > > ----------------------- > > > > Apparently, there's something wrong with my setup, but I can't figure > > out what. Can you help? > > > > thanks, > > -- > > ajd. > > > > On 08/01/2008, *Werner Guttmann* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Hi, > > > > I've just made a first snapshot release of Castor 1.2 available at > the > > snapshot repository of the Codehaus at > > > > http://snapshots.repository.codehaus.org/org/codehaus/castor > > > > (and sub-directories). Please have a look at the project road map > > available at Jira at > > > > > > > http://jira.codehaus.org/browse/CASTOR?report=com.atlassian.jira.plugin.system.project:roadmap-panel > > < > http://jira.codehaus.org/browse/CASTOR?report=com.atlassian.jira.plugin.system.project:roadmap-panel > > > > > > > > for details about feature additions and bug fixes included. > > > > Regards > > Werner Guttmann > > Castor, committer > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > -- > > ajd. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ajd.

