play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

Unable to load class: ${database.driver} #303

Closed iandow closed 8 years ago

iandow commented 8 years ago

I've generated a war file for a play app that uses a postgres database driver, but when I deploy that to tomcat, the deploy fails and tomcat gives me an "Unable to load class: ${database.driver}" error. My app works fine from the activator. How do I get Tomcat to pickup the database driver specified in build.sbt?

dlecan commented 8 years ago

Can you give more information ? Play and Play2war versions, configuration files, full stacktraces...

iandow commented 8 years ago

I found that sbt dist serves my needs.

dlecan commented 8 years ago

Much better than deploying in an Application Server!