E4X not work with rhino

Bug #304702 reported by Atry
8
Affects Status Importance Assigned to Milestone
Alfresco
New
Undecided
Unassigned
alfresco-community (Ubuntu)
Fix Released
Undecided
Unassigned
rhino (Debian)
Fix Released
Unknown
rhino (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: rhino

$ rhino
Rhino 1.7 release 1 2008 10 20
js> var x=<xxx/>;
js: "<stdin>", line 2: uncaught JavaScript runtime exception: ReferenceError: "XML" is not defined.
 at <stdin>:2

Related branches

Revision history for this message
krouskop (krouskop) wrote :

Workaround I'm using in Intrepid:

Download rhino1_7R1.zip from Mozilla (http://www.mozilla.org/rhino/download.html).

Extract js.jar from that zip.

Replace /usr/share/java/js-1.7R1.jar with the js.jar you just extracted.

Revision history for this message
Martin Jackson (mhjacks) wrote :

Since as of Intrepid we have libxmlbeans-java packaged, could we enable E4X to build in the Rhino package? Here's the message from the rhino changelog:

rhino (1.6.R5-3) unstable; urgency=low

  * Removed Wolfgang Baer from Uploaders and added myself.
  * Fixed FTBFS: java.net.ConnectException: Connection refused.
    Was trying to download xmlbeans Jar, which is not allowed. As
    this Jar is not (yet) in Debian, rhino has been built with XML
    implementation disabled.

Revision history for this message
Alan Bell (alanbell) wrote :

I think (but I am not certain) that this bug is breaking a lot of the alfresco-community functionality in particular the wiki in the alfresco share area.

Revision history for this message
Alan Bell (alanbell) wrote :

yes, it does affect alfresco-community. A lot of the Alfresco dashlets (bits in the portal area) depend on E4X and assume it is provided by Rhino, I used the workaround above and downloaded rhino1_7R2.zip and overwrote /usr/share/java/js-1.7R1.jar with the js.jar from the zip file, restarted the computer (although restarting tomcat would have been sufficient and now it works fine.

Revision history for this message
Alan Bell (alanbell) wrote :

logged the issue with Alfresco too, this isn't really an upstream bug report though as they can't fix it. https://issues.alfresco.com/jira/browse/ALFCOM-3317

Revision history for this message
Damien Raude-Morvan (drazzib) wrote :

Hi,

I've uploaded a new release of rhino to debian unstable.

 rhino (1.7R2-4) unstable; urgency=low
 .
   * Enable E4X support:
     - Build-Depends on libxmlbeans-java
     - Set JAR location in debian/ant.properties
     - Should fix (Closes: #567847) and (LP: #304702)
   * Bump Standards-Version to 3.8.4 (no changes needed)
   * Fix small typo in rhino-jsc manpage
   * Fix debian/copyright: don't use symlink to license

This release should fix current issue on E4X.
Could someone from ubuntu team request a sync ?

Greetings,
--
Damien Raude-Morvan

Changed in rhino (Debian):
status: Unknown → New
Changed in rhino (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rhino - 1.7R2-4

---------------
rhino (1.7R2-4) unstable; urgency=low

  * Enable E4X support:
    - Build-Depends on libxmlbeans-java
    - Set JAR location in debian/ant.properties
    - Should fix (Closes: #567847) and (LP: #304702)
  * Bump Standards-Version to 3.8.4 (no changes needed)
  * Fix small typo in rhino-jsc manpage
  * Fix debian/copyright: don't use symlink to license
 -- Ubuntu Archive Auto-Sync <email address hidden> Sun, 09 May 2010 14:01:45 +0100

Changed in rhino (Ubuntu):
status: New → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote :

Re-opening, since we reverted the fix for Maverick. Should be fixed for Natty, by pushing a couple of MIRs (xmlbeans, saxonb) and manually building xmlbeans in main.

Changed in rhino (Ubuntu):
assignee: nobody → James Page (james-page)
importance: Undecided → Wishlist
status: Fix Released → Triaged
Revision history for this message
James Page (james-page) wrote :

xmlbeans and saxonb now in main so E4X support can be re-enabled.

James Page (james-page)
Changed in rhino (Ubuntu):
importance: Wishlist → Low
status: Triaged → New
status: New → In Progress
assignee: James Page (james-page) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rhino - 1.7R2-4ubuntu2

---------------
rhino (1.7R2-4ubuntu2) natty; urgency=low

  * Re-enable E4X support (LP: #304702):
    - debian/control: Added Build-Depends on libxmlbeans-java
    - debian/ant.properties: Remove no-e4x flag
 -- James Page <email address hidden> Mon, 15 Nov 2010 08:51:04 +0000

Changed in rhino (Ubuntu):
status: In Progress → Fix Released
Andreas Moog (ampelbein)
Changed in alfresco-community (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.