日期:2014-05-17  浏览次数:20847 次

搜索引擎无法在tomcat中运行。。。毕设急。。
我的毕设做的是搜索引擎。。现在前期工作都差不多了,就是最后将应用部署到tomcat中的时候出现了问题。。本人对JAVA,JSP等不怎么了解,懂得很少,遇到错误也不怎么会解决,忘高手指点,不胜感激。。错误如下:

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: Unable to compile class for JSP

An error occurred at line: 59 in the jsp file: /s.jsp
CharacterHandle cannot be resolved
56: <div id="result" class="result" style="visibility:hidden">
57: <%
58: // 提取关键字
59: String keys = CharacterHandle.trans(param);
60: String[] results = new Query().getQueryResult(keys.split(" "));
61: // 结果总数
62: int length = results.length;


An error occurred at line: 60 in the jsp file: /s.jsp
Query cannot be resolved to a type
57: <%
58: // 提取关键字
59: String keys = CharacterHandle.trans(param);
60: String[] results = new Query().getQueryResult(keys.split(" "));
61: // 结果总数
62: int length = results.length;
63: // 显示记录的启示序号


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.


------解决方案--------------------
看看你WEB-INF/lib目录下有没有cn.edu.njut.search.util这个包……
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html