Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012251Openbravo ERPA. Platformpublic2010-02-12 17:372010-03-10 18:30
iperdomo 
iperdomo 
urgentminoralways
closedfixed 
202.6.30-gentoo-r5
pi 
pi2.50MP12 
Core
No
0012251: YUICompressor fails when used with another Rhino based tool in the same classloader
We use YUICompressor for compressing JS and CSS fails. This tool is based on Mozilla Rhino and uses a modified version of the parser [1]. If in the same classloader you use another Rhino based tool the compression process fails. This also happens with OpenJDK users.

[1] http://www.julienlecomte.net/blog/2008/10/80/ [^]
Check the attached file: yuicompressor-issue.zip
Repackage Rhino 1.6R7, YUICompressor-2.4.2 and YUIAnt from org.mozilla to org.openbravo so we avoid class collision.
No tags attached.
related to defect 0010454 closed jpabloae Can not minimize JS and CSS 
related to design defect 0040533 closed platform remove rhino copies in lib/build 
zip yuicompressor-issue.zip (3,066,894) 2010-02-12 17:37
https://issues.openbravo.com/file_download.php?file_id=2208&type=bug
Issue History
2010-02-12 17:37iperdomoNew Issue
2010-02-12 17:37iperdomoAssigned To => iperdomo
2010-02-12 17:37iperdomoFile Added: yuicompressor-issue.zip
2010-02-12 17:38iperdomoRelationship addedrelated to 0010454
2010-02-12 17:38iperdomoStatusnew => scheduled
2010-02-12 17:38iperdomofix_in_branch => pi
2010-02-12 17:43hgbotCheckin
2010-02-12 17:43hgbotNote Added: 0024215
2010-02-12 17:43hgbotStatusscheduled => resolved
2010-02-12 17:43hgbotResolutionopen => fixed
2010-02-12 17:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5c8482440a871c30601c77b2645cfd644808bc29 [^]
2010-02-15 17:39hudsonbotCheckin
2010-02-15 17:39hudsonbotNote Added: 0024364
2010-02-16 17:47shuehnerNote Added: 0024429
2010-02-16 17:47shuehnerStatusresolved => closed
2010-02-16 17:47shuehnerFixed in Version => 2.50MP12
2010-02-17 00:01anonymoussf_bug_id0 =>
2010-03-10 18:30anonymoussf_bug_id => 2968061
2019-04-05 10:01alostaleRelationship addedrelated to 0040533

Notes
(0024215)
hgbot   
2010-02-12 17:43   
Repository: erp/devel/pi
Changeset: 5c8482440a871c30601c77b2645cfd644808bc29
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Feb 12 17:40:47 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5c8482440a871c30601c77b2645cfd644808bc29 [^]

Fixes issue 12251: JARs repackaged to avoid class collision

---
M lib/build/YUIAnt.jar
M lib/build/yuicompressor-2.4.2.jar
M src/build.xml
A lib/build/ob-rhino-1.6R7.jar
---
(0024364)
hudsonbot   
2010-02-15 17:39   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5c8482440a87 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/2596487a564c [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16391.obx [^]
(0024429)
shuehner   
2010-02-16 17:47   
Tested by doing install.source with js/css minimization enabled on ubuntu 9.10 with openjdk-6. As this failed before the patch consistently. Now working fine.