servlet/JSP里面运行跳转的时候谁知道这是什么问题呀
typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatprevent...
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: org/wltea/analyzer/lucene/IKAnalyzer
servlet.Servlet1.doPost(Servlet1.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.ClassNotFoundException: org.wltea.analyzer.lucene.IKAnalyzer
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
servlet.Servlet1.doPost(Servlet1.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
Apache Tomcat/6.0.14
附源码:
String question=request.getParameter("queryQuestion");
String openId=(String)request.getSession().getAttribute("openId");
if(openId==null){
openId = "guest";
}
Date now = new Date();
String createTime =this.format.format(now);
String answer = "";
//2:初始化Luncene后台,准备检索消息
//Init.init1();
//3:接受luncene后台返回结果
answer=ChatService.chat(openId, createTime, question);//类的接口处,标志这里出错了但是不知道为什么
PrintWriter out = response.getWriter();
在线等。。。谢谢!!! 展开
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: org/wltea/analyzer/lucene/IKAnalyzer
servlet.Servlet1.doPost(Servlet1.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.ClassNotFoundException: org.wltea.analyzer.lucene.IKAnalyzer
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
servlet.Servlet1.doPost(Servlet1.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
Apache Tomcat/6.0.14
附源码:
String question=request.getParameter("queryQuestion");
String openId=(String)request.getSession().getAttribute("openId");
if(openId==null){
openId = "guest";
}
Date now = new Date();
String createTime =this.format.format(now);
String answer = "";
//2:初始化Luncene后台,准备检索消息
//Init.init1();
//3:接受luncene后台返回结果
answer=ChatService.chat(openId, createTime, question);//类的接口处,标志这里出错了但是不知道为什么
PrintWriter out = response.getWriter();
在线等。。。谢谢!!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询