ERROR Cannot run updater: ...MultipleCompilationErrorsException: startup failed: updater: 4: unable to resolve class nl.company.cms.utils.OurCustomUtilClass
Groovy script:
The script uses a specific utility class to search&load config property files from the classpath. Both utility class and props are located into the -cms module (plugin) jars. So should be available on the classpath of the CMS war application.
Setup test environment:
We've separated the Site and CMS wars to run on different tomcat instances. To do this the Site war is deployed with an additional Repository war, so it has all required dependencies like the RepositoryServlet. This strategy is described in http://www.onehippo.org/library/deployment/supported-deployments.html (option 2).
Our observation...
...is that the Groovy script (during redeployment) runs on the Site tomcat instance (probably triggered by the Repository WAR). Therefore, it cannot find the OurCustomUtilClass. In my opinion this is undesired behavior because:
Thanks and regards,Bart Vreeken