org.apache.jasper.JasperException:

    技术2022-05-11  78

     org.apache.jasper.JasperException:

    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: For input string: "huizhong" org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:359) org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306) org.apache.jasper.runtime.JspRuntimeLibrary.introspect(JspRuntimeLibrary.java:284) org.apache.jsp.jobseeker.regDo_jsp._jspService(regDo_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

     

    root cause

    org.apache.jasper.JasperException: For input string: "huizhong" org.apache.jasper.runtime.JspRuntimeLibrary.convert(JspRuntimeLibrary.java:271) org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:353) org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306) org.apache.jasper.runtime.JspRuntimeLibrary.introspect(JspRuntimeLibrary.java:284) org.apache.jsp.jobseeker.regDo_jsp._jspService(regDo_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

     

    root cause

    java.lang.NumberFormatException: For input string: "huizhong" java.lang.NumberFormatException.forInputString(Unknown Source) java.lang.Integer.parseInt(Unknown Source) java.lang.Integer.<init>(Unknown Source) org.apache.jasper.runtime.JspRuntimeLibrary.convert(JspRuntimeLibrary.java:253) org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:353) org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306) org.apache.jasper.runtime.JspRuntimeLibrary.introspect(JspRuntimeLibrary.java:284) org.apache.jsp.jobseeker.regDo_jsp._jspService(regDo_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

     

    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.


    Apache Tomcat/5.0.28

    解决方法

    org.apache.jasper.JasperException: Unable to compile class for JSP No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. 

     

    这个异常一般是

    1-   jsp文件编写错误,里面可能包含错误的代码。 2 -  是你的jdk没有配置好。环境变量或路径设置不对。 还有,用浏览器打开:http://localhost:8080 如果出现提示成功画面,那说明八成是JSP文件有问题。 一般要把jsp文件放在ROOT目录下才可以正常运行。 


    最新回复(0)