Cannot find class [com.lee.action.LoginAction] for bean with name '/loginAction'
程序采用struts1+spring2.5+ibatis架构
就实现一个简单的用户登录功能
启动Tomcat老实提示找不到LoginAction类
求解
struts.xml中相关配置:
<action path="/loginAction" type="org.springframework.web.struts.DelegatingActionProxy" validate="true" scope="request">
<forward name="success" path="/loginsucc.jsp" />
<forward name="fail" path="/fail.jsp" />
</action>
spring的配置文件applicationContext.xml中相关配置:
<bean name="/loginAction" class="com.lee.action.LoginAction">
<property name="loginDao">
<ref bean="LoginDAO"/>
</property>
</bean>
启动服务器时后台提示错误:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.lee.action.LoginAction] for bean with name '/loginAction' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.lee.action.LoginAction
找了好久不知道到底哪里出问题了
求高手指点