Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3241

multiple spring context files being loaded because value of contextConfigLocation after running web mvc setup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Environment:
      1.3.0.BUILD-SNAPSHOT [rev 9433f85]

      Windows 7, STS 2.9.2.RELEASE, Websphere 7.0.0.19

      Description

      https://jira.springsource.org/browse/SEC-2034

      When the "web mvc setup" command is run, the web.xml is setup with the following path to the spring context files...

      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath*:META-INF/spring/applicationContext*.xml</param-value>
      </context-param>

      The first asterisk is the culprit for the spring config files (-spring.xml specifically) being picked up multiple times when running on Websphere 7.0.0.19 (The app deploys fine on Tomcat however). After I remove that asterisk, then the application loads fine

      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath:META-INF/spring/applicationContext*.xml</param-value>
      </context-param>

      Is there a reason for the first asterisk? If not, please remove. Thanks!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              iojohnso Isaac Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified