DatabaseAccessorImpl | OPENING | Database - WARN - Database server is not available: 5051 ERROR_DB_UNAVAILABLE ( unable to load database driver: ["AppPathFileLoader error: 5051 ERROR_DB_UNAVAILABLE (jdbc driver file not configured, skipping)","Classpath error: 5051 ERROR_DB_UNAVAILABLE (java.lang.ClassNotFoundException error loading JDBC database driver from classpath: com.mysql.jdbc.Driver)"]) |
LocalDB is an embedded db stored under /WEB-INF by default unless you specify a path outside of pwm for the 'applicationPath' variable. This should be done in any case so all the config specific files like the configuarion file and such are stored outside of tomcat making upgrades easier. You can set it within tomcat's setenv.sh script located at /usr/share/tomcat(7/8)/bin and add
export PWM_APPLICATIONPATH=/opt/pwmdata
if setenv.sh does not exist then just create it. If you rename the pwm.war to something else then you also need to set that as SOMETHINGELSE_APPLICATIONPATH=/opt/pwmdata
Also, where did you put the mysql jar file? If you dropped that into PWM's classpath i.e (/WEB-INF/lib) then to save yourself more of a headache down the road, move that file to tomcats lib directory, i.e on Ubuntu, /usr/share/tomcat(7,8)/lib then restart tomcat. Now when you upgrade you dont have to worry about copying that file each time.