Hi,
i'm sorry if this is some kind of noob question (since today is the first
day i am experimenting with apache felix - and OSGI in general), but i can't
find a solution on google or in this forum.
I created a bundle for my swing application.
Although i know that i have to find a solution to my log4j logging problems,
this is not the main problem.
Here is the output after starting felix:
<code>
Welcome to Felix.
=================
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to
a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [1.0] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[sun.misc.launcher$appclassloa...@2c2bbd86].
log4j:ERROR Could not instantiate appender named "A1".
ERROR: Error starting
file:/home/niko/workspace/JSimulation/bundle/de.krismer.simulation.core.runtime.jar
(org.osgi.framework.BundleException: Activator start error in bundle [1].)
java.lang.NoClassDefFoundError: javax/swing/UIManager
at de.krismer.simulation.SimulationRuntimeImpl.startRuntime(Unknown
Source)
at
de.krismer.simulation.SimulationRuntimeActivator.startApplication(Unknown
Source)
at de.krismer.simulation.SimulationRuntimeActivator.start(Unknown
Source)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:667)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1699)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1621)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1076)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: javax.swing.UIManager
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:726)
at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:60)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1631)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 9 more
</code>
Shouldn't this class be part of the jdk itself?
I started Felix with the custom framework launcher from
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html.
Is this problem related with my custom launcher?
Maybe someone can help me with this problem (or even with my log4j problem)
Best regards,
Niko
--
View this message in context:
http://www.nabble.com/Error-starting-bundle---ClassNotFoundException--%3E-for-javax.swing.UIManager-----tp25826275p25826275.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]