No announcement yet.

Still struggling with admindaemon/gui due to OSGI errors re: classpath

  • Filter
  • Time
  • Show
Clear All
new posts

  • Still struggling with admindaemon/gui due to OSGI errors re: classpath

    I've yet to get the admin up and running under OS X 1.4 Tiger. Dunno if it's cuz I'm not on Linux but I doubt it. I can run any of this stuff under Eclipse, but the OSGI bundling gives me these errors re: getting access to common-logging.jar:

    I've tried to work this out myself but it's just not happening - and I'm burning time I need to spend elsewhere....

    Any ideas? TIA.

    !SESSION 2007-04-13 23:50:31.550 -----------------------------------------------
    java.vendor=Apple Computer, Inc.
    BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en
    Command-line arguments: -configuration file:/opt/open-xchange/etc/admindaemon/osgi/

    !ENTRY open_xchange_admin 4 0 2007-04-13 23:50:31.804
    !MESSAGE FrameworkEvent.ERROR
    !STACK 0
    org.osgi.framework.BundleException: The activator com.openexchange.admin.daemons.Activator for bundle open_xchange_admin is invalid
    at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(
    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(
    at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(
    at org.eclipse.osgi.framework.internal.core.AbstractB undle.resume(
    at org.eclipse.osgi.framework.internal.core.Framework .resumeBundle(
    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.resumeBundles(
    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.incFWSL(
    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.doSetStartLevel( 5)
    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.launch(
    at org.eclipse.osgi.framework.internal.core.SystemBun dle.resume(
    at org.eclipse.osgi.framework.internal.core.Framework .launch(
    at org.eclipse.osgi.framework.internal.core.OSGi.laun ch(
    at artup(
    at n(
    at in(
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at com.openexchange.admin.daemons.Activator.<clinit>(
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(
    at java.lang.reflect.Constructor.newInstance(Construc
    at java.lang.Class.newInstance0(
    at java.lang.Class.newInstance(
    at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(
    ... 14 more
    Root exception:
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

  • #2
    Workaround found....

    So the problem with OSGI was that I was using different versions of common-logging and mysql-connector than what was showing up in the OSGI config.

    A symlink between the standard versions of these jars to my newer versions seemed to fix the problem and I can now run the admindaemon and the cli commands.

    lrwxr-xr-x 1 root admin 23 Apr 14 12:17 /opt/open-xchange/lib/commons-logging.jar -> commons-logging-1.1.jar
    lrwxr-xr-x 1 root admin 34 Apr 14 13:37 /opt/open-xchange/lib/mysql-connector-java-3.1.13-bin.jar -> mysql-connector-java-5.0.4-bin.jar

    I'm not sure if I can tell OSGI to use these other jar versions or not (?), but at least I'm up and running now.