rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

exporting custom org.mozilla.javascript breaks in OSGi #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download and start apache-karaf [1]
2. install wiquery (and all dependencies, so it would start)
You can do that by installing the bundles listed in the attached features.xml 
or just by throwing it into the deploy-folder and type features:install wiquery

--> wiquery cannot be started, because of the following error

Error executing command: Could not start bundle 
mvn:org.odlabs.wiquery/wiquery/1.2.4 in feature(s) wiquery-1.2.4: Unable to 
resolve module org.odlabs.wiquery [70.0] because it exports package 
'org.mozilla.javascript.xml' and is also exposed to it from 
org.apache.servicemix.bundles.rhino [69.0] via the following dependency chain:  

  org.odlabs.wiquery [70.0]                                                                                                                                                     
    import: (package=org.mozilla.classfile)                                                                                                                                     
     |                                                                                                                                                                          
    export: package=org.mozilla.classfile; uses:=org.mozilla.javascript.xml                                                                                                     
    export: package=org.mozilla.javascript.xml                                                                                                                                  
  org.apache.servicemix.bundles.rhino [69.0] 

I found a workaround that seems to fix it. The problem seems to be gone when 
"org.mozilla.javascript" is not exported by the wiquery-bundle at all (see the 
patch).

Original issue reported on code.google.com by christop...@gmail.com on 2 Jan 2012 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
[1] https://karaf.apache.org/index/community/download.html

Original comment by christop...@gmail.com on 2 Jan 2012 at 3:36

GoogleCodeExporter commented 9 years ago
have you tried using the yui compressor after this change? The compressor uses 
altered classes from that package.

Original comment by hielke.hoeve on 2 Jan 2012 at 3:51

GoogleCodeExporter commented 9 years ago
Hadn't had the chance yet.
However, this change should not affect non-OSGi-environments at all as it only 
modifies the manifest.
And in OSGi-environments it cannot work without this.

Original comment by christop...@gmail.com on 2 Jan 2012 at 4:07

GoogleCodeExporter commented 9 years ago
fixed for wiquery 1.2 and 1.5.

Original comment by hielke.hoeve on 4 Jan 2012 at 2:32

GoogleCodeExporter commented 9 years ago
for easy testing i have also released a new wiquery 1.2  and 1.5 snapshot.

Original comment by hielke.hoeve on 4 Jan 2012 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 13 Feb 2012 at 12:44