When I use the build.xml file, I can create the tables and see them in
Pointbase, but the middlegen task fails, saying the tables aren't
there!!! Here are my Pointbase-specific property settings. I tried it
with and without the schema and catalog settings:
<property environment="env"/>
<property name="database.script.file"
value="${src.dir}/sql/${name}-pointbase.sql"/>
<property name="database.driver.file"
value="C:/sftwTools/pointbase/lib/pbclient44.jar"/>
<property name="database.driver.classpath"
value="${database.driver.file}"/>
<property name="database.driver"
value="com.pointbase.jdbc.jdbcUniversalDriver"/>
<property name="database.url"
value="jdbc:pointbase:server://localhost:9093/workshop"/>
<property name="database.userid" value="weblogic"/>
<property name="database.password" value="weblogic"/>
<property name="database.schema" value=""/>
<property name="database.catalog" value=""/>
<property name="jboss.datasource.mapping" value="Pointbase"/>
C:\sftwTools\Middlegen-Hibernate-r3>ant middlegen
Buildfile: build.xml
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[echo] Class path = C:\sftwTools\Middlegen-Hibernate-r3
[middlegen] Database URL:jdbc:pointbase:server://localhost:9093/workshop
BUILD FAILED
C:\sftwTools\Middlegen-Hibernate-r3\build.xml:130:
middlegen.MiddlegenException:
The database doesn't have any table named weblogic.PERSONS. Please
make sure t
he table exists. Also note that some databases are case sensitive.
Total time: 1 second
C:\sftwTools\Middlegen-Hibernate-r3>
What am I doing wrong? |