jdon例子執行異常問題,可能是哪裡理解錯了,配置錯了

fxltsbl3855發表於2009-08-22
想做一個很簡單的例子:
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註冊的不對?

請前輩們指點一下,謝謝了

相關文章