Discussion:
[Middlegen-user] Trouble Connecting to DB2 Database
c***@hoffmanonline.com
2004-07-05 06:49:17 UTC
Permalink
Middlegen Newbie here:


I have used the IBM JDBC Driver to perform queries etc on various
databases, and this works fine. Now, I'm
trying to get Middlegen to work using the driver, however I keep getting
the following exception:

java.lang.IllegalAccessError: tried to access class
com.ibm.as400.access.SystemProperties from class
com.ibm.as400.access.AS400JDBCDriver

I'm can't determine why I'm getting this exception. Here is the following
parameters I'm using with the
middlegen task in my ant build.

<target name="middlegen" description="Run Middlegen" depends="init">
<taskdef
name="middlegen"
classname="middlegen.MiddlegenTask"
classpathref="project.classpath"
/>
<middlegen
appname="qaccess"
gui="true"
databaseurl=
"jdbc:as400://S10196AM;user=a00627;password=Stone4me;librairies=*LIBL;naming=sql;errors=full"
driver="com.ibm.as400.access.AS400JDBCDriver"
username="a00627"
password="Stone4me"
schema=""
catalog="."
Loading...