Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29843 - [jre7-openjdk-headless] Rhino without javax.script.RhinoScriptEngineFactory?

Attached to Project: Arch Linux
Opened by Alexander (AlexanderR) - Friday, 11 May 2012, 13:58 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 15 September 2012, 08:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Guillaume ALAUX (galaux)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Neither java-rhino package nor rhino.jar in jre7-openjdk-headless provide RhinoScriptEngineFactory implementation.
Following command shows no results which means that there are no jar files with corresponding entry in manifest:

find /usr/lib/jvm/ -name "*.jar" -exec jar -tf {} \; | grep META-INF/services/javax.script.ScriptEngineFactory

Steps to reproduce:
Install jre7-openjdk-headless 7.b147_2.1-3 (it contains rhino.jar). Try to launch software that

Expected behavior:
Arch should provide rhino bindings for javax.script API somewhere (like Oracle Java does) as expected by numerous software (see for example Netbeans javafx plugin bug report - http://netbeans.org/bugzilla/show_bug.cgi?id=209491).

May be related:
Debian bug (not directly related): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669078
Rhino bug: https://bugzilla.mozilla.org/show_bug.cgi?id=379385
SO question (comments in first answer): http://stackoverflow.com/questions/6089773/javascript-engine-can-not-be-found-scripting-for-the-java-platform
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 15 September 2012, 08:24 GMT
Reason for closing:  Fixed
Comment by Alexander (AlexanderR) - Friday, 11 May 2012, 19:41 GMT
Just in case here is a test snippet:

package scriptingtest;

import java.util.Iterator;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;

public class ScriptingTest
{
public static void main(String[] args)
{
ScriptEngineManager manager = new ScriptEngineManager();
for (Iterator<ScriptEngineFactory> it = manager.getEngineFactories().iterator(); it.hasNext();)
{
ScriptEngineFactory factory = it.next();
System.out.println(factory.getEngineName());
}
}
}

Blank output means no success.
Comment by Andreas Radke (AndyRTR) - Sunday, 20 May 2012, 12:14 GMT
Guillaume, can you please have a look? I guess this should be done in the rhino pkg or maybe solved in the next OpenJDK update?
Comment by Guillaume ALAUX (galaux) - Sunday, 20 May 2012, 12:42 GMT
Yes, I should have answered this. I have had a look at it but I need further investigation.
Comment by Andreas Radke (AndyRTR) - Saturday, 15 September 2012, 06:18 GMT
[root@workstation64 andyrtr]# find /usr/lib/jvm -name "*.jar" -exec jar -tf {} \; | grep META-INF/services/javax.script.ScriptEngineFactory
META-INF/services/javax.script.ScriptEngineFactory

[root@workstation64 andyrtr]# pacman -Q jdk7-openjdk rhino
jdk7-openjdk 7.u7_2.3.2-1
rhino 1.7R3-3

So this has been fixed meanwhile? Can we close it?
Comment by Guillaume ALAUX (galaux) - Saturday, 15 September 2012, 08:18 GMT
Agree: it seems the necessary classes are back. I also checked the specified code which gives "Rhino" as available ScriptEngineManager
Nice catch!

Loading...