# Fails to find Postgres Driver when launching as SpringBoot app

**URL:** <https://forum.flowable.org/t/fails-to-find-postgres-driver-when-launching-as-springboot-app/3230>\
**Category:** Flowable Engine\
**Created:** [January 13, 2019, 3:33am UTC](https://forum.flowable.org/t/fails-to-find-postgres-driver-when-launching-as-springboot-app/3230 "2019-01-13T03:33:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![temecom](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@temecom](https://forum.flowable.org/u/temecom)\
**Post date:** [January 13, 2019, 3:33am UTC](https://forum.flowable.org/t/fails-to-find-postgres-driver-when-launching-as-springboot-app/3230/1 "2019-01-13T03:33:06Z")

</div>

I am trying to run the stock WARs as SpringBoot applications connecting to Postgres according to the documentation: [https://www.flowable.org/docs/userguide/index.html#flowableUIApps](https://www.flowable.org/docs/userguide/index.html#flowableUIApps)

I am using command line:  
java -Dloader.path=$FLOWABLE\_HOME/libs -jar $FLOWABLE\_HOME/wars/flowable-idm.war /  
-Dspring.config.location=$FLOWABLE\_HOME/application.properties

$FLOWABLE\_HOME=~/DevelopmentTools/flowable-6.4.0/wars  
postgresql-42.2.5.jar is in the libs folder

SpringBoot fails with:  
Cannot load driver class: org.postgresql.Driver

Tried multiple combinations without luck. Will keep trying but anyone who has this running as advertised please help.

---

<div class="post-metadata">

**Author:** ![temecom](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@temecom](https://forum.flowable.org/u/temecom)\
**Post date:** [January 13, 2019, 4:45am UTC](https://forum.flowable.org/t/fails-to-find-postgres-driver-when-launching-as-springboot-app/3230/2 "2019-01-13T04:45:07Z")

</div>

Looks like a reported issue:

> <https://github.com/flowable/flowable-engine/issues/1394>

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [January 14, 2019, 7:39am UTC](https://forum.flowable.org/t/fails-to-find-postgres-driver-when-launching-as-springboot-app/3230/3 "2019-01-14T07:39:48Z")

</div>

Hey @temecom,

> [@temecom](#):
>
> I am using command line:  
> java -Dloader.path=$FLOWABLE\_HOME/libs -jar $FLOWABLE\_HOME/wars/flowable-idm.war /  
> -Dspring.config.location=$FLOWABLE\_HOME/application.properties

Unfortunately when using the an executable war you can’t use `loader.path` from Spring Boot. In order to make it work you have 2 options:

- Use a tomcat (or another application server) and put the postgres jdbc driver of those libs
- Patch the `flowable-idm.war` to include the postgres driver

Cheers,  
Filip
