Dear all,
I have build a hapi-fhir-jpaserver with MySQL locally (based on your hapi-fhir-jpaserver-example fromhttps://github.com/jamesagnew/hapi-fhir/tree/master/hapi-fhir-jpaserver-example). I can successfully run the server by using command mvn jetty:run ; however, after I deployed the WAR file to Apache Tomcat/8.5.5, the server cannot be started and I got the following error in the log file:
04-Nov-2016 15:17:31.881 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ca.uhn.fhir.jpa.demo.FhirServerConfig: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: HAPI_PU] Unable to build Hibernate SessionFactory
Please see localhost_2016-11-04.txt for the complete log. Thank you.
Best,
Ren
... 42 more
Caused by: org.hibernate.search.exception.SearchException: Unable to create index directory: target/lucenefiles for index ca.uhn.fhir.jpa.entity.ResourceTable
at --
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/8d27f58e-bbdc-4eeb-afe5-7a6f1f82f7f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/d1595393-53cd-4603-a4bc-7e5c558ad9aa%40googlegroups.com.
Do I have to create a directory like root/Development/lucene/stu3/indexes manually and add the properties
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/20625d69-dad2-4518-95e3-c71e74b849f3%40googlegroups.com.
extraProperties.put("hibernate.search.default.indexBase", "target/lucenefiles");
And when I change the directory it is throwing this error
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/51d327b6-56ab-4aac-9033-900b50af15fb%40googlegroups.com.