How can I load external jar libraries in the Moqui project? -
i trying integrate apache solr moqui. not able access solr api. have placed solr jar in framework/lib directory getting exception when trying run service tools section.
error running groovy script (org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: general error during class generation: java.lang.noclassdeffounderror: unable load class org.apache.solr.client.solrj.impl.httpsolrclient due missing dependency org/apache/http/entity/mime/content/contentbody
is there other configuration need do, use solr api?
in general best not modify under framework directory, configuration files such properties files should overridden adding them in runtime/classes directory or in /classes directory.
in case have jar framework/lib directory have add framework/build.gradle file , gradle build jar file added moqui war file.
the better approach add runtime/lib directory or better when using jar file in code in component add /classes directory (the making apps moqui book has more info this).
more generally, why use solr? elasticsearch included moqui , used (and enhanced) various framework features.
Comments
Post a Comment