You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Daniel Cunha (JIRA)" <ji...@apache.org> on 2018/10/08 11:59:00 UTC

[jira] [Updated] (TOMEE-2253) tomee.sh -version not working with Java 11

     [ https://issues.apache.org/jira/browse/TOMEE-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Cunha updated TOMEE-2253:
--------------------------------
    Description: 
We are getting an illegal reflective access for Java 11 when trying to see the TomEE version with tomee.sh.
{code:java}
./tomee.sh -version
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.apache.openejb.loader.BasicURLClassPath$4 
(file:/usr/local/tomcat2/apache-tomcat/lib/openejb-loader-7.0.6-SNAPSHOT.jar)
 to field java.net.URLClassLoader.ucp
WARNING: Please consider reporting this to the maintainers of org.apache.openejb.loader.BasicURLClassPath$4
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Error setting up the classpath: class 
java.lang.IllegalAccessException: class 
org.apache.openejb.loader.BasicURLClassPath cannot access class 
jdk.internal.loader.URLClassPath (in module java.base) because module 
java.base does not export jdk.internal.loader to unnamed module @ae45eb6
java.lang.IllegalAccessException: class 
org.apache.openejb.loader.BasicURLClassPath cannot access class 
jdk.internal.loader.URLClassPath (in module java.base) because module 
java.base does not export jdk.internal.loader to unnamed module @ae45eb6
        at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
        at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
        at java.base/java.lang.reflect.Method.invoke(Method.java:558)
        at org.apache.openejb.loader.BasicURLClassPath.addJarToPath(BasicURLClassPath.java:47)
        at org.apache.openejb.loader.SystemClassPath.addJarToPath(SystemClassPath.java:48)
        at org.apache.openejb.cli.Bootstrap.setupClasspath(Bootstrap.java:129)
        at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:150)
Apache OpenEJB 7.0.6-SNAPSHOT    build: 20181003-04:34
{code}

  was:
We are getting a illegal reflective access for Java 11 when trying to see the TomEE version with tomee.sh. 


{code:java}
./tomee.sh -version
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.apache.openejb.loader.BasicURLClassPath$4 
(file:/usr/local/tomcat2/apache-tomcat/lib/openejb-loader-7.0.6-SNAPSHOT.jar)
 to field java.net.URLClassLoader.ucp
WARNING: Please consider reporting this to the maintainers of org.apache.openejb.loader.BasicURLClassPath$4
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Error setting up the classpath: class 
java.lang.IllegalAccessException: class 
org.apache.openejb.loader.BasicURLClassPath cannot access class 
jdk.internal.loader.URLClassPath (in module java.base) because module 
java.base does not export jdk.internal.loader to unnamed module @ae45eb6
java.lang.IllegalAccessException: class 
org.apache.openejb.loader.BasicURLClassPath cannot access class 
jdk.internal.loader.URLClassPath (in module java.base) because module 
java.base does not export jdk.internal.loader to unnamed module @ae45eb6
        at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
        at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
        at java.base/java.lang.reflect.Method.invoke(Method.java:558)
        at org.apache.openejb.loader.BasicURLClassPath.addJarToPath(BasicURLClassPath.java:47)
        at org.apache.openejb.loader.SystemClassPath.addJarToPath(SystemClassPath.java:48)
        at org.apache.openejb.cli.Bootstrap.setupClasspath(Bootstrap.java:129)
        at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:150)
Apache OpenEJB 7.0.6-SNAPSHOT    build: 20181003-04:34
{code}



> tomee.sh -version not working with Java 11
> ------------------------------------------
>
>                 Key: TOMEE-2253
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2253
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 8.0.0, 7.1
>            Reporter: Daniel Cunha
>            Priority: Minor
>
> We are getting an illegal reflective access for Java 11 when trying to see the TomEE version with tomee.sh.
> {code:java}
> ./tomee.sh -version
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by 
> org.apache.openejb.loader.BasicURLClassPath$4 
> (file:/usr/local/tomcat2/apache-tomcat/lib/openejb-loader-7.0.6-SNAPSHOT.jar)
>  to field java.net.URLClassLoader.ucp
> WARNING: Please consider reporting this to the maintainers of org.apache.openejb.loader.BasicURLClassPath$4
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> Error setting up the classpath: class 
> java.lang.IllegalAccessException: class 
> org.apache.openejb.loader.BasicURLClassPath cannot access class 
> jdk.internal.loader.URLClassPath (in module java.base) because module 
> java.base does not export jdk.internal.loader to unnamed module @ae45eb6
> java.lang.IllegalAccessException: class 
> org.apache.openejb.loader.BasicURLClassPath cannot access class 
> jdk.internal.loader.URLClassPath (in module java.base) because module 
> java.base does not export jdk.internal.loader to unnamed module @ae45eb6
>         at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
>         at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:558)
>         at org.apache.openejb.loader.BasicURLClassPath.addJarToPath(BasicURLClassPath.java:47)
>         at org.apache.openejb.loader.SystemClassPath.addJarToPath(SystemClassPath.java:48)
>         at org.apache.openejb.cli.Bootstrap.setupClasspath(Bootstrap.java:129)
>         at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:150)
> Apache OpenEJB 7.0.6-SNAPSHOT    build: 20181003-04:34
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)