SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.SSH.pt.testAction] for bean with name 'regAction' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.SSH.pt.testAction
我也不知道为什么最后一个action的bean总是发现不了路径。所以我把action包中testAction.java放到可以读取的路径去了。结果,跑起来了。
<!-- 用户注册的Action -->
<bean id="regAction" class="com.SSH.daoimpl.testAction">//class="com.SSH.action.testAction 之前的路径,无法识别
<property name="userManager">//com.SSH.daoimpl.testAction 可以识别的路径
<ref bean="userManagerImpl" />
</property>
</bean>