Uploaded image for project: 'OpenMRS Standalone'
  1. OpenMRS Standalone
  2. STAND-101

Spring injection should work in a Java Servlet

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Code Review (Post-Commit)
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Complexity:
      Low

      Description

      The FHIR2 module does not start when installed in the standalone version of OpenMRS because of this error:

      org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.openmrs.module.ModuleException: Unable to initialize servlet: org.openmrs.module.fhir2.web.servlet.FhirRestServlet@1550ced2 Module: fhir2
      	at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
      	at org.openmrs.web.Listener.contextInitialized(Listener.java:196)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: javax.servlet.ServletException: org.openmrs.module.ModuleException: Unable to initialize servlet: org.openmrs.module.fhir2.web.servlet.FhirRestServlet@1550ced2 Module: fhir2
      	at org.openmrs.web.Listener.startOpenmrs(Listener.java:274)
      	at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
      Caused by: org.openmrs.module.ModuleException: Unable to initialize servlet: org.openmrs.module.fhir2.web.servlet.FhirRestServlet@1550ced2 Module: fhir2
      	at org.openmrs.module.web.WebModuleUtil.loadServlets(WebModuleUtil.java:478)
      	at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:707)
      	at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:635)
      	at org.openmrs.web.Listener.startOpenmrs(Listener.java:266)
      	... 1 more
      Caused by: java.lang.NullPointerException
      	at org.openmrs.module.fhir2.web.servlet.FhirRestServlet.initialize(FhirRestServlet.java:54)
      	at ca.uhn.fhir.rest.server.RestfulServer.init(RestfulServer.java:1203)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      	at org.openmrs.module.web.WebModuleUtil.loadServlets(WebModuleUtil.java:474)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: