Results 1 to 10 of 10

Thread: java.io.FileNotFoundException: class path resource cannot be resolved to URL ...

Threaded View

  1. #1
    Join Date
    May 2010
    Posts
    8

    Default java.io.FileNotFoundException: class path resource cannot be resolved to URL ...

    Hi,

    I've got project Web1 with -config.xml file:

    Code:
    <bean id="statisticResource"  class="org.springframework.core.io.FileSystemResource">
             <constructor-arg value="file-in-myjar.xml"/>
        </bean>
    file-in-myjar.xml - another -config.xml file whithin jar whithin Web1's lib directory:

    Web1
    |-WEB-INF
    |-config.xml
    |-lib
    |-myjar.jar
    |-file-in-myjar.xml


    But - I've got error:
    java.io.FileNotFoundException: class path resource [file-in-myjar.xml]
    cannot be resolved to URL because it does not exist

    Thank you.
    Last edited by zhyr; Aug 19th, 2010 at 09:34 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
  •