CalDAV Personal Binding Unresolved requirement "org.apache.commons.httpclient"

Hi,

I’m quite new to OpenHub and the Community here, but there is always the moment in time, were a man need some help :slight_smile:

I did some first steps with some integration of ZWave and MQTT. However, I’m struggling at the moment with CalDav integration, for reading my Nextcloud calender entries. Beside my production environment, I’m using a fresh Openhab docker installation based on Version 2.5.5 for CalDav integration, therefore there is no interference with the before mentioned integration.

So far I followed the instruction in web for CalDAV Personal Binding.

What i did:

  1. Put “org.openhab.io.caldav_1.8.0.201507310940.jar” file into the addon folder
  2. Created /openhab/services/caldavio.cfg file with the following content:
caldavio:privcal:url=https://******/remote.php/dav/calendars/******/personal
caldavio:privcal:username=*****
caldavio:privcal:password=*****
caldavio:privcal:reloadInterval=30
caldavio:privcal:preloadTime=1440
caldavio:privcal:disableCertificateVerification=false
caldavio:timeZone=Europe/Berlin
caldavio:muell:charset=UTF-8

3.) Created a file openhab/services/caldavPersonal.cfg with the following content:

caldavPersonal:usedCalendars=privcal

It seems that the jar file is detected but some dependencies are not resolved, creating the following error:

2020-05-21 10:30:21.957 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/openhab/addons/org.openhab.io.caldav_1.8.0.201507310940.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.caldav [237]
  Unresolved requirement: Import-Package: org.apache.commons.httpclient; version="3.1.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]
2020-05-21 10:30:31.964 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/openhab/addons/org.openhab.io.caldav_1.8.0.201507310940.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.caldav [237]
  Unresolved requirement: Import-Package: org.apache.commons.httpclient; version="3.1.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]

Does somebody already detected the same issue or has any idea about solution approach?
I already tried to find the missing jar file “org.apache.commons.httpclient” and put it in the addon_folder, but it doesn’t seem to solve the problem.

Any idea is welcome folks !! :slight_smile:

I can’t help with this specific error but in the new release this week a new iCalendar binding was released. If your calendar service supports iCal that might be a better option. I think NextCloud supports iCal.

Hi Rich,

thanks for the fast reply!! I gave ICal a chance and indeed, it seems to work with nextcloud. But it seems that iCal binding is limited show only the current event and next upcoming. Do you or somebody else could get ICal to show the next three to fife events? Or is there any other binding I could try for my calendar to show up in HabPanel?

All I can recommend is opening an issue on the iCal binding to ask for the feature. The developers might add it, might not.