服务里引入平台的jar包,但一直报这个错误 **** DBDataSource ***DataSource has not registed!
这是由于采用第二代架构的jar包,但没有按其方式配置导致的。
要求在web.xml中配置:
com.sinosoft.sysframework.web.control.OnlineUserListener
action
com.sinosoft.sysframework.web.control.ExtendedStrutsActionServlet
config
/WEB-INF/struts-config.xml
debug
3
detail
3
1
同时在WEB-INF/config/dbmanager-config.xml中配置一个name为***DataSource的datasource-define。
数据库便可以正常调用