急!!急!!急!!(100分)

  • 主题发起人 主题发起人 雨点
  • 开始时间 开始时间

雨点

Unregistered / Unconfirmed
GUEST, unregistred user!
我在学习制作jsp论坛访问http://localhost:8080/examples/jsp/forum/index.jsp时碰到如下错误:这是什么问题啊?怎样解决?急!
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.

An error occurred at line: 32 in the jsp file: /jsp/forum/index.jsp
Generated servlet error:
D:/新建文件夹 (4)/jakarta-tomcat-4.0.1/work/localhost/examples/jsp/forum/index$jsp.java:87: Class forumbeans.Linkdb not found.
forumbeans.Linkdb linkdb = null;
^

An error occurred at line: 32 in the jsp file: /jsp/forum/index.jsp
Generated servlet error:
D:/新建文件夹 (4)/jakarta-tomcat-4.0.1/work/localhost/examples/jsp/forum/index$jsp.java:90: Class forumbeans.Linkdb not found.
linkdb= (forumbeans.Linkdb)
^

An error occurred at line: 32 in the jsp file: /jsp/forum/index.jsp
Generated servlet error:
D:/新建文件夹 (4)/jakarta-tomcat-4.0.1/work/localhost/examples/jsp/forum/index$jsp.java:95: Class forumbeans.Linkdb not found.
linkdb = (forumbeans.Linkdb) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "forumbeans.Linkdb");
^
Note: D:/新建文件夹 (4)/jakarta-tomcat-4.0.1/work/localhost/examples/jsp/forum/index$jsp.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
3 errors, 2 warnings
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authen
ticator.Authen
ticatorBase.invoke(Authen
ticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)

--------------------------------------------------------------------------------
 
Class [red]forumbeans.Linkdb[/red] not found
类[red]forumbeans.Linkdb[/red]没有找到,路经或名称可能写错了!
后面的错误都是由这里来的!
 
同意楼上
 
可是我把所有的类已经都放在webinf下的classes中了呀,类的名称也没错,就是Linkdb.class
 
路径呢?
你是 /web-inf/classes/forumbeans/Linkdb.class吗?
 
就如曹大侠说的,路径对应没问题。
还有方法,把CLASS都打成包吧---如*.jar
把jar文件放到/lib目录下。
 
你们的回答都是正确的,我没有在classes下建一个forumbeans目录,
不过还是不行,我想在2000下用mysql,但在数据源控制中找不到其驱动程序
mysql。jar不懂应该放在哪里
 
哪里有mysql转换为access的工具下载或mysql for 2000的补丁下载?
 
win2000下用mysql?
安装以后要在服务里面手工启动mysql.
C:/mysql/bin/mysql -u root -p
让你输密码就是安装成功了
 
bubble,能不能说具体点?
 
1,download &
install mysql for windows;
2, ensure your mysql installation.
3, create database &
tables;
4, put the jdbc driver (you can find it within mysql site) into web-inf/lib
5. everything will be smooth.
 
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at org.apache.jsp.index$jsp._jspService(index$jsp.java:118)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authen
ticator.Authen
ticatorBase.invoke(Authen
ticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
什么原因?
--------------------------------------------------------------------------------
 
NullPointerException
估计是你定义字符串为空时,对这个字符串进行操作,你先作null处理。再进行别和操作。
 

执行SQL语句出错:[Microsoft][ODBC Microsoft Access 驱动程序] ORDER BY 子句语法
错误。
哪里出毛病了?
 
你的sql语句不贴出来,怎么知道哪里错了
 
菜鸟+菜鸟。。。。+菜鸟=不菜之鸟!
 
绝对路径应为
《resin.conf中<http-server> <app-dir>doc</app-dir>中doc》+
/web-inf/classes/forumbeans/Linkdb.class
 
路径有问题:)
 
后退
顶部