This is indeed strange... Here is an idea.
Try to decrease logging threshold to debug the whole process. Create the
file $HOME/.cayenne/cayenne-log.properties (if it is not already there),
with the content similar to the example below and rerun the app. You should
have more information about the failure reason.
Sample cayenne-log.properties:
log4j.rootLogger=WARN, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=cayenne %-5p [%t %d{MM-dd
HH:mm:ss}] %c{1}: %m%n
log4j.logger.org.scopemvc = INFO
# This line is most important
log4j.logger.org.objectstyle.cayenne = DEBUG
Andrus
At 02:00 AM 1/4/2003 +0500, ti..e7en.ru wrote:
>Hello cayenne-user,
>
> After installation of the new version of Cayenne (1.0a5) I began
> to receive the exception
>
>java.lang.RuntimeException: Error initializing shared Configuration
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:214)
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:203)
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:186)
> at
> org.objectstyle.cayenne.conf.Configuration.getSharedConfig(Configuration.java:159)
> at
> com.winterthur.cm.controller.LocalUserManager.createContext(LocalUserManager.java:31)
>
>and
>
>WARN MapLoader: Relationship 'TO_CM_USER1': 'toDependentPK' is
>incorrectly set to true, unsetting...
>ERROR Configuration: Error initializing shared Configuration
>org.objectstyle.cayenne.ConfigException:
>[org.objectstyle.cayenne.conf.DefaultConfiguration] : Failed to load
>domain and/or its maps/nodes.
> at
> org.objectstyle.cayenne.conf.Configuration.init(Configuration.java:249)
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:211)
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:203)
> at
> org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:186)
> at
> org.objectstyle.cayenne.conf.Configuration.getSharedConfig(Configuration.java:159)
>
>in this method
>
> private DataContext createContext() {
> Configuration.bootstrapSharedConfig(this.getClass());
> DataDomain sharedDomain =
> Configuration.getSharedConfig().getDomain();
> return sharedDomain.createDataContext();
> }
>
>previous version work correctly!
>
>p.s. all cayenne generated *.java classes was regenerated and cayenne
>config was upgraded
>
>what i do wrong?
>
>--
>Best regards, Tim mailto:ti..e7en.ru
This archive was generated by hypermail 2.0.0 : Fri Jan 03 2003 - 23:51:40 EST