gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 373 forks source link

Empty ScriptEngineManager in DevMode's embedded Jetty #8635

Closed dankurka closed 8 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 8661

Found in GWT Release:

GWT 2.6.0

Encountered on OS / Browser:

Ubuntu 13.10 / JDK 8

Detailed description:

In Dev Mode there is no ScriptEngine available in my Servlets.
On external Servers or if i start Jetty programmatically from gwt-dev.jar it is available.

Shortest code snippet which demonstrates issue:

new ScriptEngineManager().getEngineByName("nashorn"); //returns null

Reported by lukas.glowania on 2014-04-04 12:15:15

dankurka commented 9 years ago
Does it also happen in GWT 2.5.1?

Reported by t.broyer on 2014-04-05 09:20:24

dankurka commented 9 years ago
Yes. Just created a new sample project with 2.5.1 and put the line in GreetingServiceImpl
=> null.

Reported by lukas.glowania on 2014-04-05 09:33:01

dankurka commented 9 years ago

Reported by t.broyer on 2014-04-05 09:52:15

dankurka commented 9 years ago
I am seeing this in GWT 2.6.1 when run in dev mode.  Our "backend" code makes use of
Google's Proxy Vole http://code.google.com/p/proxy-vole/ which requires a JavaScript
engine.

Reported by mark.d.pollard on 2014-11-25 18:50:33