Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » OSGi + Logback + slf4j - Eclipse Run Configuration
OSGi + Logback + slf4j - Eclipse Run Configuration [message #987726] Tue, 27 November 2012 13:36 Go to previous message
Tobias P. is currently offline Tobias P.
Messages: 19
Registered: April 2012
Junior Member
Hello,

here is my configuration:

We are developing an OSGi application and want to include logging. I decided to use slf4j + logback.

We are using Eclipse as an IDE and Tycho to benefit from the Eclipse IDE like Manifest Editor and so on.

So i have tried the following:

Created a new plugin with the following Manifest.mf

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Createcommand
Bundle-SymbolicName: de.hswt.oms.ws.wsr.createcommand
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: de.hswt.oms.ws.command.wsr,
de.hswt.oms.ws.ds.core.data.impl,
org.slf4j
Service-Component: OSGI-INF/component.xml
Now when i move to Run -> Run Configurations -> OSGi Framework and select my Bundle and clicl "Add Required plugins" more then 100 Bundles will be selected and i get a lot of errors and exceptions.

So i came up with a new plugin from existing Jars which includes the following three jars: logback-classic-1.0.7 logback-core-1.0.7 com.springsource.slf4j.api-1.6.1 (I dont believe this is a good idea, but hey...)

If i create a new run configuration manually (not clicking "add required bundles" it works as expected but as far as i click "add required bundles" i come back to the more then 100 Bundles with a lot of errors (some jetty stuff for example...)

So my Question is: How can i enable logback and slf4j in my OSGi application and use it within eclipse and configure it properly???

If you need more information please feel free to ask
 
Read Message
Read Message
Previous Topic:Jetty Hello World
Next Topic:Simple run fails (eclipse helios sr1 jee)
Goto Forum:
  


Current Time: Sun May 19 10:36:22 EDT 2013

Powered by FUDForum. Page generated in 0.02215 seconds