Troubles packaging cayenne in a java GUI exe for windows

From: Troy McKinnon (TroyMcKinno..otmail.com)
Date: Mon Sep 15 2003 - 03:22:19 EDT

  • Next message: Holger Hoffstätte: "Re: Troubles packaging cayenne in a java GUI exe for windows"

    Hi all,

    I have been taking a little time learning some swing etc (Been to deep in the web dev - thought I would try something new.)

    I built a small 4 dialog java project and I was trying out, Cayenne, and JDataStores. (The 2 work very nicely together btw.)

    I was trying to make a all inclusive package of the app to email a friend but I can't seem to get it runnable. I even tried including all resources and required libs. The package seems to have everything. (even the .cayenne directory) Is what I am doing doable? Or am I missing something obvious?

    See error below.

    Thanks,

    Troy McKinnon

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I get the following error:

    Exception in thread "main" org.objectstyle.cayenne.ConfigurationException: [v.1.0rc1 July 21 2003] Error during Configuration init
    ialization. null
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:276)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:250)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:233)
            at org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:196)
            at org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.java:152)
            at com.mystuff.test.MainFrame.<init>(MainFrame.java:196)
            at com.mystuff.test.TestApp.<init>(TestApp.java:22)
            at com.mystuff.test.TestApp.main(TestApp.java:51)
    Caused by: java.lang.NullPointerException
            at org.objectstyle.cayenne.util.ResourceLocator.findURLInClassLoader(ResourceLocator.java:248)
            at org.objectstyle.cayenne.util.ResourceLocator.findResource(ResourceLocator.java:373)
            at org.objectstyle.cayenne.util.ResourceLocator.findResourceStream(ResourceLocator.java:292)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.getDomainConfiguration(DefaultConfiguration.java:226)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:164)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:268)
            ... 7 more



    This archive was generated by hypermail 2.0.0 : Mon Sep 15 2003 - 03:21:00 EDT