当前位置: 技术问答>java相关
我在LINUX下用APACHE加TOMCAT加jdk1.2.2,将CLASSES放在一个目录下。但出错请高手指教?
来源: 互联网 发布时间:2014-12-24
本文导语: 我设置了目录,CLASS也找到了,就是出现这样的问题,不光是我的程序,连TOMCAT自己的例子也出错。请问是什么原回? Error: 500 Location: /techjsp/fux/count/counter.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to...
我设置了目录,CLASS也找到了,就是出现这样的问题,不光是我的程序,连TOMCAT自己的例子也出错。请问是什么原回?
Error: 500
Location: /techjsp/fux/count/counter.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:63: Class count.counter not found.
count.counter bean0 = null;
^
/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:66: Class count.counter not found.
bean0= (count.counter)
^
/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:71: Class count.counter not found.
bean0 = (count.counter) Beans.instantiate(getClassLoader(), "count.counter");
^
3 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:475)
Error: 500
Location: /techjsp/fux/count/counter.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:63: Class count.counter not found.
count.counter bean0 = null;
^
/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:66: Class count.counter not found.
bean0= (count.counter)
^
/usr/local/jakarta-tomcat/work/localhost_8080%2Ftechjsp/_0002ffux_0002fcount_0002fcounter_0002ejspcounter_jsp_0.java:71: Class count.counter not found.
bean0 = (count.counter) Beans.instantiate(getClassLoader(), "count.counter");
^
3 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:475)
|
Point you "CLASSPATH" to the bean class directory.
|
fux(秦始皇) 我也遇到同样问题;请问如何解决的??