Announcement Announcement Module
Collapse
No announcement yet.
<import resource="classpath:..."/> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <import resource="classpath:..."/>

    I have a config that imports a file from the classpath:
    <import resource="classpath:applicationContext-domain.xml" />
    The file lives in a jar that is included as a Maven dependency.
    Spring IDE says it could not locate the file:

    Failed to import bean definitions from URL location [classpath:applicationContext-dataSource-c3p0.xml]: class path resource [applicationContext-dataSource-c3p0.xml] cannot be opened because it does not exist.

    Any way to fix this?


    I have also tried adding the dependency as an Eclipse project; Properties-->Project-->Projects-->Add

    I verified the JAR dependency has the required file:
    jar ft scs-jar-0.1.5-SNAPSHOT.jar | grep c3p0
    applicationContext-dataSource-c3p0.xml

    Thanks,
    --Michael

  • #2
    add the file to your manifest entry list.

    Comment


    • #3
      sorry- i'm not clear on what that means.
      place a MANIFEST.MF file in my eclipse project and add an entry?

      Comment

      Working...
      X