You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chapman Flack (JIRA)" <ji...@apache.org> on 2019/04/03 02:43:00 UTC
[jira] [Commented] (MNG-6275) ServiceLoaderFactory can't find
implementations via ClassRealm
[ https://issues.apache.org/jira/browse/MNG-6275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808303#comment-16808303 ]
Chapman Flack commented on MNG-6275:
------------------------------------
Hi,
By following a link from the maven-antrun-plugin, I am under the impression that this issue might be the underlying reason I am seeing this error with a build that includes a <script> in an <antrun>:
{code}
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (pg_config to pgsql.properties) on project pljava-so: An Ant BuildException has occured: Unable to create javax script engine for javascript
{code}
Does that sound right? If so, what's the outlook for a resolution?
Thanks!
> ServiceLoaderFactory can't find implementations via ClassRealm
> --------------------------------------------------------------
>
> Key: MNG-6275
> URL: https://issues.apache.org/jira/browse/MNG-6275
> Project: Maven
> Issue Type: Bug
> Components: Class Loading
> Reporter: Robert Scholte
> Assignee: Stephen Connolly
> Priority: Critical
> Fix For: 3.x / Backlog
>
>
> Spotted this issue via MANTRUN-200. The reason is that in the {{DefaultClassRealmManager}} a new realm is created where the parent classLoader is {{null}}. This implies that the bootstrap classloader is used as parent.
> With Java8 nashorn has become an extension and is not part of the bootstrap classloader anymore.
> It is kind of strange that we want the bootstrap classloader here, it makes more sense if the system classloader is used (but with Java 7 and older versions of Java this was not an issue, both worked fine).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)