I have the following code fragment in two different projects.
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.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);
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


Reply With Quote