Hi
Having followed the instructions in the README I executed
mvn jetty:run
Firstly, in the logs I see a lot of warnings, as per extract below
...
[WARNING] org.hl7.fhir.r4.utils.formats.XmlLocationAnnotator$LocationDataHandler scanned from multiple locations: [jar:file:///home/joao/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-structures-r4/3.7.0/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationAnnotator$LocationDataHandler.class, jar:file:///home/joao/src/hapi-fhir-jpaserver-starter/target/jetty_overlays/hapi-fhir-testpage-overlay-3_7_0_war/WEB-INF/lib/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationAnnotator$LocationDataHandler.class]
[WARNING] org.hl7.fhir.r4.utils.format I suspect that may be the issues.XmlLocationAnnotator scanned from multiple locations: [jar:file:///home/joao/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-structures-r4/3.7.0/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationAnnotator.class, jar:file:///home/joao/src/hapi-fhir-jpaserver-starter/target/jetty_overlays/hapi-fhir-testpage-overlay-3_7_0_war/WEB-INF/lib/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationAnnotator.class]
[WARNING] org.hl7.fhir.r4.utils.formats.XmlLocationData scanned from multiple locations: [jar:file:///home/joao/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-structures-r4/3.7.0/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationData.class, jar:file:///home/joao/src/hapi-fhir-jpaserver-starter/target/jetty_overlays/hapi-fhir-testpage-overlay-3_7_0_war/WEB-INF/lib/hapi-fhir-structures-r4-3.7.0.jar!/org/hl7/fhir/r4/utils/formats/XmlLocationData.class]
...
Warning!
Failed to load conformance statement, error was: ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException: Failed to parse response from server when performing GET to URL
http://localhost/fhir/metadata - org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/
127.0.0.1] failed: Connection refused (Connection refused)
In the logs I see the following entry:
2019-02-21 09:32:32.845 [qtp1260390769-18] WARN ca.uhn.fhir.to.BaseController [BaseController.java:379] Failed to load conformance statement, error was: ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException: Failed to parse response from server when performing GET to URL
http://localhost/fhir/metadata - org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/
127.0.0.1] failed: Connection refused (Connection refused)
I suspect that given jetty is running on port 8080 by default, I may need to do some re-configuration, but it would be great if it did work out of the box.
At this point I would like to simply get the hapi-fhir stack running to the same level as the
http://hapi.fhir.org/ and just being able to create a patient as I can do in the online server as follows
curl -X POST \
-H 'content-type: application/json' \
-d '{
"resourceType": "Patient",
"name": [
{
"family": "Vicente",
"given": [
"Joao"
]
}
]
}'
It would also be great to, in the readme have instructions on how to smoke test the running server from command line (i.e. curl command to see the conformance statement and how to create a Patient)
Thanks,
Joao