当前位置: 技术问答>java相关
请JSP高手解答!如何解决?
来源: 互联网 发布时间:2015-10-20
本文导语: JSP代码如下: isThreadSafe属性应用于简单的计数器 isThreadSafe属性应用于简单的计数器 This page has been visited times 在IE里的出错报告如下: A Servlet Exception Has Occurred Exception Report: javax.servl...
JSP代码如下:
isThreadSafe属性应用于简单的计数器
isThreadSafe属性应用于简单的计数器
在IE里的出错报告如下:
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:774)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)
Root Cause:
java.lang.Error: Fatal Error: missing resource: java.util.PropertyResourceBundle
at org.apache.jasper.Constants.getString(Constants.java:243)
at org.apache.jasper.Constants.message(Constants.java:281)
at org.apache.jasper.Constants.message(Constants.java:258)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:140)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:338)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:255)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:755)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)
isThreadSafe属性应用于简单的计数器
isThreadSafe属性应用于简单的计数器
This page has been visited
times
在IE里的出错报告如下:
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:774)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)
Root Cause:
java.lang.Error: Fatal Error: missing resource: java.util.PropertyResourceBundle
at org.apache.jasper.Constants.getString(Constants.java:243)
at org.apache.jasper.Constants.message(Constants.java:281)
at org.apache.jasper.Constants.message(Constants.java:258)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:140)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:338)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:255)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:755)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:818)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)
|
可能是你的jdk不全,到http://java.sun.com/j2se/1.4/download.html下
|
“tmep = raf.readLine();” ?
写错了吧
写错了吧
|
dui ~
|
可能是文件找不到
可以用if(file.exists()){}
测试一下
可以用if(file.exists()){}
测试一下
|
我这里可以
|
我试了一下,提示:
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occured between lines: 34 and 41 in the jsp file: /1.jsp
Generated servlet error:
C:JBuilder6tomcat4worklocalhost_$1$jsp.java:96: Missing term.
out.write("rnrntrnttisThreadSafe???????????ò?????????÷rntt
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occured between lines: 34 and 41 in the jsp file: /1.jsp
Generated servlet error:
C:JBuilder6tomcat4worklocalhost_$1$jsp.java:96: Missing term.
out.write("rnrntrnttisThreadSafe???????????ò?????????÷rntt
rnttThis page has been visitedrnttrntt");
^
1 error
我用的win98+tomcat4.0.1+1.3.1