You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Göktürk Gezer (Created JIRA)" <ji...@apache.org> on 2011/10/17 06:50:13 UTC

[jira] [Created] (DIRSERVER-1669) Embed Custom Felix Framework

Embed Custom Felix Framework
----------------------------

                 Key: DIRSERVER-1669
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
             Project: Directory ApacheDS
          Issue Type: New Feature
    Affects Versions: 2.0.0-M4
         Environment: linux
            Reporter: Göktürk Gezer
             Fix For: 2.0.0-M4
         Attachments: custom-felix.diff

ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128953#comment-13128953 ] 

Göktürk Gezer commented on DIRSERVER-1669:
------------------------------------------

Hi Pierre,

As i described in the email. You must first rightclick at apache-felix/bin/felix.jar and then click "Build Path" -> "Add to Build Path". After that you can run felix using the launcher i provided.

To be able to debug with source code support, you must also add all projects as project dependency for apache-felix project, and then restart the eclipse.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128662#comment-13128662 ] 

Göktürk Gezer commented on DIRSERVER-1669:
------------------------------------------

Patch Notes:
2 submodule added:
* apacheds/apache-felix
* apacheds/dependencies

* in both apacheds and shared, there are some changed poms.

Custom Felix Framework is added as apacheds/apache-felix submodule. Felix is embedded as POM. On install, this pom fetches all necessary felix binaries and ApacheDS's dependencies into corresponding directories. There is also a launcher named ApacheDS-OSGI.launch for launching Felix with all dependencies and ApacheDS bundles.

3 dependencies of ApacheDS is not OSGI compatible. So i embed them in a new project apacheds/dependencies and export their needed packages.


                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Pierre-Arnaud Marcelot (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot updated DIRSERVER-1669:
----------------------------------------------

    Fix Version/s:     (was: 2.0.0-M4)
                   2.0.0-M5
    
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M5
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128956#comment-13128956 ] 

Göktürk Gezer commented on DIRSERVER-1669:
------------------------------------------

By the way, for now there is not so many things in ApacheDS that you can run and test inside felix. You can only test it by putting brake-point on shared-ldap-extra-codec's BundleActivator.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Göktürk Gezer closed DIRSERVER-1669.
------------------------------------

    Resolution: Fixed

No longer necessary inside Eclipse, since we're able to launch Equinox Launcher.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M7
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128947#comment-13128947 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1669:
---------------------------------------------------

The patch got applied by Emmanuel.

Really good job.

I was almost able to run ApacheDS inside Felix. Unfortunately recent modifications done in the interceptors projects has made the bundle hierarchy a little inconsistent (see the log file).

I had to manually add the 'felix.jar' from the 'bin' folder to the build path to be able to run Felix, otherwise I'd get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/felix/main/Main
Caused by: java.lang.ClassNotFoundException: org.apache.felix.main.Main
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Is this normal ?

Looking forward to be able to fully run it.

                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128969#comment-13128969 ] 

Göktürk Gezer commented on DIRSERVER-1669:
------------------------------------------

Hi Pierre,

Yes we can also add dependencies for other projects to avoid the second step too. As first i just didn't want to inflate the pom much.

But i'm not sure about adding felix.main as dependency will solve the first step, because its location is set manually, but i didn't try though. I'll try it and patch if it goes well.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128961#comment-13128961 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1669:
---------------------------------------------------

Hi Göktürk,

Sorry I didn't saw the instructions in the mail.

How about adding it as a 'provided' dependency to the pom?
  <dependencies>
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.main</artifactId> 
      <version>4.0.1</version>
      <scope>provided</scope>
    </dependency>

This would avoid the extra step and manual configuration.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Pierre-Arnaud Marcelot (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128974#comment-13128974 ] 

Pierre-Arnaud Marcelot commented on DIRSERVER-1669:
---------------------------------------------------

I thought the project was there on its own, to allow us to run and debug ApacheDS inside Felix (and that the project was not intended to be used by any other project).

There's no need to manually set the location. The classpath is updated automatically by 'mvn eclipse:eclipse'.
I tested it and I was able to run Felix successfully (with the same current errors as before).
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128979#comment-13128979 ] 

Göktürk Gezer commented on DIRSERVER-1669:
------------------------------------------

Hmm, okey. If it works, that's good :)

So we can fine tune that apache-felix pom by making it fully integrated to eclipse.
                
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Göktürk Gezer (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Göktürk Gezer updated DIRSERVER-1669:
-------------------------------------

    Attachment: custom-felix.diff
    
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (DIRSERVER-1669) Embed Custom Felix Framework

Posted by "Pierre-Arnaud Marcelot (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot updated DIRSERVER-1669:
----------------------------------------------

    Attachment: ApacheDS-OSGI.launch.log
    
> Embed Custom Felix Framework
> ----------------------------
>
>                 Key: DIRSERVER-1669
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1669
>             Project: Directory ApacheDS
>          Issue Type: New Feature
>    Affects Versions: 2.0.0-M4
>         Environment: linux
>            Reporter: Göktürk Gezer
>              Labels: apacheds, felix, osgi
>             Fix For: 2.0.0-M4
>
>         Attachments: ApacheDS-OSGI.launch.log, custom-felix.diff
>
>
> ApacheDS is moving on OSGI. To easily run and debug code on OSGI, custom Felix Framework and its launchers must be added to ApacheDS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira