Re: Error loading project after selecting DBCPDataSourceFactory

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu May 03 2007 - 09:59:56 EDT

  • Next message: Gary Jarrel: "Re: Error loading project after selecting DBCPDataSourceFactory"

    Actually this issue is addressed in 2.0 and 3.0, so this is gotta be
    something else. Here is a relevant code, it handles location with or
    without extension:

             InputStream in = resourceLocator.findResourceStream(location);

             // try appending ".properties" extension..
             if (in == null && !location.endsWith(".properties")) {
                 in = resourceLocator.findResourceStream(location +
    ".properties");
             }

    Andrus

    On May 3, 2007, at 5:09 AM, Gary Jarrel wrote:

    > I believe one reason for this is that in your data node configuration
    > yuor dbcp properties file is specified as "dbcp.properties" try simply
    > specifying "dbcp" and ignoring the .properties extension.
    >
    > You'll probably wont be able to open this project in cayenne modeler
    > until you make the change manually in cayenne.xml file under the
    > node->datasource
    >
    > Hope this helps
    >
    > Cheers,
    >
    > Gary
    >
    > On 4/29/07, Ryan Holmes <rya..yperstep.com> wrote:
    > <snip>
    >



    This archive was generated by hypermail 2.0.0 : Thu May 03 2007 - 10:00:50 EDT