Hi,

 

In general, any reason why you still have to use an old milestone build
? In other words, why not switch to e.g. 1.1 GA ? 

 

Now more particular, I have never come across an issue like this, but I
do remember that with one or two milestone build in the 1.0 and 1.1.
area we had issues with deployment units (missing class files, etc.).

 

Let me know whether changing to 1.1 makes any difference, and if not, I
guess I'll ask you to create a new Jira issue.

 

Werner

 

 

________________________________

Von: Drew Beechum [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 10. April 2007 01:51
An: [email protected]
Betreff: [castor-user] Maven 2 / Binding File Error "NoSuchMethod"

 

Hi, I'm attempting to a castor project build to Maven 2. I've set up the
POM to use 1.1-M2 for my castor dependencies. When I run the
generate-sources goal with a binding file in place, I get:

java.lang.NoSuchMethodError :
org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setClassDescriptor(Lor
g/exolab/castor/xml/XMLClassDescriptor;)V
    at
org.exolab.castor.builder.binding.PackageTypeDescriptor.<init>(PackageTy
peDescriptor.java :125)...

This is just on a simple binding file with just a package setting in it.

<binding xmlns="http://www.castor.org/SourceGenerator/Binding "
defaultBindingType='type'>
     <package>
         <name>com.foo.bar.domain</name>
         <namespace>http://www.foo.com/bar</namespace> 
     </package>
</binding>

In the pom I have the following:

<build>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>castor-maven-plugin</artifactId>
            <version>1.0</version>
            <executions>
                <execution>
                    <goals> 
                        <goal>generate</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency> 
                    <groupId>org.codehaus.castor</groupId>
                    <artifactId>castor</artifactId>
                    <version>1.1-M2</version>
                </dependency> 
                <dependency>
                    <groupId>org.codehaus.castor</groupId>
                    <artifactId>castor-codegen</artifactId>
                    <version> 1.1-M2</version>
                </dependency>
            </dependencies>
            <configuration>
                <schemaDirectory>
                    src/main/resources/xml/playlist/</schemaDirectory> 
 
<bindingfile>src/main/resources/xml/playlist/playlistbinding.xml</bindin
gfile>
 
<dest>${project.build.directory}/generated-sources/</dest>
                <packaging> com.foo.bar.domain</packaging>
                <properties>
 
src/main/resources/xml/castorbuilder.properties</properties>
                <verbose>true</verbose>
            </configuration>
        </plugin>
    </plugins>
  </build>

Any help would be greatly appreciated. Thanks

-- Drew

Reply via email to