Could not open JDBC Connection for transaction
我用SPRING+STRUTS整合技术
boolean checkresult=false;
private ISysUserMng sysUserManager;
checkresult = sysUserManager.checkUser(formToDao(sysUserActionForm));
我吧ISysUserMng定义成一个接口
public class SysUserMngImpl implements ISysUserMng{
public boolean checkUser(SysUser user) throws Exception {
System.out.println("-------");
try {
SysUserManager userFind = user.getSysUserManager();
userFind.setDs(getDataSource());
result = userFind.isExisted();
if(result==false){
throw new Exception("error.user.login");
}
return result;
} catch (BnetfaxException e) {
throw new BnetfaxException(e.getMessage());
} catch (Exception e) {
logUtil.error(e);
throw new BnetfaxException(Util.getErrorMsg(e));
}
}
我单步DEBUG时候,就跳不进checkUser这个方法里面,提示我Could not open JDBC Connection for transaction,请大大指点下!!