type Exception report
message Unable to compile class for JSP:
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: [14] in the generated java file: [E:\apache-tomcat-8.0.15-windows-x86\apache-tomcat-8.0.15\work\Catalina\localhost\MVC_PIMS\org\apache\jsp\friendManage\updateFriendMessage_jsp.java]
Only a type can be imported. javax.enterprise.inject.New resolves to a package
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
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:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.15 logs.
以上是错误信息。 下面是无法编译文件的程序
<%@page import="javax.enterprise.inject.New"%>
<%@page import="friendManage.lookFriendBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
一种方法就是不断一小段代码
去都某一段 错误消失了
接下来 你懂的
一种方法就是不断一小段代码
去都某一段 错误消失了
接下来 你懂的
Found it out, it’s the reason for this sentence<%@page import="javax.enterprise.inject.New"%>. The auto-prompt function caused this class to be imported accidentally. . . But why is the error reported? I haven’t used it. Check it out~~~~It hurts
One way is to continue a small piece of code
and go to a certain section The error disappeared
Next thing you know
Found it out, it’s the reason for this sentence<%@page import="javax.enterprise.inject.New"%>. The auto-prompt function caused this class to be imported accidentally. . . But why is the error reported? I don’t use it. Check it out~~~~It hurts