Hi,

By default these sun. classes are not visible inside the framework. You
can solve this issue by declaring the required packages as boot packages
in the org.osgi.framework.bootdelegation framework property. For
example, I use YourKit for profiling and use the following setting:

        org.osgi.framework.bootdelegation=com.yourkit.*

Hope this helps.

Regards
Felix

Am Mittwoch, den 19.09.2007, 09:22 +0000 schrieb Kiev Gama:
> Hello,
>  
> I tried to use do some profiling on felix using the following command 
> line:java -cp felix.jar -agentlib:hprof org.apache.felix.main.Main
>  
> But I've got the following:
>  
> 
> DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0DEBUG: WIRE: 1.0 -> 
> org.osgi.service.startlevel -> 0DEBUG: WIRE: 1.0 -> 
> org.ungoverned.osgi.service.shell -> 1.0DEBUG: WIRE: 1.0 -> 
> org.osgi.framework -> 0DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 
> 1.0ERROR: Error starting file:../bundle/org.apache.felix.shell-1.0.0.jar 
> (org.osgi.framework.BundleException: Activator start 
> error.)java.lang.NoClassDefFoundError: sun/tools/hprof/Tracker        at 
> org.apache.felix.shell.impl.Activator.start(Activator.java:38)        at 
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>         at org.apache.felix.framework.Felix._startBundle(Felix.java:1535)     
>    at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)        at 
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1064)      
>   at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)   
>      at java.lang.Thread.run(Unknown Source)DEBUG: WIRE: 2.0 -> 
> org.osgi.framework -> 0DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 
> 1.0DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0DEBUG: WIRE: 3.0 -> 
> org.osgi.framework -> 0-> DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 1.0No 
> impl service available.
>  
> 
> 
> I've tried unjar some files, change manifests and jar them again, but it did 
> not work.Did anybody ever tried to do profiling like that?
> I used the same command line arguments with the Knopflerfish OSGi 
> implementation and the framework started up with no problems.
> Any help would be appreciated.
> Thanks in advance.
>  
> Kiev Gama
> _________________________________________________________________
> More photos; more messages; more whatever – Get MORE with Windows Live™ 
> Hotmail®. NOW with 5GB storage.
> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to