Announcement Announcement Module
Collapse
No announcement yet.
applicationContext*.xml fails to load context files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • applicationContext*.xml fails to load context files

    I have the following code fragment in two different projects.

    Code:
            servletContext = new MockServletContext("");        
            servletContext.addInitParameter(ContextLoader.CONFIG_LOCATION_PARAM,
                                            "/WEB-INF/applicationContext*.xml");
    
            ServletContextListener contextListener = new ContextLoaderListener();
            ServletContextEvent event = new ServletContextEvent(servletContext);
            contextListener.contextInitialized(event);
    It works in one project, but not the other. For the one where it fails, I can spell out each context file and things proceed as expected. Using "/WEB-INF/applicationContext*.xml" works fine in my web.xml.

    Any idea what could be causing this? Could there be a JAR or something in my classpath that prevents the Ant syntax from working?

    Thanks,

    Matt

  • #2
    Could there be a JAR or something in my classpath that prevents the Ant syntax from working?
    Yep, sure enough! By removing corejsf-validator.jar from my classpath, it fixed the problem. Weird.

    Comment

    Working...
    X