2 Mar 2010 04:59
cdbgen problem for SQLServer on RC2
Parth Pandya <ppandya <at> avoka.com>
2010-03-02 03:59:57 GMT
2010-03-02 03:59:57 GMT
Hi Guys,
I'm trying to use cdbgen task in my Ant script and I'm getting NPE.
Here is the ant code and the exception. Can anyone please help??
Thanks in advance.
Cheers,
Parth
From Ant build:
<target name="create-db" description="build the Coffeshop database">
<cdbgen map="${src.dir}/CoffeshopMap.map.xml"
adapter="org.apache.cayenne.dba.sqlserver.SQLServerAdapter"
driver="om.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;databaseName=coffeshop;SelectMethod=cursor"
username="coffeshop"
password="password"/>
</target>
Exception
generator options - [dropTables: false, dropPK: false, createTables: true, createPK: true, createFK: true]
[cdbgen] Error generating database
BUILD FAILED
C:\dev\myEclipseTelstraWorkspace\telstra.all4biz.portal\edge-build.xml:293: Error generating database
at org.apache.cayenne.tools.DbGeneratorTask.execute(DbGeneratorTask.java:94)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
(Continue reading)
RSS Feed