cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Schema generation with Ant
Date Wed, 14 Mar 2012 20:21:46 GMT
Hi Joerg,

Can you include more of the error message?  I didn't see anything
obvious, but I don't really use the Ant plugin, either.

Thanks,

mrg


On Wed, Mar 14, 2012 at 9:38 AM, Schönfisch, Jörg
<joerg.schoenfisch@softplant.de> wrote:
> 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
>

Mime
View raw message