Unable to access CloudPlatform Client

2019-07-25 08:43发布

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

2条回答
戒情不戒烟
2楼-- · 2019-07-25 09:06

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.

查看更多
淡お忘
3楼-- · 2019-07-25 09:09

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

查看更多
登录 后发表回答