Multiple deploys in different enviroments [was Re: username/password in node xml definition]

From: I. Venuti (i.venut..aribel.it)
Date: Tue Feb 21 2006 - 03:25:01 EST

  • Next message: Tomi NA: "Re: username/password in node xml definition"

    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 - 03:25:16 EST