If you are copying from default.properties, it is likely that this is
causing your difficulty since I believe the entire system packages
property in that file is separated by ';' which means they all get the
same attributes and directives. So, if you added a mandatory attribute
you quite possibly added it to all packages that came before the package
where you added it. For example:
o.o.f.system.packages= \
javax.foo; \
javax.bar; \
javax.woz; mandatory:="partial"; partial="true", \
javax.boz
This is incorrect. It makes all of the preceding packages have a
mandatory attribute, you need to make the line before end with a ',' to
separate the clauses so they have different attributes, like:
o.o.f.system.packages= \
javax.foo; \
javax.bar, \
javax.woz; mandatory:="partial"; partial="true", \
javax.boz
Of course, this means the version attribute at the end of the property
in default.properties won't apply to all packages. You'd be best to move
the few packages you want the mandatory attribute to the end of the
property, so all of the rest can keep the version and then just add the
version to the other few packages you want to have a mandatory attribute.
-> richard
On 10/14/10 8:00 PM, LongkerDandy wrote:
Hi
I used to remove these two lines and it works, when setting the attribute, I
got a lot of exceptions like:
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.geronimo.specs.geronimo-j2ee-connector_1.5_spec [6]: Unable to
resolve 6.0: missing requirement [6.0] package; (package=javax.naming)
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.openjpa [15]: Unable to resolve 15.0: missing requirement [15.0]
package; (package=javax.annotation
Any clue?
LongkerDandy
On Thu, Oct 14, 2010 at 9:52 PM, Guillaume Nodet<[email protected]> wrote:
Can you provide more informations about what does not work ? Any exception,
etc... ?
On Thu, Oct 14, 2010 at 12:34, LongkerDandy<[email protected]>
wrote:
Hi
I upgrade to felix 3.0.4.
I copy from the default.properties and add :
javax.transaction;partial=true;mandatory:=partial, \
javax.transaction.xa;partial=true;mandatory:=partial, \
But seems still not work.
Got a lot of lack of dependency error.
Regards
LongkerDandy
On Thu, Oct 14, 2010 at 6:03 PM, Guillaume Nodet<[email protected]>
wrote:
This may be related to
https://issues.apache.org/jira/browse/FELIX-2599which has been fixed
in 3.0.3 ..
On Thu, Oct 14, 2010 at 11:38, LongkerDandy<[email protected]>
wrote:
Hi
I follow this question from Aries.
The question is simple, I got a conflict between system package and
bundle
package.
Aries provide a simple with Equinox:
org.osgi.framework.system.packages=\
...
javax.transaction;partial=true;mandatory:=partial,\
javax.transaction.xa;partial=true;mandatory:=partial
But this seems not work in felix.
What is the correct way to set this.
Regards
LongkerDandy
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]