Unable to access CloudPlatform Client

断了今生、忘了曾经 提交于 2020-01-25 06:09:25

问题


I've installed Apache CloudStack 4.7.0.0 and after startup, when accessing the CloudPlatform Web Console, I get the following error:

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.
Apache Tomcat/6.0.24

Does anyone know why this would occur?

Cheers,

Michele


回答1:


So the answer was more of a workaround than a resolution. Downgrade the OpenJdk to version 1.8.0.77.

From this thread (The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files) I picked up that it may be a java issue so I reinstalled with the previous version of Open Jdk (1.8.0.77) and the CloudPlatform was able to compile the jsps.

Thanks @MZJN




回答2:


You need to be on 1.7 of Java. 1.8 is work in progress and you may encounter some issues there.

http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.7.0/upgrade/upgrade_notes.html

Consider using mailing lists if you need help.



来源:https://stackoverflow.com/questions/37184043/unable-to-access-cloudplatform-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!