hapi-fhir-jpaserver-starter icon indicating copy to clipboard operation
hapi-fhir-jpaserver-starter copied to clipboard

unable to start from IntelliJ as Spring Boot

Open tandara0 opened this issue 2 years ago • 3 comments

I tried to run hapi-fhir-jpaserver from IntelliJ, but failed.

The error message: ... 2023-02-01 18:02:37.921 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java:376] Bean 'ca.uhn.fhir.jpa.config.BeanPostProcessorConfig' of type [ca.uhn.fhir.jpa.config.BeanPostProcessorConfig$$EnhancerBySpringCGLIB$$de8198a2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-02-01 18:02:37.966 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext [AbstractApplicationContext.java:591] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.context.MissingWebServerFactoryBeanException: No qualifying bean of type 'org.springframework.boot.web.servlet.server.ServletWebServerFactory' available: Unable to start AnnotationConfigServletWebServerApplicationContext due to missing ServletWebServerFactory bean

2023-02-01 18:02:37.991 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter [LoggingFailureAnalysisReporter.java:40]


APPLICATION FAILED TO START


Description:

Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.

Action:

Check your application's dependencies for a supported servlet web server. Check the configured web application type.

Process finished with exit code 1

tandara0 avatar Feb 01 '23 09:02 tandara0

belows are some important settings

ACTIVE_PROFILES: boot java: 17.0.6-zulu SPRING_BOOT_MAIN_CLASS: ca.uhn.fhir.jpa.starter.Application

tandara0 avatar Feb 01 '23 09:02 tandara0

I have the same problem. I can run using % man clean spring-boot: run -Pboot but get the above error in IntelliJ when I run Application (the class). I would like to be able to debug conveniently in IntelliJ.

GregHendley avatar Mar 08 '23 21:03 GregHendley

Not sure if your answer is here, but there was a chat not too long ago about running in IntelliJ. Maybe worth looking over - https://chat.fhir.org/#narrow/stream/179167-hapi/topic/IntelliJ.20Setup.20for.20Hapi.20Fhir.20Starter

XcrigX avatar Mar 08 '23 21:03 XcrigX

Closing as stale

jkiddo avatar Apr 16 '24 17:04 jkiddo