《jsp数据库系统开发案例精选》中人力资源如何配置
按照配置说明书,首先在xp上安装sql2000,安装了sp4补丁,安装C:\j2sdk1.4.2_11,配置了JAVA_HOME变量值C:\j2sdk1.4.2_11,classpath变量值%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;path变量值%JAVA_HOME%\bin;然后安装了tomcat,将数据库驱动包中3个文件复制到tomcat\common\lib目录下。最后把人力资源文件复制到Tomcat 5.0\webapps下,去掉只读属性,附加数据库,设置安全混合访问模式,最后启动tomcat运行,出现以下错误。同时我测试其他案例,比如新闻发布,物流管理等都可以正常运行。javax.servlet.ServletException: Cannot open connection
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
com.bOS.Action.ActionServlet.process(ActionServlet.java:21)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
net.sf.hibernate.JDBCException: Cannot open connection
net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:281)
net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)
net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)
net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2195)
com.bOS.bPRO_PersonManage.service.UsersDao.logonUsers(UsersDao.java:78)
com.bOS.bPRO_PersonManage.action.UsersAction.logon(UsersAction.java:111)
com.bOS.bPRO_PersonManage.action.UsersAction.execute(UsersAction.java:41)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
com.bOS.Action.ActionServlet.process(ActionServlet.java:21)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
搜索更多相关主题的帖子:
人力资源 数据库系统 jsp 开发
----------------解决方案--------------------------------------------------------
学习了!!!
----------------解决方案--------------------------------------------------------