title: error tried to access method sun.security.rsa.RSAPublicKeyImpl
body: <p>Hi I try to execute my Spring application with dependency of JWT package and I found this error:</p>
  <pre><code>Caused by: java.lang.IllegalAccessError: tried to access method sun.security.rsa.RSAPublicKeyImpl.&lt;init&gt;([B)V from class com.agospass.OAuth2ResourceServerConfig
      at com.agospass.OAuth2ResourceServerConfig.accessTokenConverter(OAuth2ResourceServerConfig.java:87)
      at com.agospass.OAuth2ResourceServerConfig$$EnhancerBySpringCGLIB$$e9e14628.CGLIB$accessTokenConverter$3(&lt;generated&gt;)
      at com.agospass.OAuth2ResourceServerConfig$$EnhancerBySpringCGLIB$$e9e14628$$FastClassBySpringCGLIB$$e622f9ed.invoke(&lt;generated&gt;)
      at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
      at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
      at com.agospass.OAuth2ResourceServerConfig$$EnhancerBySpringCGLIB$$e9e14628.accessTokenConverter(&lt;generated&gt;)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
      ... 50 common frames omitted 
  
  </code></pre>
  <p>My jdk version 8u241 and Maven 3.8.1</p>
  <p>someone who can help me solve this problem or replace the dependency?</p>