Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-144

Spring Profiles not supported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • 3.0
    • None
    • None
    • Windows 7 professional
      Tomcat 7.0.32/JBoss eap 6.1
      Spring MVC 3.2.3

    Description

      When using profiles in Spring the active profile settings seem to get loss in application context initialization.

      Application/Servlet context gets initialized in the BlossomModuleSupport class which will be extended by the Mgnl module class.

      Usually there are a few ways to set the active profile in Spring (spring.profiles.active):

      1. via <context-param> in the web.xml
      2. via system property -Dspring.profiles.active=development
      3. setting the attribute profiles in the <bean> tag of the context definition
      4. by code calling setActiveProfile("development") of Springs ConfigurableEnvironment class

      The latter should automatically be called when providing the profile name via system property (VM arg).

      We tried system property, context-param and bean xml definition, no success.

      If the profile definition is missing several beans are just ignored during instantiation process.

      We use xml profile and annotation based profiles, this makes no difference.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              sigurd.rolfes Sigurd Rolfes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD