Re: FrontBase and javaeoutil
Re: FrontBase and javaeoutil
- Subject: Re: FrontBase and javaeoutil
- From: David Holt <email@hidden>
- Date: Tue, 20 Jun 2006 14:25:36 -0700
That solves that one, now on to the next!
I added the following lines to the MacOSClassPath.txt file:
# adding additional items to the classpath for use with FrontBase
/Library/Frameworks/FrontBasePlugIn.framework/Versions/A/Resources/
Java/frontbaseplugin.jar
/Library/Java/Extensions/frontbasejdbc.jar
The dump now gives me an integrity constraint violation. I shouldn't
need to use schemaCreate given that the database and tables have
already been created, so how do I turn off the foreign key constraint
checks in javaeoutil during import? Thanks,
Exception running dump:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Exception condition
361. Integrity constraint violation (FOREIGN KEY, POST._C0000000195
(TOPIC_ID=2)).
at com.webobjects.jdbcadaptor.JDBCContext.commitTransaction
(JDBCContext.java:420)
at EODumper._insertRowsForEntityForce(EODumper.java:168)
at EODumper.dumpRowSetToDatabaseForce(EODumper.java:492)
at Application.dumpDatabase(Application.java:514)
at Application.old_main(Application.java:131)
at Application.applicationDidFinishLaunching
(Application.java:109)
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:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at com.webobjects.foundation.NSNotificationCenter
$_Entry.invokeMethod(NSNotificationCenter.java:601)
at
com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:545)
at
com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:559)
at com.webobjects.appserver.WOApplication.run
(WOApplication.java:895)
at com.webobjects.appserver.WOApplication.main
(WOApplication.java:324)
at Application.main(Application.java:87)
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:324)
at com.webobjects._bootstrap.WOBootstrap.main
(WOBootstrap.java:71)
On 20 Jun 2006, at 1:17 PM, Chuck Hill wrote:
It all comes down to the classpath. The easiest is probably to add
it to
/System/Library/WebObjects/JavaApplications/javaeoutil.woa/Contents/
MacOS/MacOSClassPath.txt
On Jun 20, 2006, at 12:36 PM, David Holt wrote:
Hi everyone,
I am exporting data from MySQL to FrontBase using javaeoutil.woa
and following the script in Practical WebObjects (pg. 269). I set
up a test database and run into the following error when trying to
import into FrontBase from the dumped plist. I have confirmed that
the plist will repopulate the MySQL database with no problem. Is
there a way to specify the FrontBase plugin for javaeoutil, or am
I missing something?? Thanks,
David
Exception running dump:
com.webobjects.jdbcadaptor.JDBCAdaptorException: No suitable driver
at com.webobjects.jdbcadaptor.JDBCContext.connect
(JDBCContext.java:244)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect
(JDBCContext.java:331)
at com.webobjects.jdbcadaptor.JDBCContext._channelWillOpen
(JDBCContext.java:468)
at com.webobjects.jdbcadaptor.JDBCChannel.openChannel
(JDBCChannel.java:81)
at EODumper._openAdaptorChannel(EODumper.java:202)
at EODumper.dumpRowSetToDatabaseForce(EODumper.java:478)
at Application.dumpDatabase(Application.java:514)
at Application.old_main(Application.java:131)
at Application.applicationDidFinishLaunching
(Application.java:109)
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:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at com.webobjects.foundation.NSNotificationCenter
$_Entry.invokeMethod(NSNotificationCenter.java:601)
at
com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:545)
at
com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:559)
at com.webobjects.appserver.WOApplication.run
(WOApplication.java:895)
at com.webobjects.appserver.WOApplication.main
(WOApplication.java:324)
at Application.main(Application.java:87)
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:324)
at com.webobjects._bootstrap.WOBootstrap.main
(WOBootstrap.java:71)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in late 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/
practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden