Hi everybody,

I'm trying to generate my database schema through Ant, but I get an error and I 
have no idea why. This is the error message in the console:

Invalid class org.apache.cayenne.dba.JdbcAdapter of type 
org.apache.cayenne.dba.DbAdapter

The same message appears if I use 
org.apache.cayenne.dba.postgres.PostgresAdapter.
The relevant parts of the Ant script:

       <path id="classpath">
             <fileset dir="lib">
                    <include name="cayenne/cayenne-tools-3.1M4-SNAPSHOT.jar" />
                    <include name="cayenne/cayenne-server-3.1M4-SNAPSHOT.jar" />
                    <include name="cayenne/third-party/vpp-2.2.1.jar" />
                    <include 
name="cayenne/third-party/commons-collections-3.1.jar" />
                    <include name="cayenne/third-party/commons-logging-1.1.jar" 
/>
                    <include name="cayenne/third-party/velocity-1.6.3.jar" />
             </fileset>
       </path>
       <typedef resource="org/apache/cayenne/tools/antlib.xml">
             <classpath refid="classpath" />
       </typedef>

       <target name="createTables_postgres">
             <cdbgen map="../Config/lspMap.map.xml" 
adapter="org.apache.cayenne.dba.postgres.PostgresAdapter"
                    driver="${sql.driver}" url="${sql.url}" 
username="${sql.user}"
                    password="${sql.pass}" />
       </target>


Any hints on why this happens? Do I have to include additional libraries or use 
other settings?


Regards,

Joerg

Reply via email to