Help with Cayenne Deployment?

From: Michael Mangus (mdmangu..mail.com)
Date: Sat Feb 26 2005 - 04:32:30 EST

  • Next message: tnaki..ofthome.net: "Re: cayenne.xml not found - completely at a loss here..."

    Hi,

    I have no problems running the project in NetBeans or Eclipse. When I
    export the executable jar from eclipse and attempt to run the
    application I get the following error:

    [v.1.1 December 6 2004] Error during Configuration initialization.
    [v.1.1 December 6 2004] Load failures. Main configuration class:
    org.objectstyle.cayenne.conf.DefaultConfiguration, details:
    domain.map.name.NorthWind, domain.map.location=NorthWind.map.xml,
    reason: map location not found.
    I can get the application to run if I extract the jar.

    Current Layout of eclipse:

    Project CologDataImport
    src
        com.sewell.CologDataImport
               Main.java, etc
        com.sewell.CologDataImport.domain
        com.sewell.CologDataImport.domain.auto
        com.sewell.CologDataImport.util
        cayenne.xml
        Northwind.map.xml
        SRVR1DCNode.driver.xml

    lib
        com.microsoft.*
        org.apache.*
        org.objectstyle.*

    In my class that uses the DataContext:

    import org.objectstyle.cayenne.access.DataContext;
    import org.objectstyle.cayenne.query.SQLTemplate;
    import org.objectstyle.cayenne.conf.Configuration;
    import org.objectstyle.cayenne.access.DataDomain;
    ....

                Configuration conf = Configuration.getSharedConfiguration();
                DataDomain domain = conf.getDomain();
                
            DataContext context = DataContext.createDataContext();

    I am not sure what I need to do to get this to run as an exexcutable jar file.

    Thank you for your help!

    Michael



    This archive was generated by hypermail 2.0.0 : Sat Feb 26 2005 - 04:32:38 EST