Results 1 to 2 of 2

Thread: applicationContext*.xml fails to load context files

  1. #1
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Denver
    Posts
    249

    Default

    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.

Similar Threads

  1. Replies: 2
    Last Post: Jan 20th, 2009, 04:33 AM
  2. IOExceptions with application context files
    By seanoshea in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:02 AM
  3. Replies: 2
    Last Post: Jul 27th, 2005, 10:21 AM
  4. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  5. Replies: 3
    Last Post: Apr 15th, 2005, 08:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •