FHIR Chat · Unable to deploy hapi-fhir-jpaserver starter on Tomcat · hapi

Stream: hapi

Topic: Unable to deploy hapi-fhir-jpaserver starter on Tomcat


view this post on Zulip Divya Maheshkumar (Sep 14 2020 at 10:21):

I have checked out project from https://github.com/hapifhir/hapi-fhir-jpaserver-starter . Using mvn clean install I have build the hapi fhir jpaserver starter project and copied hapi-fhir-jpaserver.war in the webapps directory of Tomcat. My tomcat runs on port 8080 and while trying to access the url http://localhost:8080/hapi-fhir-jpaserver/ it gives 404 error. On checking Tomcat Manager app the status for fhir-jpa-server project is false and on trying to start it I get error FAIL - Application at context path /hapi-fhir-jpaserver could not be started.

I am able to run server using Maven and using command mvn -Djetty.port=8888 jetty:run but I want to deploy the project on external Web container(Tomcat)

Is there some configuration changes that I need to make to deploy on an external web container like Tomcat?

view this post on Zulip Jens Villadsen (Sep 14 2020 at 13:14):

if you're up for it - may I then suggest you try out the PR on https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/125/files

view this post on Zulip Jens Villadsen (Sep 14 2020 at 13:15):

then you dont need a tomcat - you can run it as a spring boot application

view this post on Zulip Divya Maheshkumar (Sep 15 2020 at 04:21):

Thank you. I was able to deploy and start it on Tomcat 8


Last updated: Apr 12 2022 at 19:14 UTC