Hello Andrus,
I tried what you suggested, sorry to say "It didnt work".
The application is too complicated.
I am prity sure adding the XMLs to the jar file "should" work, but it does
not.
I use custom framework and the class which call the Cayenne.xml is there.
Configuration conf = Configuration.getSharedConfiguration();
domain = conf.getDomain( domainName );
The solution: I added the path to the Cayenne.xml file to the classpath of
TomCat.
I am really fan from Cayenne. You make a great job. I have only a little
please, maybe its possible to make a last solution which always work
something like adding the full path to the application like
"c:/myPath/Cayenne.xml".
If it is not possible is also ok.
Thanks for help.
peaSakoe
----- Original Message -----
From: "Andrus Adamchik" <andru..bjectstyle.org>
To: <cayenne-use..ncubator.apache.org>
Sent: Tuesday, April 04, 2006 3:16 PM
Subject: Re: Cayenne.xml not found.
> There are probably more elegant solutions, but here is a simple one -
> package all XML files in appName.jar.
>
> Andrus
>
>
> On Apr 4, 2006, at 4:47 PM, WONDER wrote:
>
> > Well the Structure looks like
> > ------------------------------------------------------------
> > AppName
> > + META-INF
> > + WEB-INF
> > + Frameworks
> > + lib
> > + PhotoAlbum.woa
> > ++ Contents
> > +++ Resources
> > ++++ Java
> > +++++ appName.jar // this is the application
> > jar
> > file.
> > +++++ Cayenne.xml
> > +++++ another Cayenne.xml files.
> > + web.xml
>
>
This archive was generated by hypermail 2.0.0 : Tue Apr 04 2006 - 10:03:18 EDT