In my build.xml, I set the attribute scr.dir
:
<property name="src.dir" value="${backend.dir}/java-src/catw/src"/>
My dispatcher-servlet.xml:
<bean name="/welcome.htm" class="com.bamboo.catW3.business.impl.WelcomeController"/>
My view WEB-INF/jsp:
welcome.jsp
My controller:
com.bamboo.catW3.business.impl.WelcomeController.java
I run the project and show me this message:
org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [com.bamboo.catW3.business.impl.WelcomeController] for bean
with name '/welcome.htm' defined in ServletContext resource
[/WEB-INF/branch_try_htmlModulo-servlet.xml]; nested exception is
java.lang.ClassNotFoundException: com.bamboo.catW3.business.impl.WelcomeController
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1076)
I don't know how to fix this error, can anyone help me please?