I am trying to upgrade from castor 1.0.1 to castor 1.1.1.
There have been several postings about issues with conflict resolution
errors when building with castor 1.1.1. I've tried modifying
castorbuilder.properties and the command line, all to no avail. Can
somebody help me know what to set to get past this error? Thank you.
Something like the following is defined in our ant build xml:
<java classname="org.exolab.castor.builder.SourceGeneratorMain"
fork="Yes" dir="." failonerror="true">
<arg line="-dest src -i codegen/cmi-classes.xsd -f -verbose
-types j2 -package com.syntegra.cmi.interfaces -nameConflictStrategy
informViaLog" />
<classpath>
<pathelement location="${project.src}" />
<pathelement location="${cmi.lib}/xml-apis.jar" />
<pathelement location="${cmi.lib}/commons-logging.jar"
/>
<pathelement location="${cmi.lib}/${xerces.version.jar}"
/>
<pathelement location="${cmi.lib}/serializer.jar" />
<pathelement
location="${cmi.lib}/${castor.version}-codegen.jar" />
<pathelement location="${cmi.lib}/${castor.version}.jar"
/>
</classpath>
</java>
I also tried adding the following to the castorbuilder.properties file:
org.exolab.castor.builder.automaticConflictResolution=true
org.exolab.castor.builder.nameConflictStrategy=informViaLog
Regardless, I continue to get errors like the following when building:
[java] Jun 13, 2007 5:11:22 PM
org.exolab.castor.builder.conflictresolution.ClassNameCRStrategyRegistry
getClassNameConflictResolutionStrategy
[java] SEVERE: The ClassNameConflictResolutionStrategy
'warnViaConsoleDialog' does not exist in the Castor builder properties
file and is therefore not supported.
[java] Exception in thread "main"
java.lang.IllegalArgumentException: The
ClassNameConflictResolutionStrategy 'warnViaConsoleDialog' does not
exist in the Castor builder properties file and is therefore not
supported.
[java] at
org.exolab.castor.builder.conflictresolution.ClassNameCRStrategyRegistry
.getClassNameConflictResolutionStrategy(ClassNameCRStrategyRegistry.java
:102)
[java] at
org.exolab.castor.builder.SingleClassGenerator.createNameConflictStrateg
y(SingleClassGenerator.java:450)
[java] at
org.exolab.castor.builder.SingleClassGenerator.<init>(SingleClassGenerat
or.java:141)
[java] at
org.exolab.castor.builder.SourceGenerator.<init>(SourceGenerator.java:23
4)
[java] at
org.exolab.castor.builder.SourceGenerator.<init>(SourceGenerator.java:21
2)
[java] at
org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.j
ava:211)
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email