# Relative resource loading from classpath

**URL:** <https://forum.liquibase.org/t/relative-resource-loading-from-classpath/226>\
**Category:** General Discussion\
**Created:** [September 7, 2009, 12:33pm UTC](https://forum.liquibase.org/t/relative-resource-loading-from-classpath/226 "2009-09-07T12:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronpiterman](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@ronpiterman](https://forum.liquibase.org/u/ronpiterman)\
**Post date:** [September 7, 2009, 12:33pm UTC](https://forum.liquibase.org/t/relative-resource-loading-from-classpath/226/1 "2009-09-07T12:33:00Z")

</div>

Hi -

I am trying to integrate Liquibase in a spring configuration.

My changelog file is in META-INF/liquibase/main.xml

From there I have an

But it seems liquibase is trying to load r001.xml from the root of the classpath.

Should I use absolute names of resources ?

In the examples (best practices) relative paths are used, so this is somewhat puzzling…

Thanx,

Ron

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [September 7, 2009, 12:33pm UTC](https://forum.liquibase.org/t/relative-resource-loading-from-classpath/226/2 "2009-09-07T12:33:00Z")

</div>

There is a “relativeToChangelogFile” attribute that needs to be set to true, otherwise it looks them up from the root of your classapth.&nbsp; I’ll make sure the best practices doc is updated.

Nathan
