Unable to instantiate Action, bookTypeAction, defined for 'bookTypeList' in namespace '/'

UnabletoinstantiateAction,bookTypeAction,definedfor'bookTypeList'innamespace'/'Errorc... Unable to instantiate Action, bookTypeAction, defined for 'bookTypeList' in namespace '/'Error creating bean with name 'bookTypeAction' defined in ServletContext resource [/WEB-INF/applicationContext-oa-struts.xml]: Cannot resolve reference to bean 'bookTypeManager' while setting bean property 'bookTypeManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookTypeManager' defined in file [D:\Workspaces8.5\.metadata\.me_tcat\webapps\feaonlinesns\WEB-INF\classes\com\oa\service\impl\BookTypeManagerImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.oa.service.impl.BookTypeManagerImpl]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.oa.service.impl.BookTypeManagerImpl.()
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

<package name="default-oa" extends="default">

<action name="bookTypeList" class="bookTypeAction" method="list"/>
<action name="delbooktype" class="bookTypeAction" method="delete"/>
<action name="savebookType" class="bookTypeAction" method="save"/>
<action name="editbookType" class="bookTypeAction" method="editList"/>

</package>
</struts>
展开
 我来答
chy305
2011-11-03 · TA获得超过125个赞
知道答主
回答量:65
采纳率:0%
帮助的人:63.5万
展开全部
bookTypeAction里调用了bookTypeManager,但spring无法实例化com.oa.service.impl.BookTypeManagerImpl,导致实例化action失败。你检查下你的这个类是不是存在,或写错
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式