Menu

NoClassDefFoundError for RXTXCommDriver in comm_linux

2012-12-26
2012-12-26
  • Guido Zockoll

    Guido Zockoll - 2012-12-26

    I tried to hijack the comm_linux bundle and the tjx10 bundle for my apache-karaf (based on felix) installation.

    I installed RXTXcomm-API 2.2.0-pre2 and comm_linux 2.0.0 with are both resolved. But during runtime i got

    org.osgi.framework.BundleException: Activator start error in bundle org.knopflerfish.bundle.comm-linux [92].
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at info.piayda.bundle.comm.linux.Activator.start(Activator.java:19)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
    ... 6 more

    As far as i can see, it should be visible:

    Symbolischer Name org.knopflerfish.bundle.comm-linux
    Version 2.0.0
    Bundle Location file:/home/guido/java/apache-karaf-2.3.0/deploy/comm-linux_all-2.0.0.jar
    Letzte Bundle Status Änderung Wed Dec 26 06:42:51 CET 2012
    Bundle Dokumentation http://www.knopflerfish.org/releases/3.4.0/docs/bundledoc/index.html?docpage=serial
    Vendor Piayda/RXTX
    Beschreibung Native driver for linux javax.comm using the RXTX library. Note that this bundle is LGPL and contains full source to rxtx
    Start Level 80
    Bundle Classpath .,RXTXcomm.jar,comm.jar
    Exportierte Packages javax.comm,version=2.0.0
    Importierte Packages gnu.io,version=2.2.0 from org.knopflerfish.bundle.rxtxcomm-API (91)
    org.osgi.framework,version=1.7.0 from org.apache.felix.framework (0)
    Importierende Bundles org.knopflerfish.bundle.tjx10 (93)

    gnu.io is on the bundle classpath and its imported from the other bundle.

    Does anyone have an idea whats happening?

    Regards,

    Guido

     
  • Guido Zockoll

    Guido Zockoll - 2012-12-26

    Sorry for double posting ... got an Error 500 from sf

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.