Maybe these will help...
http://www.objectstyle.org/cayenne/lists/cayenne-user/2004/09/0049.html
http://www.objectstyle.org/cayenne/lists/cayenne-user/2004/09/0056.html
http://www.objectstyle.org/cayenne/lists/cayenne-user/2005/01/0141.html
I. Venuti wrote:
> Hi,
>
> it is very interenting the possibility of using JNDI for configuration
> of my webapp.
> Unfortunatly I can have somo problems in the prodution enviroment for
> setting it (or for let the admin do it for me, obviusly ;) ).
>
> So I was thinking how to create multiple DataNodes and to set up the
> correct one at deploy.
> My Idea was to save cayenne.xml in /WEB-INF/classes and, inside it,
> poit to XML files located in a absolute location of the file system
> (e.g. /data/App/Conf/...).
>
> In this way the app.war can be deployted without any modification and
> I have to set up correctly the file in /data/App/Conf/... for every
> deployment.
>
> Unfortunatly this seems non to work. Infact I receive this message
> from cayenne:
>
> null - org.objectstyle.cayenne.ConfigurationException: [v.1.1.3
> September 28 2005] Error during Configuration initialization. [v.1.1.3
> September 28 2005] Load failures. Main configuration class:
> org.objectstyle.cayenne.conf.DefaultConfiguration, details:
> domain.map.name=jdbc-ITT,
> domain.map.location=/data_webapps/IttSanitaSrty/Cayenne/informix-caribel-ITT.map.xml,
> reason: map location not found
> domain.node.name=datanode,
> domain.node.datasource=/data_webapps/IttSanitaSrty/Cayenne/informix-caribel-datanode.driver.xml,
> reason: DataSource load failed - [v.1.1.3 September 28 2005] Can't
> find DataSource configuration file at
> /data_webapps/IttSanitaSrty/Cayenne/informix-caribel-datanode.driver.xml
> at
> org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:304)
>
> ...
>
>
>
> Anyone have tried this solution or some equivalent one?
> Thank in advance
>
> Ivan
>
This archive was generated by hypermail 2.0.0 : Tue Feb 21 2006 - 09:27:12 EST