OSGI install

52 views
Skip to first unread message

g.peter...@gmail.com

unread,
Jul 26, 2015, 1:27:01 PM7/26/15
to jOOQ User Group
Hi All,

I trying to install jOOQ into a mininal OSGI Apache Felix container, but it fails alwayw to deploy.

Somebody has Gogo shell instructions to get that deployed in felix, if possible ?

Thank you


g! lb
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (5.0.1)
    1|Active     |    1|Apache Felix Bundle Repository (2.0.4)
    2|Active     |    1|Apache Felix File Install (3.5.0)
    3|Active     |    1|Apache Felix Gogo Command (0.14.0)
    4|Active     |    1|Apache Felix Gogo Runtime (0.16.2)
    5|Active     |    1|Apache Felix Gogo Shell (0.10.0)
    6|Installed  |    1|jOOQ (3.6.2)

g! deploy -s 6
Unknown bundle - 6

Lukas Eder

unread,
Jul 27, 2015, 5:13:54 AM7/27/15
to jooq...@googlegroups.com
Hi Peter,

Thanks for your feedback. I'm unfortunately not too fluent with either Felix or Gogo. In order to help you assess what's going wrong, do you perhaps have a minimal example to help reproduce this issue?

Cheers,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

g.peter...@gmail.com

unread,
Jul 28, 2015, 4:59:38 AM7/28/15
to jOOQ User Group, lukas...@gmail.com
Hi Lukas,

the question is, how can I deploy jOOQ in a OSGI container ? When I look into http://search.maven.org/remotecontent?filepath=org/jooq/jooq/3.6.2/jooq-3.6.2.jar MANIFEST.MF it seems the jar is an OSGI bundle. So I try to deploy in Felix, but got the error mentioned.

Probably the dependencies are not resolved. Maybe somebody has deployed in Felix or other container and can share how it was made.

Thanx.

Lukas Eder

unread,
Jul 29, 2015, 10:43:19 AM7/29/15
to g.peter...@gmail.com, jOOQ User Group
Unfortunately, I won't be of much help. The main artefact uses the Felix Maven plugin to generate this info in the MANIFEST.MF:

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.5.4</version>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <id>bundle-manifest</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>manifest</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <supportedProjectTypes>
                        <supportedProjectType>jar</supportedProjectType>
                    </supportedProjectTypes>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Export-Package>*</Export-Package>
                        <Import-Package>
                            javax.persistence;resolution:=optional,
                            org.apache.log4j;resolution:=optional,
                            *
                        </Import-Package>
                        <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
                    </instructions>
                </configuration>
            </plugin>

This was needed a long time ago to properly import/export JPA and log4j APIs by some user. Probably, the above is neither entirely correct, nor up-to-date. Having said so, if you have concrete requirements (and perhaps a heads-up about how to), we'll be very glad to fix this for you.

Best Regards,
Lukas

g.peter...@gmail.com

unread,
Jul 30, 2015, 3:08:48 AM7/30/15
to jOOQ User Group, lukas...@gmail.com
Hi Lukas,

thank you so far. Basically I got it done. It is all about to find the right bundles.

I'm realtive new to OSGI and still searching for an auto-deploy way to not hazle too much with searching for bundles manually.

El dimecres, 29 juliol de 2015 16:43:19 UTC+2, Lukas Eder va escriure:

Lukas Eder

unread,
Jul 31, 2015, 3:35:34 AM7/31/15
to g.peter...@gmail.com, jOOQ User Group
OK, thanks for the feedback. Let us know if you find anything else worth mentioning on this group, or any other issues.
Of course, a tutorial blog post would be very useful for the community! :-)

Cheers,
Lukas

ch...@chuboe.com

unread,
Jan 5, 2016, 5:06:23 PM1/5/16
to jOOQ User Group, lukas...@gmail.com, g.peter...@gmail.com
Hi,

Do you mind sharing the dependencies you found? I would prefer to not re-create the wheel if possible. Also, do you have any feedback regarding how well jooq performed as a persistence framework in OSGi? I assume you used it for active record (CRUD).

Here is what I have found so far: http://repo.jpm4j.org/#!/p/org.jooq/jooq?tab=inbound

Regards,
Chuck
Reply all
Reply to author
Forward
0 new messages