Announcement Announcement Module
Collapse
No announcement yet.
context:property-placeholder with env-entry Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • context:property-placeholder with env-entry

    Hello,

    I have been trying to use contextroperty-placeholder and env-entry together for a while with no good news.
    This is my jetty-env.xml

    Code:
        <New class="org.eclipse.jetty.plus.jndi.EnvEntry">
            <Arg>entorno</Arg>
            <Arg type="java.lang.String">dev</Arg>
            <Arg type="boolean">true</Arg>
        </New>
    Now this is my web.xml

    Code:
        <env-entry>
            <description></description>
            <env-entry-name>entorno</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
        </env-entry>
    And now this is my spring-config-business.xml

    Code:
        <context:property-placeholder
            location="classpath:application-server.properties,classpath:conf_environments/${entorno}/parameters.properties" />
    I tried this in many ways with no results at all.

    Code:
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [conf_environments/${entorno}/parameters.properties] cannot be opened because it does not exist
    What im missing?

    Thks in advance. Reggards.
Working...
X