jdon例子运行异常问题,可能是哪里理解错了,配置错了

09-08-22 fxltsbl3855
想做一个很简单的例子:
jdonframework.xml内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE app PUBLIC "-//JDON//DTD Framework 2005 1.0 //EN" "http://www.jdon.com/jdonframework.dtd">
<app>
<services>
<pojoService name="userService" class="step.service.impl.UserServiceImpl"/>
<component name="userDAO" class="step.dao.impl.UserDAOImpl"/>
</services>
</app>

UserServiceImpl中confirmUser方法体如下:
public int confirmUser(User user) throws StepException{
return userDAO.confirmUser(user);
}

然后程序执行到UserServiceImpl.confirmUser()时报错:
java.lang.reflect.UndeclaredThrowableException
$Proxy0.confirmUser(Unknown Source)
step.ui.action.LoginAction.execute(LoginAction.java:29)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)


感觉是不是UserDAOImpl注册的不对?

请前辈们指点一下,谢谢了

banq
2009-08-23 18:20
UserServiceImp提供一个带参数userDAO构造方法:

public UserServiceImp(UserDAO userDAO){
  this. userDAO = userDAO

}

<p class="indent">

[该贴被banq于2009-08-23 18:29修改过]