Re: JOnAS 5.1 and DOSGi ?

Florent BENOIT <[email protected]>
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
    Hi Frederic,

You could try to switch to JOnAS 5.2.0 M2 or M3 Snapshot (this package 
is already exported in JOnAS 5.2.x)

Else, you may try to override the currently exported list by launching 
JOnAS 5.1 with the following property :
 -Djonas.felix.configuration.file=<my.path.to.my.felix.configuration.file>.properties  
(The original file can be extracted from 
$JONAS_ROOT/lib/bootstrap/felix-launcher.jar. Resource name is 
org/ow2/jonas/launcher/felix/default-config.properties)

Note that in JOnAS 5.2, OSGi export packages configuration is located in 
JONAS_BASE/conf/osgi folder (which is easier to configure)

In order to be fixed in a later JOnAS 5.1.x release,  you may open a bug 
on the issue tracker : http://jira.ow2.org

Regards,

Florent

Frederic Dang Tran wrote:
> Hello:
>
> I've developed a DOSGi client-server program running on Apache Felix 
> 1.8 using Apache CXF DOSGi 
> <http://cxf.apache.org/distributed-osgi.html> implementation.
> My intent is  to host part of this  application on JOnAS 5.1(which 
> seems to rely on Felix 1.8 currently ?).
>
> Trying to install and start the CXF DOSGi on JOnAS 5.1.1 fails with an 
> unresolved constraint:
>
> -> ps
> .....
> [ 130] [Installed  ] [    1] Distributed OSGi Distribution Software 
> Single-Bundle Distribution (1.1)
> [ 131] [Active     ] [    1] osgi.cmpn (4.2.0.200908310645)
> [ 135] [Resolved   ] [    1] Sun Microsystems' JDBC Driver for MySQL 
> (5.1.11)
> -> start 130
> org.osgi.framework.BundleException: Unresolved constraint in bundle 
> 130: package; (package=org.osgi.framework.hooks.service)
>
>
> On a standalone Felix OSGi container, 
> the org.osgi.framework.hooks.service package is exported by 
> the org.apache.felix.framework bundle which seems no longer the case 
> with JOnaS:
>
> -> exports 0
> org.apache.felix.framework [0] exports:
> ---------------------------------------
> org.osgi.framework; version=1.4.0
> org.osgi.service.packageadmin; version=1.2.0
> org.osgi.service.startlevel; version=1.1.0
> org.osgi.service.url; version=1.0.0
> org.osgi.util.tracker; version=1.3.3
> javax.accessibility; version=1.5.0
> javax.activity; version=1.5.0
> javax.imageio; version=1.5.0
> .....
>
> Any solution ?
>
> Regards,
>
> Frederic Dang Tran
> Orange Labs
>
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.