Cayenne Error

From: sarvesh.naid..t.com
Date: Tue Jul 27 2004 - 04:41:39 EDT

  • Next message: Jürgen Saar: "Re: Schema Evolution"

    > Hi,
    > I am completely new to Cayenne, and frankly speaking have found it quite interesting. I am facing a few problems, hope someone can help me out. I have made a simple role schema using cayenne and then mapped the class to that schema. Now I am running it using a standalone application so have written a class which instantiates an the role class and then populates it with some values.
    > Everything complies well, but when I try running it, I realised that the cayenne.xml has to be in the classpath. After doing that, there were some more issues like jaxp-api.jar and sax.jar also are expected. After solving this, now I am getting this error
    >
    > Exception in thread "main" org.objectstyle.cayenne.ConfigurationException: [v.1.0.7 March 27 2004] Error during Configuration initialization. [v.1.0.7 March 27 2004] Load failures. Main configuration class: org.objectstyle.cayenne.conf.DefaultConfigu
    > ration, details:
    > domain.map.name=RoleResource, domain.map.location=RoleResource.map.xml, reason: map location not found
    > domain.node.name=Pointbase, domain.node.datasource=Pointbase.driver.xml, reason: DataSource load failed - [v.1.0.7 March 27 2004] Can't find DataSource configuration file at Pointbase.driver.xml
    > at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:287)
    > at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:261)
    > at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:244)
    > at org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:207)
    > at org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.java:151)
    > at test.Main.<init>(Unknown Source)
    > at test.Main.main(Unknown Source)
    > Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.0.7 March 27 2004] Load failures. Main configuration class: org.objectstyle.cayenne.conf.DefaultConfiguration, details:
    > domain.map.name=RoleResource, domain.map.location=RoleResource.map.xml, reason: map location not found
    > domain.node.name=Pointbase, domain.node.datasource=Pointbase.driver.xml, reason: DataSource load failed - [v.1.0.7 March 27 2004] Can't find DataSource configuration file at Pointbase.driver.xml
    > at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:557)
    > at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:117)
    > at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:185)
    > at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:279)
    > ... 6 more
    >
    > Does this mean that it expects the other xml files to be in the classpath, that is the map.xml and the driver.xml? If so then I have tried that out too and also put the driver jar in the classpath.
    > Could anymore please help me out.
    > Thanks.
    > Regards,
    > Sarvesh Naidu
    > Wholesale Portal Team
    > British Telecom
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Jul 27 2004 - 04:41:09 EDT