Issues running hapi-fhirstarters-simple-server

205 views
Skip to first unread message

Justin Di Stefano

unread,
Jul 12, 2022, 11:45:02 AM7/12/22
to HAPI FHIR
I am having issues attempting to run the hapi-fhirstarters-simple-server locally. I am using Windows, and it does seem to build just fine; however, when I try to run it using mvn jetty:run, I receive an error; any help would be appreciated!

I've pasted the full console output below, but the core errors seems to be:

Error scanning entry ca/uhn/fhir/rest/api/server/IBundleProvider.class from jar file:///C:/Users/JDiStefano/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-server/6.0.0/hapi-fhir-server-6.0.0.jar

C:\fhirstarters-master\java\hapi-fhirstarters-simple-server>mvn jetty:run
[INFO] Scanning for projects...
[INFO]
[INFO] ----------< furore.github.io:hapi-fhirstarters-simple-server >----------
[INFO] Building HAPI FHIR Server Example 5.0.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.4.7.v20170914:run (default-cli) > test-compile @ hapi-fhirstarters-simple-server >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hapi-fhirstarters-simple-server ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ hapi-fhirstarters-simple-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hapi-fhirstarters-simple-server ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\fhirstarters-master\java\hapi-fhirstarters-simple-server\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ hapi-fhirstarters-simple-server ---
[INFO] No sources to compile
[INFO]
[INFO] <<< jetty-maven-plugin:9.4.7.v20170914:run (default-cli) < test-compile @ hapi-fhirstarters-simple-server <<<
[INFO]
[INFO]
[INFO] --- jetty-maven-plugin:9.4.7.v20170914:run (default-cli) @ hapi-fhirstarters-simple-server ---
[INFO] Configuring Jetty for project: HAPI FHIR Server Example
[INFO] webAppSourceDirectory not set. Trying src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] nonBlocking:false
[INFO] Classes = C:\fhirstarters-master\java\hapi-fhirstarters-simple-server\target\classes
[INFO] Logging initialized @3316ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] Context path = /
[INFO] Tmp directory = C:\fhirstarters-master\java\hapi-fhirstarters-simple-server\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = file:///C:/fhirstarters-master/java/hapi-fhirstarters-simple-server/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = C:\fhirstarters-master\java\hapi-fhirstarters-simple-server\src\main\webapp
[INFO] jetty-9.4.7.v20170914
[INFO] Scanning elapsed time=1510ms
[WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@41853299{/,file:///C:/fhirstarters-master/java/hapi-fhirstarters-simple-server/src/main/webapp/,UNAVAILABLE}{file:///C:/fhirstarters-master/java/hapi-fhirstarters-simple-server/src/main/webapp/}
org.eclipse.jetty.util.MultiException: Multiple exceptions
    at org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations (AnnotationConfiguration.java:450)
    at org.eclipse.jetty.annotations.AnnotationConfiguration.configure (AnnotationConfiguration.java:363)
    at org.eclipse.jetty.webapp.WebAppContext.configure (WebAppContext.java:517)
    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1471)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:785)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart (ServletContextHandler.java:261)
    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:545)
    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:434)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:131)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:113)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:113)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:167)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:131)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:113)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:113)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start (ContainerLifeCycle.java:131)
    at org.eclipse.jetty.server.Server.start (Server.java:449)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (ContainerLifeCycle.java:105)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:113)
    at org.eclipse.jetty.server.Server.doStart (Server.java:416)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:68)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:467)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:333)
    at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (JettyRunMojo.java:180)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke (Method.java:577)
    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.eclipse.jetty.util.MultiException: Multiple exceptions
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser.java:898)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:857)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:679)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:597)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.RuntimeException: Error scanning entry ca/uhn/fhir/rest/api/server/IBundleProvider.class from jar file:///C:/Users/JDiStefano/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-server/6.0.0/hapi-fhir-server-6.0.0.jar
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser.java:911)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:857)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:679)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:597)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.IllegalArgumentException
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass (AnnotationParser.java:979)
    at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry (AnnotationParser.java:960)
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar (AnnotationParser.java:907)
    at org.eclipse.jetty.annotations.AnnotationParser.parse (AnnotationParser.java:857)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call (AnnotationConfiguration.java:159)
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run (AnnotationConfiguration.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:679)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:597)
    at java.lang.Thread.run (Thread.java:833)
[INFO] Started ServerConnector@5dfe23e8{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[INFO] Started @5604ms
[INFO] Started Jetty Server

iron bae

unread,
Nov 29, 2022, 7:35:49 PM11/29/22
to HAPI FHIR
I have same issue. 
How to solve this errors. 


2022년 7월 13일 수요일 오전 12시 45분 2초 UTC+9에 jus...@lostportal.net님이 작성:

Mancini Channakeshava

unread,
Jan 16, 2023, 6:30:02 AM1/16/23
to HAPI FHIR

Did anyone resolve this issue, can anyone please help, since I'm also facing same issue to bring up  hapi-fhirstarters-rest-server-skeleton project, its giving the below error,

Failed startup of context o.e.j.m.p.JettyWebAppContext@35ef439e{/,[file:///C:/karkinos-work/karkinos/hapi-fhir/fhirstarters/java/hapi-fhirstarters-rest-server-skeleton/src/main/webapp/, file:///C:/karkinos-work/karkinos/hapi-fhir/fhirstarters/java/hapi-fhirstarters-rest-server-skeleton/target/jetty_overlays/hapi-fhir-testpage-overlay-6_0_0_war/],UNAVAILABLE}{file:///C:/karkinos-work/karkinos/hapi-fhir/fhirstarters/java/hapi-fhirstarters-rest-server-skeleton/src/main/webapp/}
[1;31morg.eclipse.jetty.util.MultiException [m: [1;31mMultiple exceptions [m
    [1mat [m org.eclipse.jetty.util.MultiException.ifExceptionThrow ( [1mMultiException.java:124 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations ( [1mAnnotationConfiguration.java:506 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration.configure ( [1mAnnotationConfiguration.java:368 [m)
    [1mat [m org.eclipse.jetty.webapp.WebAppContext.configure ( [1mWebAppContext.java:517 [m)
    [1mat [m org.eclipse.jetty.webapp.WebAppContext.startContext ( [1mWebAppContext.java:1454 [m)
    [1mat [m org.eclipse.jetty.server.handler.ContextHandler.doStart ( [1mContextHandler.java:847 [m)
    [1mat [m org.eclipse.jetty.servlet.ServletContextHandler.doStart ( [1mServletContextHandler.java:287 [m)
    [1mat [m org.eclipse.jetty.webapp.WebAppContext.doStart ( [1mWebAppContext.java:545 [m)
    [1mat [m org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart ( [1mJettyWebAppContext.java:428 [m)
    [1mat [m org.eclipse.jetty.util.component.AbstractLifeCycle.start ( [1mAbstractLifeCycle.java:68 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.start ( [1mContainerLifeCycle.java:138 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.doStart ( [1mContainerLifeCycle.java:117 [m)
    [1mat [m org.eclipse.jetty.server.handler.AbstractHandler.doStart ( [1mAbstractHandler.java:113 [m)
    [1mat [m org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart ( [1mContextHandlerCollection.java:168 [m)
    [1mat [m org.eclipse.jetty.util.component.AbstractLifeCycle.start ( [1mAbstractLifeCycle.java:68 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.start ( [1mContainerLifeCycle.java:138 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.doStart ( [1mContainerLifeCycle.java:117 [m)
    [1mat [m org.eclipse.jetty.server.handler.AbstractHandler.doStart ( [1mAbstractHandler.java:113 [m)
    [1mat [m org.eclipse.jetty.util.component.AbstractLifeCycle.start ( [1mAbstractLifeCycle.java:68 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.start ( [1mContainerLifeCycle.java:138 [m)
    [1mat [m org.eclipse.jetty.server.Server.start ( [1mServer.java:416 [m)
    [1mat [m org.eclipse.jetty.util.component.ContainerLifeCycle.doStart ( [1mContainerLifeCycle.java:108 [m)
    [1mat [m org.eclipse.jetty.server.handler.AbstractHandler.doStart ( [1mAbstractHandler.java:113 [m)
    [1mat [m org.eclipse.jetty.server.Server.doStart ( [1mServer.java:383 [m)
    [1mat [m org.eclipse.jetty.util.component.AbstractLifeCycle.start ( [1mAbstractLifeCycle.java:68 [m)
    [1mat [m org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty ( [1mAbstractJettyMojo.java:477 [m)
    [1mat [m org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute ( [1mAbstractJettyMojo.java:343 [m)
    [1mat [m org.eclipse.jetty.maven.plugin.JettyRunMojo.execute ( [1mJettyRunMojo.java:169 [m)
    [1mat [m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo ( [1mDefaultBuildPluginManager.java:137 [m)
    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ( [1mMojoExecutor.java:370 [m)
    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ( [1mMojoExecutor.java:351 [m)
    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:215 [m)
    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:171 [m)
    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:163 [m)
    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:117 [m)
    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:81 [m)
    [1mat [m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ( [1mSingleThreadedBuilder.java:56 [m)
    [1mat [m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ( [1mLifecycleStarter.java:128 [m)
    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:294 [m)
    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:192 [m)
    [1mat [m org.apache.maven.DefaultMaven.execute ( [1mDefaultMaven.java:105 [m)
    [1mat [m org.apache.maven.cli.MavenCli.execute ( [1mMavenCli.java:960 [m)
    [1mat [m org.apache.maven.cli.MavenCli.doMain ( [1mMavenCli.java:293 [m)
    [1mat [m org.apache.maven.cli.MavenCli.main ( [1mMavenCli.java:196 [m)
    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 ( [1mNative Method [m)
    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke ( [1mNativeMethodAccessorImpl.java:62 [m)
    [1mat [m jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke ( [1mDelegatingMethodAccessorImpl.java:43 [m)
    [1mat [m java.lang.reflect.Method.invoke ( [1mMethod.java:566 [m)
    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ( [1mLauncher.java:282 [m)
    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launch ( [1mLauncher.java:225 [m)
    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ( [1mLauncher.java:406 [m)
    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.main ( [1mLauncher.java:347 [m)
[1mCaused by [m: java.lang.RuntimeException: [1;31mError scanning entry ca/uhn/fhir/context/BaseRuntimeChildDefinition$IAccessor.class from jar file:///C:/Users/mancini.channakeshav/.m2/repository/ca/uhn/hapi/fhir/hapi-fhir-base/6.0.0/hapi-fhir-base-6.0.0.jar [m
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.lambda$parseJar$0 ( [1mAnnotationParser.java:880 [m)
    [1mat [m java.util.TreeMap$ValueSpliterator.forEachRemaining ( [1mTreeMap.java:2890 [m)
    [1mat [m java.util.stream.ReferencePipeline$Head.forEach ( [1mReferencePipeline.java:658 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.parseJar ( [1mAnnotationParser.java:872 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.parse ( [1mAnnotationParser.java:836 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call ( [1mAnnotationConfiguration.java:163 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration$1.run ( [1mAnnotationConfiguration.java:471 [m)
    [1mat [m org.eclipse.jetty.util.thread.QueuedThreadPool.runJob ( [1mQueuedThreadPool.java:765 [m)
    [1mat [m org.eclipse.jetty.util.thread.QueuedThreadPool$2.run ( [1mQueuedThreadPool.java:683 [m)
    [1mat [m java.lang.Thread.run ( [1mThread.java:834 [m)
[1mCaused by [m: java.lang.UnsupportedOperationException
    [1mat [m org.objectweb.asm.ClassVisitor.visitNestHostExperimental ( [1mClassVisitor.java:158 [m)
    [1mat [m org.objectweb.asm.ClassReader.accept ( [1mClassReader.java:541 [m)
    [1mat [m org.objectweb.asm.ClassReader.accept ( [1mClassReader.java:391 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.scanClass ( [1mAnnotationParser.java:933 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry ( [1mAnnotationParser.java:917 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.lambda$parseJar$0 ( [1mAnnotationParser.java:876 [m)
    [1mat [m java.util.TreeMap$ValueSpliterator.forEachRemaining ( [1mTreeMap.java:2890 [m)
    [1mat [m java.util.stream.ReferencePipeline$Head.forEach ( [1mReferencePipeline.java:658 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.parseJar ( [1mAnnotationParser.java:872 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationParser.parse ( [1mAnnotationParser.java:836 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call ( [1mAnnotationConfiguration.java:163 [m)
    [1mat [m org.eclipse.jetty.annotations.AnnotationConfiguration$1.run ( [1mAnnotationConfiguration.java:471 [m)
    [1mat [m org.eclipse.jetty.util.thread.QueuedThreadPool.runJob ( [1mQueuedThreadPool.java:765 [m)
    [1mat [m org.eclipse.jetty.util.thread.QueuedThreadPool$2.run ( [1mQueuedThreadPool.java:683 [m)
    [1mat [m java.lang.Thread.run ( [1mThread.java:834 [m)
[ [1;34mINFO [m] Started ServerConnector@21e45a6f{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[ [1;34mINFO [m] Started @4749ms
[ [1;34mINFO [m] Started Jetty Server
Reply all
Reply to author
Forward
0 new messages