Tomcat5.5如何与Mysql5.0连接

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
addo22
帖子: 22
注册时间: 2008-04-29 15:06
送出感谢: 0
接收感谢: 0
联系:

Tomcat5.5如何与Mysql5.0连接

#1

帖子 addo22 » 2008-11-24 14:54

tomcat及mysql与安装完成,都没有问题。且mysql-connector-java-5.0.8-bin.jar也放入tomcat的common/lib目录下了,但仍无法通过tomcat访问mysql。(在windows下这样就可以了)
请问具体应该怎么配置连接才可以,是不是一定要配置连接池?
一抹微蓝,
孤独如水已如帛,
几许轻愁,
帛在水中自含蓄!
addo22
帖子: 22
注册时间: 2008-04-29 15:06
送出感谢: 0
接收感谢: 0
联系:

Re: Tomcat5.5如何与Mysql5.0连接

#2

帖子 addo22 » 2008-11-24 21:48

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: com.ygyl.exception.ActionExceptionHandler
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:525)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.framework.util.EncFilter.doFilter(EncFilter.java:88)


root cause

java.lang.ClassNotFoundException: com.ygyl.exception.ActionExceptionHandler
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.framework.util.EncFilter.doFilter(EncFilter.java:88)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
一抹微蓝,
孤独如水已如帛,
几许轻愁,
帛在水中自含蓄!
回复

回到 “数据库管理”