If you are embedding Felix, then only the passed in configuration properties are inspected. When using the launcher (i.e., main), then it also pulls in system properties and puts them in the configuration map for the instance of Felix it creates, but Felix itself typically does not consult system properties to retrieve configuration properties since they are globals.

-> richard

Stevens Gestin wrote:
I finally found.

Using Felix as an embedded version force me to add in configuration boot
delegation:

configMap.put("org.osgi.framework.bootdelegation","com.jprofiler.*,com.jprofiler.agent.*");

I think, Felix may check existence of the jvm option.

Best Regards,
Stevens

On Wed, Mar 4, 2009 at 11:51 AM, Johan Sjöberg <
johan.sjob...@cybercomgroup.com> wrote:

I missed one thing and that is that I set the
org.osgi.framework.bootdelegation in the felix configuration file. I don't
know if that should make any difference though. I don't use a plugin but run
jprofiler plain. Have you updated the environment variable path (if you use
windows) to include the "...\jprofiler5\bin\windows" for 32bit jvm or "
jprofiler5\bin\ windows-x64" for the 64bit jvm?

-----Original Message-----
From: Stevens Gestin [mailto:sges...@gmail.com]
Sent: den 4 mars 2009 11:43
To: users@felix.apache.org
- Show quoted text -
Subject: Re: JProfiler / Felix

I'm using JProfiler Eclipse integration plugin.

I tried to escape star character with no success. I also tried to add
agent.jar directly in my project classpath with no success.

Do I need to add com.jprofiler.agent.* in my bundle manifests ?

Stevens


On Wed, Mar 4, 2009 at 11:00 AM, Reto Bachmann-Gmür <
reto.bachm...@trialox.org> wrote:

did you escape the * in the command line?

(-Dorg.osgi.framework.bootdelegation=com.jprofiler.\*)


Regards,
Reto

Johan Sjöberg said the following on 03/04/2009 11:07 AM:
- Show quoted text -
Hi, does the application start? Or do you get it before the application
could start?
I was sitting with the same problem just now and got it to work. I
added
com.jprofiler.agent.* to the bootdelegation parameter. Before I had a
problem where it gave the same fault without starting the application
because the path specified to the agent.jar was incorrect. (If I remember
this correctly).
Funny to see someone working on the exact same thing at the exact same
time :)
/Best Regards, Johan

-----Original Message-----
From: Stevens Gestin [mailto:sges...@gmail.com]
Sent: den 4 mars 2009 10:42
To: users@felix.apache.org
Subject: JProfiler / Felix

Hi,

I try to profile my bundle but I get a "java.lang.NoClassDefFoundError:
com/jprofiler/agent/InstrumentationCallee" exception. I add jvm
parameter
"-Dorg.osgi.framework.bootdelegation=com.jprofiler.*" but this seems
not
working.

What going wrong?

Best Regards,
Stevens

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org


--
Le respect commence par celui de l'environnement

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to