Unable to run FHIR Jpa starter server

184 views
Skip to first unread message

Waqar Sadiq

unread,
Feb 20, 2022, 10:26:23 AM2/20/22
to HAPI FHIR
Hello,

I am new to FHIR and wanted to get the starter jpa server up and running.  However, after a couple of days of trying, I am still not able to run.  In most posts , people have proposed running in Docker.  I wanted to first run locally on my machine so that I understand it better.

Here is what I have done so far.

2) Modifier the application.yaml filer to swtich to a postgress datrabase.
3) I have tried to execute the command mvn clean install -P boot at the command line and get the several errors because of failing tests.  A summary of errors in are in the 1st screen shot attached.
4) When I try to run the project in IntelliJ by doing a right mouse click on the Application file, I get a bunch of errors.  The first few are all relating to inability of starting embedded tomcat server.  Please see the 2nd attached screenshot.
5) Finally I tried to install a separate tomcat instance and dropped the root.was created as a result of step 3 and it basically corrupted my tomcat installation.

Can some please help.  Ideally, all I want to do at this stage is to run FHRI jpa server start from IntelliJ so that I can understand how it works.

Your help is greatly appreciated.
 
Screen Shot 2022-02-20 at 9.15.56 AM.png
Screen Shot 2022-02-20 at 9.22.56 AM.png

Peter Robinson

unread,
Feb 20, 2022, 11:19:42 AM2/20/22
to Waqar Sadiq, HAPI FHIR
The easiest way to run the HAPI server on your local machine is with maven

mvn -Djetty.port=8888 jetty:run

The server is then available at http://localhost:8888/fhir/

-Peter

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/956cdb5e-4df7-41dd-86d6-e53ccdc5af5bn%40googlegroups.com.

Waqar Sadiq

unread,
Feb 20, 2022, 11:26:41 AM2/20/22
to HAPI FHIR

I wanted to start it in intellij so that I can debug as well to see what is going on.  Do you have any suggestions on how to run it from IntelliJ for debugging?  I think springboot uses the embedded tomcat server.  DO I need to add dependency for embedded tomcat?

Waqar Sadiq

unread,
Feb 20, 2022, 4:45:06 PM2/20/22
to HAPI FHIR
Hi Peter,

I got pas this point.  One of the exceptions embedded in this was about not being able to determine the database type.  Then I realized, that when I changed the database from the h2 to postgress, I forgot to also change the driver class name in application.yaml.

With that change, the server is coming up now.

Reply all
Reply to author
Forward
0 new messages