# Liquibase 3.1 and SpringLiquibase

**URL:** <https://forum.liquibase.org/t/liquibase-3-1-and-springliquibase/2849>\
**Category:** General Discussion\
**Created:** [January 16, 2014, 3:28am UTC](https://forum.liquibase.org/t/liquibase-3-1-and-springliquibase/2849 "2014-01-16T03:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [January 16, 2014, 3:28am UTC](https://forum.liquibase.org/t/liquibase-3-1-and-springliquibase/2849/1 "2014-01-16T03:28:00Z")

</div>

Glad you figured it out. Thanks for the update.

Nathan

---

<div class="post-metadata">

**Author:** ![kraymondksc](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kraymondksc](https://forum.liquibase.org/u/kraymondksc)\
**Post date:** [January 16, 2014, 3:28am UTC](https://forum.liquibase.org/t/liquibase-3-1-and-springliquibase/2849/2 "2014-01-16T03:28:00Z")

</div>

I’m running into an issue where liquibase update runs fine for me if I run through ant or the command line. &nbsp;I’m trying to also run an update at app startup using the SpringLiquibase bean but I’m running into an issue that I’m hoping someone might be able to help me with. &nbsp;

If the schema is currently up to date, when my app starts up and the SpringLiquibase initializes, Liquibase thinks that all changesets need to be applied causing a failure because tables with the same name try to get created.

If I create a new empty schema and the application startsup, Liquibase begins to apply changesets but fails with an error indicating that a table can’t be created because it already exists. &nbsp;The same changelog that works on the command line and ant doesn’t seem to execute properly using the SpringLiquibase bean.

I’ve checked to make sure that the connection parameters are the same in all cases and they are.

I’m currently using Liquibase 3.1 and MySQL 5.6.

Here is how my bean is defined:

1. 
2. 

The datasource being used is a c3p0 ComboPooledDataSource and the connection properties used to create it are the same connection properties that are used to run the ant updateDatabase task.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![un1389813959665r18id](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@un1389813959665r18id](https://forum.liquibase.org/u/un1389813959665r18id)\
**Post date:** [January 16, 2014, 3:28am UTC](https://forum.liquibase.org/t/liquibase-3-1-and-springliquibase/2849/3 "2014-01-16T03:28:00Z")

</div>

The issue was with the changelog path. &nbsp;The changelog path used in ant was different than the one used in the bean. &nbsp;I decided to use the logicalPath attribute of the changelog to fix this. &nbsp;
