You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Peter Chandler <pc...@ll.mit.edu> on 2009/07/09 00:30:06 UTC
javax.*
Background, I am porting various java applications into ServiceMix.
These Application use common javax.* (javax.naming, javax.net, javax.xml.*,
…) that are in sdk (1.5, 1.6).
When I deploy the application into ServiceMix I get
java.lang.NoClassDefFoundError or org.osgi.framework.BundleException:
Unresolved constraint in bundle for the javax.*
Why aren’t these packages available in servicemix by default?
Is there a "javax" implementation bundle (that exports all the javax.*) that
I can deploy?
Don't see this issue with Equinox.
Peter.
--
View this message in context: http://www.nabble.com/javax.*-tp24400556p24400556.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: javax.*
Posted by Peter Chandler <pc...@ll.mit.edu>.
Thanks. :-)
Jeremias Maerki-2 wrote:
>
> AFAIK, there are two options:
>
> 1. Use boot delegation. Look for the "org.osgi.framework.bootdelegation"
> property in [1].
>
> 2. Use special spec bundles. SMX4 provides many such bundles. Not sure
> why these bundles aren't available in your case. Look under
> system\org\apache\geronimo\specs
> and
> system\org\apache\servicemix\specs
> in the SMX4 distribution.
>
> However, as I noted in [2], there can be downsides to the second approach
> depending on the circumstances. But the first option may also not always
> work.
>
> HTH
>
> [1]
> http://felix.apache.org/site/apache-felix-framework-usage-documentation.html
> [2] http://markmail.org/message/nwtg5lgvfwvcthdt
>
> On 09.07.2009 00:30:06 Peter Chandler wrote:
>>
>> Background, I am porting various java applications into ServiceMix.
>>
>> These Application use common javax.* (javax.naming, javax.net,
>> javax.xml.*,
>> …) that are in sdk (1.5, 1.6).
>>
>> When I deploy the application into ServiceMix I get
>> java.lang.NoClassDefFoundError or org.osgi.framework.BundleException:
>> Unresolved constraint in bundle for the javax.*
>>
>> Why aren’t these packages available in servicemix by default?
>>
>> Is there a "javax" implementation bundle (that exports all the javax.*)
>> that
>> I can deploy?
>>
>> Don't see this issue with Equinox.
>>
>> Peter.
>> --
>> View this message in context:
>> http://www.nabble.com/javax.*-tp24400556p24400556.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
>
>
> Jeremias Maerki
>
>
>
--
View this message in context: http://www.nabble.com/javax.*-tp24400556p24410119.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: javax.*
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
AFAIK, there are two options:
1. Use boot delegation. Look for the "org.osgi.framework.bootdelegation"
property in [1].
2. Use special spec bundles. SMX4 provides many such bundles. Not sure
why these bundles aren't available in your case. Look under
system\org\apache\geronimo\specs
and
system\org\apache\servicemix\specs
in the SMX4 distribution.
However, as I noted in [2], there can be downsides to the second approach
depending on the circumstances. But the first option may also not always
work.
HTH
[1] http://felix.apache.org/site/apache-felix-framework-usage-documentation.html
[2] http://markmail.org/message/nwtg5lgvfwvcthdt
On 09.07.2009 00:30:06 Peter Chandler wrote:
>
> Background, I am porting various java applications into ServiceMix.
>
> These Application use common javax.* (javax.naming, javax.net, javax.xml.*,
> …) that are in sdk (1.5, 1.6).
>
> When I deploy the application into ServiceMix I get
> java.lang.NoClassDefFoundError or org.osgi.framework.BundleException:
> Unresolved constraint in bundle for the javax.*
>
> Why aren’t these packages available in servicemix by default?
>
> Is there a "javax" implementation bundle (that exports all the javax.*) that
> I can deploy?
>
> Don't see this issue with Equinox.
>
> Peter.
> --
> View this message in context: http://www.nabble.com/javax.*-tp24400556p24400556.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
Jeremias Maerki