Do I need to do something special to run a Service implemented in Java?
I’m getting ClassNotFoundException when I try to run my service. Interestingly I cannot find any example of a working Java service.
As reference, the component repo is on github at: grozadanut/moqui-linic-legacy/
Caused by: java.lang.ClassNotFoundException: Class not found.
at org.moqui.util.MClassLoader.loadClassInternal(MClassLoader.java:433)
at org.moqui.util.MClassLoader.loadClass(MClassLoader.java:381)
at org.moqui.util.MClassLoader.loadClass(MClassLoader.java:370)
at org.moqui.impl.service.runner.JavaServiceRunner.runService(JavaServiceRunner.groovy:62)
This is my service definition:
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/service-definition-3.xsd">
<!-- moqui-linic-legacy & Related Services -->
<service verb="legacySync" noun="AllProducts" type="java"
location="ro.colibri.legacy.service.LegacySyncServices" method="syncAllProducts">
<description>
Synchronizes all ACTIVE products(no images) from the legacy database to the Moqui database. No stock, just initial data.
</description>
</service>
</services>