Announcement Announcement Module
Collapse
No announcement yet.
can't find context.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • can't find context.xml

    Hello,

    This may be the dumbest question but could anyone show me how to locate my context.xml file?

    I have :
    appContext = new ClassPathXmlApplicationContext("C:/eclipse/eclipse3.1/workspace/Lob2Portal/web/WEB-INF/appContext.xml");

    and it can't find it.

    Thanks in advance for your help.

    Sahra

  • #2
    Try using FileSystemXmlApplicationContext instead - ClassPathXmlApplicationContext will look for the file on the classpath rather than using standard file system paths.

    Alteratively, and preferably, put the context file on the classpath and then use ClassPathXmlApplicationContext.

    Rob

    Comment


    • #3
      Thank you! it works now!

      Sahra

      Comment

      Working...
      X