Stream: implementers
Topic: Set up of hapi-fhir-jpaserver-example builds but doesn't ru
Florian Ulbrich (Dec 06 2019 at 10:31):
Hello, I downloaded the latest version of the happy-fhir-master, cd to happy-fhir-jpaserver-example and build it with mvn install which succeeded. After that I used mvn jetty:run to start the server, but I get an error: console-output.rtf
I think the problem might be Failed startup of context o.e.j.m.p.JettyWebAppContext@55044b34{/hapi-fhir-jpaserver-example but I have no clue how to solve this.
The end of the console says jetty has started, but I get a HTTP 503. My Specs are JDK 12, MVN 3.6.3.
I appreciate any help :)
Patrick Werner (Dec 06 2019 at 11:03):
Hi, the example project is deprecated for a while. It was extracted/replaced into: https://github.com/hapifhir/hapi-fhir-jpaserver-starter
Florian Ulbrich (Dec 06 2019 at 11:13):
Thanks for the response, the build of this starter project worked, but I get the same result with the failed startup of the context o.e.j.m.p.JettyWebAppContext@70ede57d.
[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@70ede57d{/hapi-fhir-jpaserver,[file:///Users/florian/Desktop/hapi-fhir-jpaserver-starter-master/src/main/webapp/, file:///Users/florian/Desktop/hapi-fhir-jpaserver-starter-master/target/jetty_overlays/hapi-fhir-testpage-overlay-4_1_0_war/, jar:file:///Users/florian/.m2/repository/org/webjars/bower/awesome-bootstrap-checkbox/1.0.1/awesome-bootstrap-checkbox-1.0.1.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/select2/4.0.3/select2-4.0.3.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/bower/jquery/3.3.1/jquery-3.3.1.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/Eonasdan-bootstrap-datetimepicker/4.17.43/Eonasdan-bootstrap-datetimepicker-4.17.43.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/font-awesome/5.8.2/font-awesome-5.8.2.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/jquery/1.11.1/jquery-1.11.1.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/bootstrap/3.3.7/bootstrap-3.3.7.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/bower/moment/2.15.1/moment-2.15.1.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/momentjs/2.10.3/momentjs-2.10.3.jar!/META-INF/resources, jar:file:///Users/florian/.m2/repository/org/webjars/jstimezonedetect/1.0.6/jstimezonedetect-1.0.6.jar!/META-INF/resources],UNAVAILABLE}{file:///Users/florian/Desktop/hapi-fhir-jpaserver-starter-master/src/main/webapp/}
java.lang.RuntimeException: Error scanning entry org/h2/util/NetUtils2.class from jar file:///Users/florian/.m2/repository/com/h2database/h2/1.4.200/h2-1.4.200.jar
at org.eclipse.jetty.annotations.AnnotationParser.lambda$parseJar$0 (AnnotationParser.java:883)
at java.util.TreeMap$ValueSpliterator.forEachRemaining (TreeMap.java:2890)
at java.util.stream.ReferencePipeline$Head.forEach (ReferencePipeline.java:658)
at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser.java:875)
at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:839)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (AnnotationConfiguration.java:161)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationConfiguration.java:468)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:626)
at java.lang.Thread.run (Thread.java:835)
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init> (ClassReader.java:160)
at org.objectweb.asm.ClassReader.<init> (ClassReader.java:143)
at org.objectweb.asm.ClassReader.<init> (ClassReader.java:418)
at org.eclipse.jetty.annotations.AnnotationParser.scanClass (AnnotationParser.java:933)
at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry (AnnotationParser.java:918)
at org.eclipse.jetty.annotations.AnnotationParser.lambda$parseJar$0 (AnnotationParser.java:879)
at java.util.TreeMap$ValueSpliterator.forEachRemaining (TreeMap.java:2890)
at java.util.stream.ReferencePipeline$Head.forEach (ReferencePipeline.java:658)
at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser.java:875)
at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:839)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (AnnotationConfiguration.java:161)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationConfiguration.java:468)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:626)
at java.lang.Thread.run (Thread.java:835)
[INFO] Started ServerConnector@4ced17f3{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[INFO] Started @3644ms
[INFO] Started Jetty Server
Last updated: Apr 12 2022 at 19:14 UTC