Im getting the following ClassNotFoundException while trying to run my sample application. It would be great if anyone could point out what Im doing wrong. Thanks!
SEVERE: Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.thecafetechno.HelloWorldController] for bean with name '/requestURI.htm' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.thecafetechno.HelloWorldController
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
....
Caused by: java.lang.ClassNotFoundException: com.thecafetechno.HelloWorldController
....
However, Ive defined HelloWorldController in the right place . Here is my dispatcher servlet.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="viewResolverBean" class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
<property name="prefix">
<value>/WEB-INF/jsp/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<bean name="/requestURI.htm" class="com.thecafetechno.HelloWorldController" >
<property name="processor" ref="processorBean"/>
</bean>
<bean name="processorBean" class="process.Processor" />
</beans>
Is it possible for you to send that sample application so that I can quickly take a look. It seems to be some issue with how you are buildng application.