Neo4j bean classes are not loaded in docker deployment version -


i have problem sessionfactory bean package scanning … application using spring boot , spring data neo4j … if run app via spring boot , works fine , of bean classes loaded in session factory without problem. problem shows when use docker deployment version… reasons packages not loaded in “org.neo4j.ogm.metadata.domaininfo” class … classnametoclassinfo map remains empty after initialization. in other words “return new sessionfactory(getconfiguration(), "xxx.xxx.xxx.beans");” not work docker deployment version.

has ever had similar issue ? idea?

as @luanne mentioned , filed issue in github this. found workaround solve this.the problem current version of neo4j ogm not support ".war" file scanning in classpathscanner class ... & unfortunately putting war file container. instead of putting ".war" in docker container , put ".jar" version of spring boot app in container , worked ! if deploying war in container not mandatory , can try solution , otherwise have wait till issue link resolved. :-)


Comments