Re: java.lang.NoClassDefFoundError: JDBCPlugIn

From: Julius Spencer (jspence..uliusspencer.co.nz)
Date: Tue Mar 04 2008 - 15:23:15 EST

  • Next message: Julius Spencer: "Re: java.lang.NoClassDefFoundError: JDBCPlugIn"

    Hi,

    On 5/03/2008, at 8:43 AM, Fabian Peters wrote:

    > Hi,
    >
    > posting this to the list so more competent people than me can chime
    > in...
    >
    > Am 04.03.2008 um 20:29 schrieb Julius Spencer:
    >
    >> Hi,
    >>
    >> On 4/03/2008, at 10:46 PM, Fabian Peters wrote:
    >>
    >>> Hi Julius,
    >>>
    >>> Am 04.03.2008 um 07:57 schrieb Julius Spencer:
    >>>
    >>>> Hi,
    >>>>
    >>>> I'm having real trouble when using Eclipse to create SQL. I get
    >>>> the following error:
    >>>>
    >>>> java.lang.RuntimeException: Failed to generate SQL.
    >>>> at
    >>>> org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory
    >>>> $
    >>>> ReflectionSQLGenerator
    >>>> .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:57)
    >>>> at
    >>>> org
    >>>> .objectstyle
    >>>> .wolips
    >>>> .eomodeler
    >>>> .actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:271)
    >>>> at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog
    >>>> $1.run(GenerateSQLDialog.java:252)
    >>>> at java.lang.Thread.run(Thread.java:613)
    >>>> Caused by: java.lang.reflect.InvocationTargetException
    >>>> 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.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory
    >>>> $
    >>>> ReflectionSQLGenerator
    >>>> .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:55)
    >>>> ... 3 more
    >>>> Caused by: java.lang.NoClassDefFoundError: JDBCPlugIn
    >>>>
    >>>> The last line says it all I guess. In the properties of my
    >>>> project I have checked:
    >>>> Java Build Path => Libraries => WebObjects Frameworks => Edit...
    >>>> => System => JavaJDBCAdaptor
    >>>>
    >>>> I figured that should do the trick, but perhaps I'm reading the
    >>>> error message incorrectly. If anyone could give me direction that
    >>>> would be great.
    >>>
    >>> I think what's missing is the plugin framework for your DB. So, if
    >>> you're on Postgres, you should have the PostgresqlPlugIn on the
    >>> classpath of the eclipse project that contains your model.
    >>>
    >> Thank you for the help. I have PostgresqlPlugIn "checked" in:
    >>
    >> Java Build Path => Libraries => WebObjects Frameworks => Edit... =>
    >> Local
    >>
    >> I am wondering if the copy I am using of PostgresqlPlugIn.framework
    >> is not good. I just tried unsuccessfully with a fresh copy from:
    >> http://webobjects.mdimension.com/wonder/Wonder-latest-Frameworks-54.tar.gz
    >
    > Just to be sure: Are you actually using Postgres? My referring to
    > Postgres was just by way of example.
    >

    Yeah I pretty much have only ever used Postgresql (a little MySQL).
    You just happened to pick an example DB type which is the one I'm
    using. : ) I think it's only become a problem since I started using
    the Wonder PostgresqlPlugIn.framework.

    >> I wonder if it is a class path problem. The files are there, just
    >> not being found perhaps. : /
    >>
    >> Cheers,
    >> Julius.
    >
    > Fabian



    This archive was generated by hypermail 2.0.0 : Tue Mar 04 2008 - 15:24:56 EST