Type Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [/home/bjditqjm/apache-tomcat-8x/work/Catalina/localhost/ROOT/org/apache/jsp/web/article8_jsp.java] Only a type can be imported. astrology.clsperson.ClsPerson resolves to a package An error occurred at line: [17] in the generated java file: [/home/bjditqjm/apache-tomcat-8x/work/Catalina/localhost/ROOT/org/apache/jsp/web/article8_jsp.java] Only a type can be imported. astrology.clsperson.ClsPerson resolves to a package An error occurred at line: 11 in the jsp file: /web/article8.jsp ClsPerson cannot be resolved to a type 8: <%@page contentType="text/html" pageEncoding="UTF-8"%> 9: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 10: "http://www.w3.org/TR/html4/loose.dtd"> 11: <%! ClsPerson mWho = null; 12: %> 13: <html> 14: <head> An error occurred at line: 38 in the jsp file: /web/article8.jsp mWho cannot be resolved to a variable 35: <div id="sidebar_container"> 36: 37: <% 38: mWho = (ClsPerson) session.getAttribute("mWho"); 39: if (mWho != null) { 40: %> 41: <%@include file="sidebars.jsp" %> An error occurred at line: 38 in the jsp file: /web/article8.jsp ClsPerson cannot be resolved to a type 35: <div id="sidebar_container"> 36: 37: <% 38: mWho = (ClsPerson) session.getAttribute("mWho"); 39: if (mWho != null) { 40: %> 41: <%@include file="sidebars.jsp" %> An error occurred at line: 39 in the jsp file: /web/article8.jsp mWho cannot be resolved to a variable 36: 37: <% 38: mWho = (ClsPerson) session.getAttribute("mWho"); 39: if (mWho != null) { 40: %> 41: <%@include file="sidebars.jsp" %> 42: <%@include file="article_navigation.jsp" %> An error occurred at line: 120 in the jsp file: /web/sidebars.jsp ClsPerson cannot be resolved to a type 117: </style> 118: <% 119: String accessbility = (String)session.getAttribute("accessbility"); 120: ClsPerson mWho = (ClsPerson)session.getAttribute("mWho"); 121: String language = mWho.language; 122: if(accessbility.equals("demo")){ 123: An error occurred at line: 120 in the jsp file: /web/sidebars.jsp ClsPerson cannot be resolved to a type 117: </style> 118: <% 119: String accessbility = (String)session.getAttribute("accessbility"); 120: ClsPerson mWho = (ClsPerson)session.getAttribute("mWho"); 121: String language = mWho.language; 122: if(accessbility.equals("demo")){ 123: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:495) org.apache.jasper.compiler.Compiler.compile(Compiler.java:363) org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:580) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Note The full stack trace of the root cause is available in the server logs.