You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Andrus Adamchik <an...@objectstyle.org> on 2009/10/26 17:10:28 UTC

Preferences

On Oct 26, 2009, at 6:03 PM, Michael Gentry wrote:

> PS. I'm going to vote for 3.1 that H2 is dumped in CM.  I just had to
> use Time Machine to restore my preferences...again.  (Not the B1 CM,
> but I don't think it'll be better in that department.)

In fact since I am actively using CM JNDI hack, I'd love us start  
using java standard preferences store. This way I won't have to create  
optional profiles to include cayenne-modeler.jar for local work.

Andrus


Re: Preferences

Posted by Michael Gentry <mg...@masslight.net>.
I finally solved my 3.0B1 CM JNDI issues and my application is running
again.  I'll test/develop with it all day and see how 3.0B1 works for me.
 Maybe even change a few things (like use deleteObjects() and make sure it
really works).  I'll check back in later ...

Re: Preferences

Posted by Michael Gentry <mg...@masslight.net>.
I re-created my preferences DB and it didn't help.  Switched back to M6 and
it works again.  Not sure if this is really indicative of an issue, though.


On Mon, Oct 26, 2009 at 12:36 PM, Michael Gentry <mg...@masslight.net>wrote:

> Well, speaking of the CM JNDI hack ... that's exactly what is breaking for
> me currently in B1 (it can't load my preferences from M6, I guess):
>
> [INFO] conf.RuntimeLoadDelegate using factory:
> org.apache.cayenne.conf.JNDIDataSourceFactory
> [INFO] access.QueryLogger Connecting. JNDI path: jdbc/techipedia_public
> [INFO] conf.*JNDIDataSourceFactory failed JNDI lookup, attempt to load
> from local preferences*. Location key:jdbc/techipedia_public
> [INFO] conf.RuntimeLoadDelegate started configuration loading.
> [INFO] conf.RuntimeLoadDelegate loaded domain: CayenneModelerPreferences
> [INFO] conf.RuntimeLoadDelegate loaded <map name='Preferences'
> location='Preferences.map.xml'>.
> [INFO] conf.RuntimeLoadDelegate loaded <map name='ModelerPreferences'
> location='ModelerPreferences.map.xml'>.
> [INFO] conf.RuntimeLoadDelegate loading <node name='HSQLNode'
> datasource='HSQLNode.driver.xml' factory='org.apache.cayenne.conf.DriverDataSourceFactory'
> schema-update-strategy='org.apache.cayenne.access.dbsync.SkipSchemaUpdateStrategy'>.
> [INFO] conf.RuntimeLoadDelegate using factory:
> org.apache.cayenne.pref.HSQLEmbeddedPreferenceService$HSQLDataSourceFactory
> [INFO] access.QueryLogger *** *Connecting: FAILURE*.
> [INFO] conf.RuntimeLoadDelegate *Error: DataSource load failed*
> [INFO] conf.RuntimeLoadDelegate no adapter set, using automatic adapter.
> [INFO] conf.RuntimeLoadDelegate loaded map-ref: Preferences.
> [INFO] conf.RuntimeLoadDelegate loaded map-ref: ModelerPreferences.
> [INFO] conf.JNDIDataSourceFactory failed loading from local preferences
> [INFO] access.QueryLogger *** *Connecting: FAILURE*.
> [INFO] conf.RuntimeLoadDelegate *Error: DataSource load failed*
>
> Perhaps I need to recreate the preferences settings for B1?
>
> Thanks,
>
> mrg
>
>
> On Mon, Oct 26, 2009 at 12:10 PM, Andrus Adamchik <an...@objectstyle.org>
> wrote:
> >
> > On Oct 26, 2009, at 6:03 PM, Michael Gentry wrote:
> >
> >> PS. I'm going to vote for 3.1 that H2 is dumped in CM.  I just had to
> >> use Time Machine to restore my preferences...again.  (Not the B1 CM,
> >> but I don't think it'll be better in that department.)
> >
> > In fact since I am actively using CM JNDI hack, I'd love us start using
> java
> > standard preferences store. This way I won't have to create optional
> > profiles to include cayenne-modeler.jar for local work.
> >
> > Andrus
> >
> >
>
>

Re: Preferences

Posted by Michael Gentry <mg...@masslight.net>.
Well, speaking of the CM JNDI hack ... that's exactly what is breaking for
me currently in B1 (it can't load my preferences from M6, I guess):

[INFO] conf.RuntimeLoadDelegate using factory:
org.apache.cayenne.conf.JNDIDataSourceFactory
[INFO] access.QueryLogger Connecting. JNDI path: jdbc/techipedia_public
[INFO] conf.*JNDIDataSourceFactory failed JNDI lookup, attempt to load from
local preferences*. Location key:jdbc/techipedia_public
[INFO] conf.RuntimeLoadDelegate started configuration loading.
[INFO] conf.RuntimeLoadDelegate loaded domain: CayenneModelerPreferences
[INFO] conf.RuntimeLoadDelegate loaded <map name='Preferences'
location='Preferences.map.xml'>.
[INFO] conf.RuntimeLoadDelegate loaded <map name='ModelerPreferences'
location='ModelerPreferences.map.xml'>.
[INFO] conf.RuntimeLoadDelegate loading <node name='HSQLNode'
datasource='HSQLNode.driver.xml'
factory='org.apache.cayenne.conf.DriverDataSourceFactory'
schema-update-strategy='org.apache.cayenne.access.dbsync.SkipSchemaUpdateStrategy'>.
[INFO] conf.RuntimeLoadDelegate using factory:
org.apache.cayenne.pref.HSQLEmbeddedPreferenceService$HSQLDataSourceFactory
[INFO] access.QueryLogger *** *Connecting: FAILURE*.
[INFO] conf.RuntimeLoadDelegate *Error: DataSource load failed*
[INFO] conf.RuntimeLoadDelegate no adapter set, using automatic adapter.
[INFO] conf.RuntimeLoadDelegate loaded map-ref: Preferences.
[INFO] conf.RuntimeLoadDelegate loaded map-ref: ModelerPreferences.
[INFO] conf.JNDIDataSourceFactory failed loading from local preferences
[INFO] access.QueryLogger *** *Connecting: FAILURE*.
[INFO] conf.RuntimeLoadDelegate *Error: DataSource load failed*

Perhaps I need to recreate the preferences settings for B1?

Thanks,

mrg


On Mon, Oct 26, 2009 at 12:10 PM, Andrus Adamchik <an...@objectstyle.org>
wrote:
>
> On Oct 26, 2009, at 6:03 PM, Michael Gentry wrote:
>
>> PS. I'm going to vote for 3.1 that H2 is dumped in CM.  I just had to
>> use Time Machine to restore my preferences...again.  (Not the B1 CM,
>> but I don't think it'll be better in that department.)
>
> In fact since I am actively using CM JNDI hack, I'd love us start using
java
> standard preferences store. This way I won't have to create optional
> profiles to include cayenne-modeler.jar for local work.
>
> Andrus
>
>