OSGi Bundle-ClassPath

Generic1

Top Contributor
Hallo,

ich will in meinem Bundle externe JARs verwenden. Ohne diese externen JARs funktionierts einwandfrei, wenn ich die externen JARs zum Bundle-Classpath hinzufüge, schaut der Bundle-Classpath so aus:

Code:
Bundle-ClassPath: .,
 lib/

Da bekomm ich aber dann diese Exception:

org.osgi.framework.BundleException: The activator configadmin.Activator for bundle ConfigAdmin is invalid
und weiter unten dann eine ClasspathException: mein.package.Activator

Weis jemand was ich da machen muss, damit der Activator wieder gefunden wird?
Vielen Dank!!
lg
Generic1
 

TheWhiteShadow

Bekanntes Mitglied
Du musst auch alle Jars in den Pfad schreiben, nicht nur das Verzeichnis.
Wie soll der Classloader die sonst finden, wenn er nur das Verzeichnis und die Klasse mit package kennt? Da fehlt im einfach noch der Dateiname.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
T OSGi OSGI bundle bauen org.apache.xerces Plattformprogrammierung 3
G [osgi] bundle spezifische properties Plattformprogrammierung 5
C RCP Applikation starten als OSGi Bundle Plattformprogrammierung 2
B OSGi, Euqinox, innherhalb vom Bundle Pfad des zugehörigen jar-files ermitteln Plattformprogrammierung 6
F OSGi und root rechte Plattformprogrammierung 2
Z MySQL-Treiber in RAP-Anwendung für Jetty im OSGI- Equinox- Maven-Dschungel Plattformprogrammierung 0
Shams Antbuild - Problem bei OSGi Anfängertutorial Plattformprogrammierung 0
P OSGi registerService Plattformprogrammierung 3
H OSGi OSGi + Logback + slf4j - Eclipse Run Configuration Plattformprogrammierung 7
G OSGI bundleChanged Plattformprogrammierung 2
E OSGi Equinox HttpService only supports servlet 2.1 specification. Plattformprogrammierung 2
X Probleme mit dem OSGi-Framework Plattformprogrammierung 3
S OSGi Declarative Service Cardinality Plattformprogrammierung 6
Kr0e OSGI - Anfängerfragen Plattformprogrammierung 3
K OSGi Verteilte Anwendung? Plattformprogrammierung 9
B OSGi Einsteiger OSGi-Applikation Plattformprogrammierung 9
S (OSGI - EQUINOX) Welche Eclipse IDE? Plattformprogrammierung 3
N OSGi: Ressourcen gezielt aus bestimmten Modulen laden? Plattformprogrammierung 4
borobudur OSGi OSGi Blueprint Integrationstests Plattformprogrammierung 6
S OSGi Filter Syntax Plattformprogrammierung 2
N OSGi Dependency Loading Plattformprogrammierung 2
S OSGi Bibliothek für alle Plattformprogrammierung 5
H OSGI mit Eclipse und Maven Plattformprogrammierung 5
X OSGi Splash ohne product Plattformprogrammierung 2
G OSGi: Service registrieren Plattformprogrammierung 2
lumo OSGI Service - ServiceReference Plattformprogrammierung 3
DEvent [osgi] Services implementieren Plattformprogrammierung 2
B equinox OSGi EclipseStarter.startup NullPointerException Plattformprogrammierung 3
B OSGi, Equinox, Exceptions werden "ignoriert" Plattformprogrammierung 21
C OSGi, Hibernate und welche Datenbank? Plattformprogrammierung 4
astralarse Custom OSGi Launcher mit config.ini Plattformprogrammierung 6
C Eclipse - Externe OSGi bundles adden Plattformprogrammierung 7
F OSGi Anwendungsdesign Plattformprogrammierung 3
N OSGI in Netbeans? Plattformprogrammierung 5
X OSGi und RCP Plattformprogrammierung 15
C OSGi shutdown Plattformprogrammierung 4
D Problem mit Synth Painter und OSGi (Equinox) Plattformprogrammierung 8
D OSGi JSR296 (Swing Application Framework) - Konzeptionsfrage Plattformprogrammierung 2
G Osgi Plattformprogrammierung 5
A Plugin konzepte: OSGI oder JPF? Plattformprogrammierung 5
S OSGI Framework Knopflerfish Plattformprogrammierung 11
H !MESSAGE Missing required bundle javax.mail_1.4.0. Plattformprogrammierung 5
F OSGi NPE bei deklarativen Bundle mit Maven SCR Plattformprogrammierung 2
G OSGi Ressourcen aus anderem Bundle laden Plattformprogrammierung 15
G RCP Datei im Bundle Plattformprogrammierung 6
A RCP RAP-Bundle nach Installation nicht auffindbar?! Plattformprogrammierung 5
A OSGi Bundle exportieren, importieren und vewenden geht nicht?! Plattformprogrammierung 4
lumo RCP The System Bundle was updated Plattformprogrammierung 13
A RCP p2 - manuelles update "check for updates" von core bundle funktioniert nicht Plattformprogrammierung 6
musiKk OSGi Bundle findet Activator nicht (ClassNotFoundException) Plattformprogrammierung 1
S OSGi Ablegen von Bundle-Eigenschaften (unabhängig) Plattformprogrammierung 4
L RCP Plugin als Bundle geklarieren? Plattformprogrammierung 3
O Bundle in Projekt-Dependencies nicht sichtbar Plattformprogrammierung 6
lumo Bundle verzeichnis Plattformprogrammierung 10
N bundle und classpath Plattformprogrammierung 12
F Ecilpse plugin und MWE Workflow: classpath Problem Plattformprogrammierung 12
T [solved] Eclipse RCP: Zugriff auf Classpath-Inhalt Plattformprogrammierung 4
dzim Classpath in PlugIns Plattformprogrammierung 7

Ähnliche Java Themen

Neue Themen


Oben