Well, that happened to me, and it was because my classpath was using the
AdminPermission class included in the osgi.core instead of the one tailored
for Felix (and thus including the vendor property). However, that only
happened when I run directly from sources, not when I run from the "mvn
install"'ed felix.jar. Do you perchance have some osgi.core in the runtime
classpath?

--

Manuel Santillán <[EMAIL PROTECTED]>
http://www.dit.upm.es/santillan
Departamento de Ingeniería de Sistemas Telemáticos 
Escuela Técnica Superior de Ingenieros de Telecomunicación 
Universidad Politécnica de Madrid 
Avda. Complutense, s/n 
28040 Madrid SPAIN 
Tel. +34 913367366 ext.3034

-----Mensaje original-----
De: Stefano Lenzi [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 13 de julio de 2006 17:18
Para: [email protected]
Asunto: Re: Running Felix within Eclipse

Clement Escoffier wrote:
> Hi,
> 
> I run Felix inside Eclipse. It is very useful to debug bundles.
> 
> To do it, follow the following process :
>     - Get the Felix Trunk projects, and compile the trunk
>     - In the org.apache.felix.main subproject, launch mvn
> eclipse:eclipse (it create an eclipse project according to the pom.xml)
>    -  In Eclipse, add the variable M2_REPO (Window - Preference - Java -
> Build Path - Classpath Variable), this variable point inside your maven
> repository
>    - Import the project org.apache.felix.main (Import existing project
> in the workspace)
>    - Add the bin/felix.jar file inside the project build path.
>    - Create a run configuration :
>       - project = org.apache.felix.main
>       - Main class = org.apache.felix.main.Main
>       - check "include libraries when searching for a main class"
>       - in the arguments tabs, change the working directory to :
> ${workspace_loc:org.apache.felix.main}
>   - Save your configration and run it
> 
> When you launch this configuration in the debug mode, you will be able
> to debug your bundles.
> 

I'm able to get the "profile selection" of Felix, but then I got the
following error message:

Exception in thread "main" java.lang.NoClassDefFoundError:
org.osgi.vendor.framework property not set
        at
org.osgi.framework.AdminPermission$1.run(AdminPermission.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.osgi.framework.AdminPermission.<clinit>(AdminPermission.java:142)
        at org.apache.felix.framework.Felix.<clinit>(Felix.java:105)
        at org.apache.felix.main.Main.main(Main.java:189)


Reply via email to