Hi,

I want to automatically check the integrity of the repository.xml file and the corresponding database-mapping. So I tried out the VerifyMappingTask which is includes in the OJB-distribution (I am using rc5). But I am having problems with the classpath. Here is the situation:

- My persistent classes inherit from a class kos.generator.DataObject which is provided in an extra JAR.

- I set up the follwing ant-target:

<target name="verify-schema" depends="init">
    <taskdef
           name="verifymappings"
           classname="org.apache.ojb.broker.ant.VerifyMappingsTask">
           <classpath refid="project.class.path"/>
    </taskdef>

    <path id="verify.classpath">
        <pathelement location="${lib}/ojb-generator.jar"/>      
        <pathelement location="bin"/>
    </path>
                
<property name="verify.classpath.property" refid="verify.classpath"/>

        <verifymappings
                propertiesFile="${conf}/OJB.properties"
                repositoryFile="${conf}/repository.xml"
                jdbcDriver="sun.jdbc.odbc.JdbcOdbcDriver"
                url="jdbc:odbc:kos_db"
                logon="sa"
                password=""
                ignoreFieldNameCase="true"
                useStrictTypeChecking="false"
                verifyclasspath="${verify.classpath.property}"
                useXMLValidation="true"
                failonerror="true"/>
   </target>


==> With these setting the task starts to run cleanly, and it seems to start checking but then it stops with:


BUILD FAILED: java.lang.NoClassDefFoundError: kos/generator/DataObject

I already tried to change the classpath in some ways, but that doesn't help (I even have the ojb-generator.jar in the ant boot-classpath).

Does anyone have an idea what I am doing wrong?
Tino



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to