-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hapi.properties is gone #135
Comments
The hapi.properties has been replaced with application.yaml, per this PR: I do notice that the project README still refers to the hapi.properties file - @jvitrifork would you be able to update? |
sure - I'll have a look tomorrow |
I've updated my application.yaml with the postgres credentials, driver and dialect and it seems to be missing tables on start-up. Is postgres still supported? |
Caused by: org.springframework.batch.core.JobParametersInvalidException: There must be a valid number for readChunkSize, which is at least 1. You must include [resourceTypes] as a Job Parameter and Caused by: org.postgresql.util.PSQLException: ERROR: relation "hfj_search" does not exist |
what are you deploying and how? |
how did you build it? |
mvn clean install -DskipTests just running it locally. Joe-McCaffrey’s-MacBook-Pro:hapi-fhir-jpaserver-starter jmccaffrey$ java -version |
and how do you deploy it? There are from now on a couple of ways how to run/deploy it. I'll get to it tomorrow. If you have docker installed, may I suggest you try out the following:
|
I'll use k8s but I'm just doing a proof of concept at the moment |
I mean - do you deploy it into a running app server (eg. tomcat) or are you running it as spring boot application? |
mvn jetty:run is what I'm using (from the docs) |
|
Hi @jvitrifork i am observing the same problem like @JoeMcCaffrey . It does not startup with jetty. My application file: https://paste.ubuntu.com/p/NjDDWkJ72V/ Problem might come from here: Even it is set to PSQL in the hibernate section of my config file. |
@ZuSe thx - that gives me something to work with. |
@ZuSe until the doc gets updated- you can use eg.
-That should get you rolling with your settings |
let me know how that works out for you |
@jvitrifork Same issue. Still the wrong dialect: 2020-09-18 14:16:40.286 [main] INFO org.hibernate.Version [Version.java:44] HHH000412: Hibernate ORM core version 5.4.14.Final |
I have the same error ^ |
please try mvn clean package spring-boot:repackage -Pboot && java -jar target/hapi-fhir-jpaserver.war |
No dice, same thing |
okay mvn clean package jetty:run -Dspring.batch.job.enabled=false is working with changing properties.put("hibernate.dialect", "org.hibernate.dialect.PostgreSQL95Dialect"); in EnvironmentHelper.java H2 was hard coded when spring.jpa.properties == null |
thats a bug. I'm gonna have a look at it later today |
#138 addresses the issue |
@jvitrifork thanks! master is working for me with mvn clean package jetty:run -Dspring.batch.job.enabled=false connected to postgres |
@JoeMcCaffrey please close this if you are satisfied with the current solution |
Before closing this important issue, @jvitrifork, could you please explain how to override the configuration file? |
title
The text was updated successfully, but these errors were encountered: