1) On the ps command I see all bundles are installed and active:
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.1)
[   1] [Resolved   ] [    1] HelloWorld Plug-in (1.0.0)
[   2] [Active     ] [    1] Apache Commons Logging Plug-in 
(1.1.1.v200904062255)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.4.2)
[   4] [Active     ] [    1] Apache Felix Shell Service (1.4.1)
[   5] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[   6] [Active     ] [    1] Apache Jakarta log4j Plug-in (1.2.15.v200910021404)


2) I have downloaded the log4j bundle from Orbit Download 
3) how can I check is my log4j bundle exports the classes I need?
In the jar archive I see that all the classes are there...

Thank you,
Laura C.

--- On Thu, 11/19/09, Filippo Diotalevi <[email protected]> wrote:

On Thu, Nov 19, 2009 at 2:33 PM, Cobarzan Laura <[email protected]> wrote:
> Hello,
>
> I have a simple Hello World project that uses the log4j library. What is 
> strange is that the log4j bundle is installed and started without any 
> problems, but it through errors saying that it cannot find the needed class 
> (from log4j) library.
> Did anyone faced already this problem?

Hi,
  it's difficult to say what's going wrong in your case, since log4j
works well in any OSGi environment.

A few questions to get started:
1) can you open the console and type "ps" ? The command displays the
list of installed bundles. Is the log4j bundle installed and active?
2) where did you get the log4j bundle? Is it really an OSGi bundle or
just the normal Java library?
3) can you check with the console if your log4j bundle export the
"org/apache/log4j" package?

Regards,
-- 
Filippo Diotalevi

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




      

Reply via email to