Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010454Openbravo ERP01. General setuppublic2009-09-01 18:062009-11-12 00:00
TDTwister 
jpabloae 
normalminorN/A
closedno change required 
20Ubuntu 9.04
main 
 
Core
No
0010454: Can not minimize JS and CSS
I tried to run ant install.source in order to compile the Openbravo ERP from source. The following error comes up:
generate.sprites:

minimizeJSandCSS:
[yuicompress] Compressing /home/tdtwister/Projects/openbravo/web/images/Logos.css to /home/tdtwister/Projects/openbravo/WebContent/web/images/Logos.css
[yuicompress] Compressing /home/tdtwister/Projects/openbravo/web/js/DHTMLgoodies/context-menu.js to /home/tdtwister/Projects/openbravo/WebContent/web/js/DHTMLgoodies/context-menu.js
[yuicompress] Error compressing /home/tdtwister/Projects/openbravo/web/js/DHTMLgoodies/context-menu.js, null

BUILD FAILED
/home/tdtwister/Projects/openbravo/build.xml:507: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/build.xml:297: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/build.xml:302: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/src/build.xml:386: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/src/build.xml:463: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/src/build.xml:496: The following error occurred while executing this line:
/home/tdtwister/Projects/openbravo/src/build.xml:559: Error compressing /home/tdtwister/Projects/openbravo/web/js/DHTMLgoodies/context-menu.js, null

It works ok if I turn off the compress flag off from the configuration. I also tried to compiling 2.50MP3 and I got the same error.
Download the latest version of Openbravo ERP source code. Compile it with ant install.source.
No tags attached.
related to defect 0012251pi closed iperdomo YUICompressor fails when used with another Rhino based tool in the same classloader 
Issue History
2009-09-01 18:06TDTwisterNew Issue
2009-09-01 18:06TDTwisterAssigned To => rafaroda
2009-09-14 12:33psarobeStatusnew => scheduled
2009-09-14 12:33psarobeAssigned Torafaroda => shuehner
2009-09-14 12:33psarobefix_in_branch => pi
2009-11-02 18:59jpabloaeNote Added: 0021518
2009-11-02 19:03jpabloaeAssigned Toshuehner => jpabloae
2009-11-02 19:03jpabloaeStatusscheduled => feedback
2009-11-11 23:44jpabloaeNote Added: 0021745
2009-11-11 23:44jpabloaeStatusfeedback => closed
2009-11-11 23:44jpabloaeResolutionopen => no change required
2009-11-12 00:00anonymoussf_bug_id0 => 2896283
2010-01-28 21:37jpabloaeNote Edited: 0021745
2010-02-12 17:38iperdomoRelationship addedrelated to 0012251

Notes
(0021518)
jpabloae   
2009-11-02 18:59   
It looks like you are using OpenJDK 6.

This an issue in OpenJDK, not Openbravo ERP:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/287035 [^]

Right now Openbravo ERP does not officially support OpenJDK. So your solution should be to use sun-java6-jdk instead.

Alternatively if you want to experiment with OpenJDK the workaround for this specific issue is to remove the symlink in /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar
(0021745)
jpabloae   
2009-11-11 23:44   
(edited on: 2010-01-28 21:37)
Closed because OpenJDK is not supported yet and because it's a OpenJDK issue in any case.