How to run HAPI FHIR server from Linux VM

110 views
Skip to first unread message

Josh Tindall

unread,
Oct 26, 2023, 3:08:02 PM10/26/23
to HAPI FHIR
Hi I am working on a senior design project using HAPI FHIR and I want to run the server from a Linux VM. In the documentation it states that you can run "hapi-fhir-cli run-server" to launch a server on localhost, however after downloading the necessary components, It says that "run-server" is an unrecognized command. Could anyone help me out?

Patrick Werner

unread,
Oct 26, 2023, 3:47:21 PM10/26/23
to Josh Tindall, HAPI FHIR
Hi, the easiest way to get your hapi running is using the jpastarter based docker images:


Sent from Outlook for iOS

From: hapi...@googlegroups.com <hapi...@googlegroups.com> on behalf of Josh Tindall <josh...@udel.edu>
Sent: Thursday, October 26, 2023 9:08:01 PM
To: HAPI FHIR <hapi...@googlegroups.com>
Subject: How to run HAPI FHIR server from Linux VM
 
Hi I am working on a senior design project using HAPI FHIR and I want to run the server from a Linux VM. In the documentation it states that you can run "hapi-fhir-cli run-server" to launch a server on localhost, however after downloading the necessary components, It says that "run-server" is an unrecognized command. Could anyone help me out?

--
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/e6c88cd9-aa24-46ed-b74b-1fd92c379ee3n%40googlegroups.com.

Josh Tindall

unread,
Oct 26, 2023, 3:57:49 PM10/26/23
to HAPI FHIR
Hi! Thank you for your quick response.

I've been having issues with docker and wanted to run the server using other methods. Is this possible or is docker the only way that I can get the server running?

Blessed Tabvirwa

unread,
Oct 26, 2023, 7:29:00 PM10/26/23
to HAPI FHIR
Hey Josh

Have a look at the readme at https://github.com/hapifhir/hapi-fhir-jpaserver-starter#running-locally

You can run it locally outside of docker using maven, there are some examples provided there.

Josh Tindall

unread,
Oct 27, 2023, 12:12:20 PM10/27/23
to HAPI FHIR
I have attempted this, but I still cannot get it running properly.  When I run "mvn jetty:run" with jdk 17 it gives me an error saying "unable to load cache item" so I looked up a solution online saying running it with jdk 11 would fix the issue. I then get an error saying "[ERROR] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message: [ERROR] HAPI FHIR is targeting JDK 11 for published binaries, but we require JDK 17 to build and test this library." So I am stuck here.
Reply all
Reply to author
Forward
0 new messages