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

EasyScheduler-JDK compatibility issue(EasyScheduler-JDK兼容问题) #566

Closed
zhuwep opened this issue Jul 12, 2019 · 6 comments
Closed

EasyScheduler-JDK compatibility issue(EasyScheduler-JDK兼容问题) #566

zhuwep opened this issue Jul 12, 2019 · 6 comments

Comments

@zhuwep
Copy link

zhuwep commented Jul 12, 2019

The backend uses the Oracle official JDK1.8 deployment startup (API) error, and can be started normally by switching to OPENJDK1.8.

Exception information:
java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
         At org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:94)
         At org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
         At org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:643)
         At org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:422)
         At org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:892)
...


后端使用Oracle官方JDK1.8 部署启动(API)报错,换成OPENJDK1.8可以正常启动

异常信息:
java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:94)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:100)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:643)
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:422)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:892)
...

@zhuwep
Copy link
Author

zhuwep commented Jul 12, 2019

It is recommended to explain and prompt to use OPENJDK1.8 in the deployment documentation.


建议在部署文档里说明并提示使用 OPENJDK1.8

@qiaozhanwei
Copy link
Contributor

qiaozhanwei commented Jul 13, 2019

We use Oracle official jdk1.8 internally, and open jdk 1.8 in docker. At present, we have not encountered such a problem. We will locate it according to your environment.


我们内部使用的是Oracle官方jdk1.8,docker中使用的是open jdk 1.8,目前没有遇到这样问题,根据你的环境我们定位一下

@zhuwep
Copy link
Author

zhuwep commented Jul 13, 2019

Environmental information:

Linux idc.corp.com 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Linux version 3.10.0-957.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018

java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

@qiaozhanwei
Copy link
Contributor

qiaozhanwei commented Jul 15, 2019

Which service starts reporting this error?


哪个服务启动报这个错误?

@qiaozhanwei
Copy link
Contributor

[root@3d722ff6f095 logs]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@3d722ff6f095 logs]# java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
[root@3d722ff6f095 logs]# jps
215 ApiApplicationServer
551 Jps
[root@3d722ff6f095 logs]#

@zhuwep
Copy link
Author

zhuwep commented Jul 17, 2019

Magical, but seeing the error message is JDK related, or thank you for your reply.


神奇,但是看报错信息是JDK相关, 还是感谢回复。

@zhuwep zhuwep closed this as completed Jul 17, 2019
@zhangmeng0428 zhangmeng0428 changed the title EasyScheduler-JDK兼容问题 EasyScheduler-JDK compatibility issue(EasyScheduler-JDK兼容问题) Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants