I’m trying to do some test code to work with the Exchange Web Service so we can ditch cfexchange and migrate from ACF to Lucee. I’ve installed ews-java-api-2.0.jar in Lucee (and restarted). I can instantiate the service fine:
<cfobject type="Java" class="microsoft.exchange.webservices.data.core.ExchangeService" name="service">
When I call service.init() It fails with the error:
Lucee 126.96.36.199-RC Error (java.lang.NoClassDefFoundError)
Which makes me think it is a dependency error. When I add
httpclient-4.4.1.jar and httpcore-4.4.1.jar and restart Lucee, I still get the error (Plus, I’m pretty sure Lucee already has these built in). Just to be thorough, I added all the dependencies listed here and all THEIR dependencies: https://mvnrepository.com/artifact/com.microsoft.ews-java-api/ews-java-api/2.0. Still get the same error. I’m not sure what else to try.
I’m running version Lucee 188.8.131.52-RC on Windows Server 2012 and I am using IIS 8.5.