Hello Andrus,
The information in logs has given nothing.
But I think I have found a source of a problem. Cayenne 1.0a5 does not understand
new version parameter in <domain> tag.
And one question about modeler in 1.0a5.
How it works with web-application (datamap.map.xml only)?
A> This is indeed strange... Here is an idea.
A> Try to decrease logging threshold to debug the whole process. Create the
A> file $HOME/.cayenne/cayenne-log.properties (if it is not already there),
A> with the content similar to the example below and rerun the app. You should
A> have more information about the failure reason.
A> Sample cayenne-log.properties:
A> log4j.rootLogger=WARN, A1
A> log4j.appender.A1=org.apache.log4j.ConsoleAppender
A> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
A> log4j.appender.A1.layout.ConversionPattern=cayenne %-5p [%t %d{MM-dd
A> HH:mm:ss}] %c{1}: %m%n
A> log4j.logger.org.scopemvc = INFO
A> # This line is most important
A> log4j.logger.org.objectstyle.cayenne = DEBUG
A> Andrus
A> 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
-- Best regards, tim mailto:ti..e7en.ru
This archive was generated by hypermail 2.0.0 : Sat Jan 04 2003 - 17:40:52 EST