OK, finally solved it. Bundle with Stax API 1.2 specs needs to be installed
instead of Stax API 1.0.


On Tue, Sep 10, 2013 at 4:32 PM, Bratislav Stojanovic <
[email protected]> wrote:

> What is really interesting is that after I enable
> javax.xml.stream;version=1.6 in jre.properties
> , bundle will pick up this one, but I'm still getting :
>
> >>java.lang.NoSuchMethodError:
> javax.xml.stream.XMLInputFactory.newFactory()Ljavax/xml/stream/XMLInputFactory;
>
>
>
> On Tue, Sep 10, 2013 at 4:02 PM, Bratislav Stojanovic <
> [email protected]> wrote:
>
>> Hi,
>>
>> I've just realized that default ServiceMix provides
>> javax.xml.stream.XMLInputFactory class
>> (via stax api 1.0 bundle) without newFactory() method. Method
>> newInstance() is there, but
>> that one is deprecated.
>>
>> On the other hand I have a third-party bundle that uses newFactory and
>> the code is obfuscated.
>>
>> What should I do to provide newFactory() method (as in Java SE) to other
>> bundles? I've tried to enable this package in jre.properties but my bundle
>> always picks version from the stax bundle (I guess because of the versions,
>> since javax.xml.stream is exported with version 0.0.0).
>>
>> Thanx in advance.
>>
>> --
>> Bratislav Stojanovic, M.Sc.
>>
>
>
>
> --
> Bratislav Stojanovic, M.Sc.
>



-- 
Bratislav Stojanovic, M.Sc.

Reply via email to