Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript engine not found in AppEngine local devserver #44

Closed
marceloverdijk opened this issue Mar 19, 2017 · 0 comments
Closed

JavaScript engine not found in AppEngine local devserver #44

marceloverdijk opened this issue Mar 19, 2017 · 0 comments
Assignees
Labels

Comments

@marceloverdijk
Copy link
Member

The Jsr223ScriptingHandler currently tries to get the scripting engine by doing:

``
ScriptEngine engine = new ScriptEngineManager().getEngineByName(engineName);


This works in most cases except in Google AppEngine local devserver.
However, supplying an explicit `null` classloader to the `ScriptEngineManager` does give the engine:

ScriptEngine engine = new ScriptEngineManager(null).getEngineByName(engineName);


So it would be good to add a fallback mechanism.

Note: Interestingly it only fails in the AppEngine local devserver. On the Google hosted environment it works without the fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant