Hi,

I downloaded the ojb source and configured build.properties, db2.profile
for DB2. When I execute bin\build junit, it created all the tables in the
database for the default OJB application.

Now I am trying to run "bin\build verfy" but it gives SQLException : No
Suitable driver. Could any one tell me the solution of the problem.

Here is my VerifyMappingTask
      <target name="declare" depends="main">
                  <taskdef name="verifymappings"
classname="org.apache.ojb.broker.ant.VerifyMappingsTask">
                        <classpath refid="runtime-classpath" />
                  </taskdef>
      </target>


      <target name="verify" depends="declare" description="Verifies the ojb
mapping file.">
            <echo message="using cp: ${runtime.classpath}"/>
            <!--<verifymappings
propertiesFile="${build.dir}/test/ojb/OJB.properties"

repositoryFile="${build.dir}/test/ojb/repository.xml"
                                    jdbcDriver="org.hsqldb.jdbcDriver"
                                    url="jdbc:hsqldb:target/test/OJB"
                                    logon="sa"
                                    password=""
                                    ignoreFieldNameCase="true"
                                    useStrictTypeChecking="false"
                                    verifyclasspath="${runtime.classpath}"
                                    useXMLValidation="true"
                                    failonerror="true"/>-->
                  <verifymappings
propertiesFile="${build.dir}/test/ojb/OJB.properties"

repositoryFile="${build.dir}/test/ojb/repository.xml"
                                    ignoreFieldNameCase="true"
                                    useStrictTypeChecking="false"
                                    verifyclasspath="${runtime.classpath}"
                                    useXMLValidation="true"
                                    failonerror="true"/>
      </target>

I have not provided the optional tags for <verifymappings > therefore it
will use the database setting from repository.

Thanks,
Anshul.



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

Reply via email to