albogdano on master
fixed password length issues (compare)
albogdano on snyk-upgrade-0ef1e7527e09e0691e65eb5516ae26f3
albogdano on master
updated Mongo driver (compare)
albogdano on snyk-upgrade-d5e3ba4e57554b060658b078d7216073
albogdano on snyk-fix-c2eda529cc2defdddddf486ce44f34b3
albogdano on master
fixed max password length shoul… (compare)
albogdano on snyk-upgrade-edc2861f6c2480027cd508719546c883
albogdano on master
updated Nimbus JOSE lib (compare)
albogdano on snyk-fix-c2eda529cc2defdddddf486ce44f34b3
fix: para-server/pom.xml to red… (compare)
albogdano on snyk-fix-c2eda529cc2defdddddf486ce44f34b3
albogdano on master
added max length for user passw… (compare)
albogdano on snyk-upgrade-d5e3ba4e57554b060658b078d7216073
fix: upgrade org.springframewor… (compare)
Hello! I try to run para-jar with MySQL with following configuration but It looks to run with H2DB.
para.env = "development"
para.sql.driver = "com.mysql.jdbc.Driver"
para.sql.url = "mysql://127.0.0.1:3306/para_qa"
para.sql.user = "test"
para.sql.password = "test"
para.dao = "SqlDAO"
This is mvn command to run para-jar.
./mvnw -Dconfig.file=../application.conf spring-boot:run
And following console log is displayed.
[INFO] Attaching agents: []
____ ___ _ ____ ___ _
/ __ \/ __` / ___/ __` /
/ /_/ / /_/ / / / /_/ /
/ .___/\__,_/_/ \__,_/ v1.40.0
/_/
2021-09-05 14:20:45 [INFO ] --- Para.initialize() [production] ---
2021-09-05 14:20:45 [INFO ] Loaded new DAO, Search and Cache implementations - H2DAO, LuceneSearch and CaffeineCache.
2021-09-05 14:20:46 [WARN ] Server is unhealthy - root app not found. Open http://localhost:8080/v1/_setup in the browser to initialize Para.
Is there anything what I have to configure to run para with MySQL ?
SqlDAO
is not actually loaded and Para starts with the default H2DAO
. Make sure the configuration is loaded by specifying the full path to the application.conf
file
@albogdano, Thank you for advice , but it's not work for me.
I wonder why I get log message Para.initialize() [production]
even though I set para.env=development
in config file.
I try another command like below.
./mvnw -Pbase clean package spring-boot:repackage && java -Dconfig.file=/Users/.../para/application.conf -jar target/para-1.40.0.jar
Then I got following log.
[INFO] ------------------------------------------------------------------------
____ ___ _ ____ ___ _
/ __ \/ __` / ___/ __` /
/ /_/ / /_/ / / / /_/ /
/ .___/\__,_/_/ \__,_/ v1.40.0
/_/
2021-09-05 20:59:56 [INFO ] --- Para.initialize() [development] ---
2021-09-05 20:59:56 [INFO ] Loaded new DAO, Search and Cache implementations - MockDAO, MockSearch and CaffeineCache.
2021-09-05 20:59:57 [WARN ] Server is unhealthy - root app not found. Open http://localhost:8080/v1/_setup in the browser to initialize Para.
It seems para-jar is loading correct application.conf but It looks loading MockDAO instead of MySQL .
I checked mysql schema but I can't find any tables generated by application.
I tested both absolute path and relative path for -Dconfig.file
parameter but nothing has changed.
In any case do we get MockDAO
in console log ?