Stream: hapi
Topic: Having trouble running a HAPI JPA Starter Server on an AWS L
Khalid Shahin (Dec 09 2020 at 22:18):
I was successfully able to run a HAPI JPA Starter server locally on my Windows computer, but I've had trouble in the past getting it to run on Linux systems. Now I'm trying to get it running on an Linux AWS server and I believe I'm running into the same problems that I think are related to Maven.
I had trouble getting the Docker image to work and running it in Maven directly on AWS server itself. What's the recommended way of deploying a HAPI server?
This is the error message that I'm currently running Maven
Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libhawtjni-runt
ime-java all 1.17-1 [28.8 kB]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
Am I going about this the right way? And is there any documentation on how to deploy HAPI to a Linux server, specifically AWS?
Jens Villadsen (Dec 09 2020 at 22:20):
have you tried eg:
docker run -p 8080:8080 hapiproject/hapi:latest
?
Jens Villadsen (Dec 09 2020 at 22:21):
It can be done in a range of different ways. See eg. https://github.com/hapifhir/hapi-fhir-jpaserver-starter
Khalid Shahin (Dec 09 2020 at 22:29):
The docker line seems to work. Now I'm having trouble figuring out how to connect to the endpoint. I'm new to the AWS world, so I'm going to look for the answer to this. Do you know where I should start?
Khalid Shahin (Dec 11 2020 at 18:43):
Never mind, I resolved the problem. I didn't have enough Memory for the AWS instance.
Vibin_chander (Dec 21 2020 at 11:22):
Always the easier solution is docker + more server memory
Last updated: Apr 12 2022 at 19:14 UTC