Subject | Re: [Firebird-Java] Re: Problems finding error messages |
---|---|
Author | Laurent Duperval |
Post date | 2004-09-13T13:20:33Z |
Roman Rokytskyy wrote:
like this:
<target name="dbinit" description="Initialize database">
<sql driver="${jdbc.driver}"
password="${jdbc.database.fmstatic.password}"
url="${jdbc.database.fmstatic.url}"
userid="${jdbc.database.fmstatic.username}"
src="etc/fmstatic.sql" classpathref="firebird.classpath"
onerror="continue"
/>
</target>
${firebird.classpath} is
<property name="firebird.library.dir" value="${firebird.home}" />
<property name="firebird.library.jars"
value="${firebird.library.dir}/firebirdsql-full.jar" />
<path id="firebird.classpath">
<pathelement path="${firebird.library.jars}" />
</path>
I've tried it with firebirdsql.jar+mini-j2ee.jar as well as
firebirdsql-full.jar. Doesn't work in either case.
Hmmm.... I'm thinking maybe the jar should be in ant's lib directory, if
it's a classloader issue.
L
>It is relatively standard way to manually load resources. Please specifyWell, like I said originally, I'm running it from ant. My task looks
>your deployment environment (web/application server, where firebirdsql*.jar
>files are located, if possible, what classloader loads the driver, etc.)
>
>
>
like this:
<target name="dbinit" description="Initialize database">
<sql driver="${jdbc.driver}"
password="${jdbc.database.fmstatic.password}"
url="${jdbc.database.fmstatic.url}"
userid="${jdbc.database.fmstatic.username}"
src="etc/fmstatic.sql" classpathref="firebird.classpath"
onerror="continue"
/>
</target>
${firebird.classpath} is
<property name="firebird.library.dir" value="${firebird.home}" />
<property name="firebird.library.jars"
value="${firebird.library.dir}/firebirdsql-full.jar" />
<path id="firebird.classpath">
<pathelement path="${firebird.library.jars}" />
</path>
I've tried it with firebirdsql.jar+mini-j2ee.jar as well as
firebirdsql-full.jar. Doesn't work in either case.
Hmmm.... I'm thinking maybe the jar should be in ant's lib directory, if
it's a classloader issue.
L
>Roman
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>