eclipse+myeclipse+tomcat問題

ashyrabbit發表於2005-12-10
環境eclipse3.1.1
myeclipse4.03
tomcat5

按照myeclipse的flash demo:Hibernate.swf和源程式BasicDB.zip一步一步進行操作,資料庫換成ms sql server結果出現如下錯誤:

javax.servlet.ServletException: org.hibernate.HibernateException: Not able to obtain connection
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.RuntimeException: org.hibernate.HibernateException: Not able to obtain connection
com.pengcheng.hibernate.VipService.addVipdata(VipService.java:264)
com.pengcheng.struts.action.AddVipdata.execute(AddVipdata.java:47)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


哪位大哥幫忙分析一下,謝謝了!