Bug 1194705

Summary: [Java 8] Using nashorn scripting results in error message in the server log
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Josef Cacek <jcacek>
Component: ServerAssignee: Chao Wang <chaowan>
Status: CLOSED WONTFIX QA Contact: Pavel Slavicek <pslavice>
Severity: low Docs Contact: eap-docs <eap-docs>
Priority: unspecified    
Version: 6.4.0CC: cdewolf, chaowan, jlivings, jmartisk, jsenshar, jwankhed
Target Milestone: ---   
Target Release: EAP 6.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-28 09:28:26 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1195150    

Description Josef Cacek 2015-02-20 15:22:21 UTC
When using Java 8 scripting in the deployed application, I can see Error message in the log:

15:08:57,960 ERROR [stderr] (http-/127.0.0.1:8080-1) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found

Sample Java code to reproduce the issue:
new ScriptEngineManager().getEngineByName("nashorn").eval("print('Hello')");

Comment 3 Josef Cacek 2015-03-30 09:28:57 UTC
To be clear about the behavior. The scripting itself works, but the ERROR message is present in the log file.

Comment 10 Carlo de Wolf 2015-05-28 09:28:26 UTC
Upstream issue https://issues.jboss.org/browse/WFLY-3991 has been filed. This will not be fixed in EAP 6.