And would like to know, how did you identify/debug this duplication of exporting issues?
On 20 March 2012 15:38, Vijayaratha Vijayasingam <[email protected]> wrote: > Sameera, what is that next bundle?..how this caused the CNF issue with > the com.sun.phobo.* packages..? :( > > > > On 20 March 2012 15:20, Sameera Jayasoma <[email protected]> wrote: >> >> >> On Tue, Mar 20, 2012 at 4:32 AM, Nirmal Fernando <[email protected]> wrote: >>> >>> Hi Sameera, >>> >>> On Mon, Mar 19, 2012 at 11:46 PM, Sameera Jayasoma <[email protected]> >>> wrote: >>>> >>>> Hi Nirmal, >>>> >>>> The proper solution would be to stop exporting the javax.script.* package >>>> from the bsf orbit bundle, rather than updating the synapse bundle. >>>> >>>> Index: pom.xml >>>> =================================================================== >>>> --- pom.xml (revision 122910) >>>> +++ pom.xml (working copy) >>>> @@ -70,7 +70,6 @@ >>>> com.sun.script.*, >>>> com.sun.phobos.script.*, >>>> bsh.engine.*, >>>> - javax.script.*, >>>> </Export-Package> >>>> <Import-Package> >>>> *;resolution:=optional >>>> >>>> >>>> >>>> This patch solves the issue, please try yourself and see. If this works >>>> lets commit. >>> >>> >>> Yes, this solved the issue! >> >> >> Great. I will commit the changes. >> >> The issues is, javax.script.* packages has been exported by two different >> bundles. This behavior can be seen in the trunk, but not in older releases. >> >> Thanks, >> Sameera. >>> >>> >>>> >>>> >>>> Thanks, >>>> Sameera. >>>> >>>> On Mon, Mar 19, 2012 at 3:49 PM, Nirmal Fernando <[email protected]> wrote: >>>>> >>>>> Hi, >>>>> >>>>> On Fri, Mar 16, 2012 at 1:04 PM, Sameera Jayasoma <[email protected]> >>>>> wrote: >>>>>> >>>>>> I will have a look at this.. >>>>> >>>>> >>>>> Any update on this? Shall I commit the fix I proposed earlier, to >>>>> synapse (2.1.0-wso2v6)? >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Sameera. >>>>>> >>>>>> >>>>>> On Fri, Mar 16, 2012 at 6:13 AM, Vijayaratha Vijayasingam >>>>>> <[email protected]> wrote: >>>>>>> >>>>>>> Azeez, This is not working.. >>>>>>> I found that wildcards like'*' doesn't work in latest >>>>>>> mavne-bundle-plugin <for dynamic-import >...So, used the full package, >>>>>>> but still it is not working.. >>>>>>> >>>>>>> @Sameera/pradeep.. >>>>>>> >>>>>>> 1. Do you see any issue with the following bsf orbit bundle's pom?..(i >>>>>>> attached the jar and the pom..) >>>>>>> 2. Do we need to import the package at synapse? (we don't export the >>>>>>> package here) >>>>>>> >>>>>>> <plugin> >>>>>>> <groupId>org.apache.felix</groupId> >>>>>>> <artifactId>maven-bundle-plugin</artifactId> >>>>>>> >>>>>>> <extensions>true</extensions> >>>>>>> <configuration> >>>>>>> <instructions> >>>>>>> >>>>>>> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> >>>>>>> >>>>>>> <Bundle-Name>${project.artifactId}</Bundle-Name> >>>>>>> <Export-Package> >>>>>>> org.apache.bsf.*, >>>>>>> org.mozilla.javascript.*, >>>>>>> org.pnuts.scriptapi.*, >>>>>>> com.sun.script.*, >>>>>>> bsh.engine.*, >>>>>>> javax.script.*, >>>>>>> </Export-Package> >>>>>>> <Import-Package> >>>>>>> *;resolution:=optional >>>>>>> </Import-Package> >>>>>>> >>>>>>> <DynamicImport-Package>com.sun.phobos.script.javascript</DynamicImport-Package> >>>>>>> >>>>>>> <Embed-Dependency>js;scope=compile|runtime;inline=false;</Embed-Dependency> >>>>>>> </instructions> >>>>>>> </configuration> >>>>>>> </plugin> >>>>>>> >>>>>>> >>>>>>> Thanks >>>>>>> -Ratha >>>>>>> >>>>>>> On 15 March 2012 22:43, Nirmal Fernando <[email protected]> wrote: >>>>>>> > Hi, >>>>>>> > >>>>>>> > On Thu, Mar 15, 2012 at 5:36 PM, Afkham Azeez <[email protected]> >>>>>>> > wrote: >>>>>>> >> >>>>>>> >> This is still failing with the same error. >>>>>>> > >>>>>>> > >>>>>>> > Following diff fixes the issue. >>>>>>> > >>>>>>> > Index: synapse/2.1.0-wso2v6/modules/extensions/pom.xml >>>>>>> > =================================================================== >>>>>>> > --- synapse/2.1.0-wso2v6/modules/extensions/pom.xml (revision >>>>>>> > 122371) >>>>>>> > +++ synapse/2.1.0-wso2v6/modules/extensions/pom.xml (working >>>>>>> > copy) >>>>>>> > @@ -69,6 +69,7 @@ >>>>>>> > !org.apache.synapse.mediators.spring.*, >>>>>>> > >>>>>>> > !org.apache.synapse.mediators.throttle.*, >>>>>>> > !org.apache.synapse.mediators.xquery.*, >>>>>>> > + com.sun.phobos.script.javascript.*, >>>>>>> > !javax.xml.namespace, >>>>>>> > javax.xml.namespace; version=0.0.0, >>>>>>> > org.apache.commons.io; version=0.0.0, >>>>>>> > >>>>>>> > But it seems like products not consistently use new synapse version >>>>>>> > (v6). Is >>>>>>> > this intentional? >>>>>>> > >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> On Tue, Mar 13, 2012 at 9:32 PM, Vijayaratha Vijayasingam >>>>>>> >> <[email protected]> wrote: >>>>>>> >>> >>>>>>> >>> I'll check this issue tomorrow... >>>>>>> >>> >>>>>>> >>> Thanks >>>>>>> >>> -Ratha >>>>>>> >>> >>>>>>> >>> On 13 March 2012 20:31, Afkham Azeez <[email protected]> wrote: >>>>>>> >>> > Ratha, >>>>>>> >>> > It seems that you have seen a similar issue. How did you manage >>>>>>> >>> > to >>>>>>> >>> > resolve >>>>>>> >>> > it? >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > http://stackoverflow.com/questions/8746553/service-provider-and-osgi-issue >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > On Tue, Mar 13, 2012 at 8:13 PM, Pradeep Fernando >>>>>>> >>> > <[email protected]> >>>>>>> >>> > wrote: >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> On Tue, Mar 13, 2012 at 7:58 PM, Afkham Azeez <[email protected]> >>>>>>> >>> >> wrote: >>>>>>> >>> >>> >>>>>>> >>> >>> Script mediator is used in the fault sequence, so we can't get >>>>>>> >>> >>> rid of >>>>>>> >>> >>> it. >>>>>>> >>> >>> According to Hiranya, the com.sun.phobos.script.javascript >>>>>>> >>> >>> classes >>>>>>> >>> >>> should be >>>>>>> >>> >>> coming from the JDK. After the OSGigfication work, this is not >>>>>>> >>> >>> happening. >>>>>>> >>> >>> Pradeep, can you look into this? >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> ok will have a look >>>>>>> >>> >>> >>>>>>> >>> >>> >>>>>>> >>> >>> >>>>>>> >>> >>> On Sun, Mar 11, 2012 at 5:07 PM, Pradeep Fernando >>>>>>> >>> >>> <[email protected]> >>>>>>> >>> >>> wrote: >>>>>>> >>> >>>> >>>>>>> >>> >>>> Hi, >>>>>>> >>> >>>> >>>>>>> >>> >>>> is it possible get rid of bsf-all bundle/related bundles (In >>>>>>> >>> >>>> LB >>>>>>> >>> >>>> product). We dont use script mediators in LB product. (?) >>>>>>> >>> >>>> >>>>>>> >>> >>>> --Pradeep >>>>>>> >>> >>> >>>>>>> >>> >>> >>>>>>> >>> >>> >>>>>>> >>> >>> >>>>>>> >>> >>> -- >>>>>>> >>> >>> Afkham Azeez >>>>>>> >>> >>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>> >>> >>> Member; Apache Software Foundation; http://www.apache.org/ >>>>>>> >>> >>> >>>>>>> >>> >>> email: [email protected] cell: +94 77 3320919 >>>>>>> >>> >>> blog: http://blog.afkham.org >>>>>>> >>> >>> twitter: http://twitter.com/afkham_azeez >>>>>>> >>> >>> linked-in: http://lk.linkedin.com/in/afkhamazeez >>>>>>> >>> >>> >>>>>>> >>> >>> Lean . Enterprise . Middleware >>>>>>> >>> >>> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> >>>>>>> >>> >> -- >>>>>>> >>> >> Pradeep Fernando >>>>>>> >>> >> Software Engineer >>>>>>> >>> >> Member, Management Committee - Platform & Cloud Technologies >>>>>>> >>> >> WSO2 Inc; http://wso2.com/ >>>>>>> >>> >> >>>>>>> >>> >> blog: http://pradeepfernando.blogspot.com/ >>>>>>> >>> >> m: +94776603662 >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > >>>>>>> >>> > -- >>>>>>> >>> > Afkham Azeez >>>>>>> >>> > Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>> >>> > Member; Apache Software Foundation; http://www.apache.org/ >>>>>>> >>> > >>>>>>> >>> > email: [email protected] cell: +94 77 3320919 >>>>>>> >>> > blog: http://blog.afkham.org >>>>>>> >>> > twitter: http://twitter.com/afkham_azeez >>>>>>> >>> > linked-in: http://lk.linkedin.com/in/afkhamazeez >>>>>>> >>> > >>>>>>> >>> > Lean . Enterprise . Middleware >>>>>>> >>> > >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> -- >>>>>>> >> Afkham Azeez >>>>>>> >> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>> >> Member; Apache Software Foundation; http://www.apache.org/ >>>>>>> >> >>>>>>> >> email: [email protected] cell: +94 77 3320919 >>>>>>> >> blog: http://blog.afkham.org >>>>>>> >> twitter: http://twitter.com/afkham_azeez >>>>>>> >> linked-in: http://lk.linkedin.com/in/afkhamazeez >>>>>>> >> >>>>>>> >> Lean . Enterprise . Middleware >>>>>>> >> >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > -- >>>>>>> > >>>>>>> > Thanks & regards, >>>>>>> > Nirmal >>>>>>> > >>>>>>> > Software Engineer- Platform Technologies Team, WSO2 Inc. >>>>>>> > Mobile: +94715779733 >>>>>>> > Blog: http://nirmalfdo.blogspot.com/ >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > Dev mailing list >>>>>>> > [email protected] >>>>>>> > http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> > >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Sameera Jayasoma >>>>>> Technical Lead and Product Manager, WSO2 Carbon >>>>>> >>>>>> WSO2, Inc. (http://wso2.com) >>>>>> email: [email protected] >>>>>> blog: http://tech.jayasoma.org >>>>>> >>>>>> >>>>>> Lean . Enterprise . Middleware >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Thanks & regards, >>>>> Nirmal >>>>> >>>>> Software Engineer- Platform Technologies Team, WSO2 Inc. >>>>> Mobile: +94715779733 >>>>> Blog: http://nirmalfdo.blogspot.com/ >>>> >>>> >>>> >>>> >>>> -- >>>> Sameera Jayasoma >>>> Technical Lead and Product Manager, WSO2 Carbon >>>> >>>> WSO2, Inc. (http://wso2.com) >>>> email: [email protected] >>>> blog: http://tech.jayasoma.org >>>> >>>> Lean . Enterprise . Middleware >>> >>> >>> >>> >>> -- >>> >>> Thanks & regards, >>> Nirmal >>> >>> Software Engineer- Platform Technologies Team, WSO2 Inc. >>> Mobile: +94715779733 >>> Blog: http://nirmalfdo.blogspot.com/ >> >> >> >> >> -- >> Sameera Jayasoma >> Technical Lead and Product Manager, WSO2 Carbon >> >> WSO2, Inc. (http://wso2.com) >> email: [email protected] >> blog: http://tech.jayasoma.org >> >> Lean . Enterprise . Middleware _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
