To answer my own questions...

The day after I posted, first problem resolved itself. I'm not sure what I did but I suspect the cure was restarting the FrontBase server.

For the second problem, Guido Neitzer helpfully pointed out that external type = Database type. Silly me %-).

Re: the Veogen / WOnder dependencies I think they only have to do with the fact that I'm using the standard templates which make use of some WOnder features (actually mainly org.apache.log4j.Logger)

Guido also explained how to use prototypes without project WO:

"Sure it is. You only need either a framework with your Prototypes entities (look at ERPrototypes how to create one that is flexible with databases) or add an entity "EOJDBCPrototypes" to your model."

= tmk =

On 05 Jan 2008, at 16:00, Archibal Singleton wrote:

Hello,

I'm getting the dreaded driver not found problem:

--- cut

"Failed to generate SQL. JDBC connection failed for driver :'jdbc:FrontBase://localhost/test'. Driver not found in Java Runtime! Please verify your CLASSPATH environment variable. The current CLASSPATH for your application is : /Developer/Applications/ Eclipse/Eclipse.app/Contents/MacOS/../../../plugins/ org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar"

--- cut

Please see crashlog 1 below

I've checked, re-checked and re-re-checked my settings and everything seems OK. Then I've created a vanilla project, created a EOModel, set the same settings as in my previous project. Took snapshots of the expanded "Libraries" tab in their respective "Java Build Path" settings and they're identical. The order of the libraries are also the same.

I have checked http://wiki.objectstyle.org/confluence/display/WOL/JDBC+and+Entity+Modeler (which btw doesn't mention the database PlugIn (e.g. FrontBasePlugIn or PostgresqlPlugIn). I assume they should also be in the CLASSPATH right?

Anyway, in my case both FrontBasePlugIn and frontbasejdbc.jar are in the CLASSPATH and the connection settings are the same in EM but I still get the eror message above.

On the second project, I get the following error message:

--- cut

"Failed to generate SQL. Unable to find type information for external type 'null' in attribute 'id' of entity 'Something'. Check spelling and capitalization".

--- cut

Please see crashlog 2 below

I've simply created a id attribute of type Integer - Integer i (no prototype)

I'm using eclispse Version: 3.3.2 Build id: M20071205-0800 / WOLips 3.34753 / WO 5.3.x (latest) / FrontBase 4.2.8.


What's happening and what can I do to correct this problem.

I'm using

Now some questions, is it correct to assume that VEOGenerator has a WOnder (ERExtensions + ERJars + ?) dependency? I'm guessing JavaEOGenerator does not?

Also is it possible to use prototypes in Entity Modeler without WOnder (ERPrototypes has a ERExtension + ERJars dependencies)?

Although I'm using WOnder, I'd like to know if this is possible without using WOnder.


Any help would be much appreciated.

Many TIA

= tmk =

--- crashlog 1

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: com.webobjects.jdbcadaptor.JDBCAdaptorException: JDBC connection failed for driver :'jdbc:FrontBase://localhost/test'. Driver not found in Java Runtime! Please verify your CLASSPATH environment variable. The current CLASSPATH for your application is : /Developer/Applications/Eclipse/Eclipse.app/Contents/ MacOS/../../../plugins/ org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java: 194) at com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java: 331) at com .webobjects.jdbcadaptor.JDBCContext._fetchJDBCInfo(JDBCContext.java: 558) at com.webobjects.jdbcadaptor.JDBCPlugIn.jdbcInfo(JDBCPlugIn.java: 861) at com.webobjects.jdbcadaptor.JDBCAdaptor.jdbcInfo(JDBCAdaptor.java: 233) at com .webobjects .jdbcadaptor .JDBCExpressionFactory.createExpression(JDBCExpressionFactory.java:22) at com .webobjects .eoaccess .EOSQLExpressionFactory .expressionForString(EOSQLExpressionFactory.java:80) at com .webobjects .eoaccess .EOSynchronizationFactory ._expressionForString(EOSynchronizationFactory.java:1088) at com .webobjects .eoaccess .EOSynchronizationFactory .dropPrimaryKeySupportStatementsForEntityGroups (EOSynchronizationFactory.java:672) at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationStatementsForEntities(EOSynchronizationFactory.java: 941) at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationScriptForEntities(EOSynchronizationFactory.java:747) at org .objectstyle .wolips .eomodeler .core .sql .EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 384)
        ... 8 more


--- crashlog 2

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: com.webobjects.jdbcadaptor.JDBCAdaptorException: Unable to find type information for external type 'null' in attribute 'id' of entity 'SomeThing'. Check spelling and capitalization. at com.webobjects.jdbcadaptor.FrontbasePlugIn $ FrontbaseSynchronizationFactory .columnTypeStringForAttribute(FrontbasePlugIn.java:711) at com.webobjects.jdbcadaptor.FrontbasePlugIn $ FrontbaseSynchronizationFactory .addCreateClauseForAttribute(FrontbasePlugIn.java:669) at com.webobjects.jdbcadaptor.FrontbasePlugIn $ FrontbaseSynchronizationFactory .createTableStatementsForEntityGroup(FrontbasePlugIn.java:603) at com.webobjects.jdbcadaptor.FrontbasePlugIn $ FrontbaseSynchronizationFactory .createTableStatementsForEntityGroups(FrontbasePlugIn.java:567) at com.webobjects.jdbcadaptor.FrontbasePlugIn $ FrontbaseSynchronizationFactory .schemaCreationStatementsForEntities(FrontbasePlugIn.java:448) at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationScriptForEntities(EOSynchronizationFactory.java:747) at org .objectstyle .wolips .eomodeler .core .sql .EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 384)
        ... 8 more



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to