Here’s the thing.
I’m starting with JSF + PrimeFaces + Spring + Hibernate.
The problem is: We have a desktop application with everything created and prepared, but now we’re moving to the web.
Well, when I try to load the applicationContext
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
It comes out with this
Caused by: java.lang.ClassNotFoundException: com.planner.dao.Dao at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) ... 69 more
Related cause:
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.planner.pov.dao.AcaoDaoImpl]
for bean with name 'acaoDao' defined in URL [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/planner/dao/Dao at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
Well, the class "com.planner.dao.Dao" belongs to another project, I’ve already put the project in the build path, but it isn’t reconizing.
Is there another configr. to do beyond importing the project?
Now I am doing Spring + JSF project. It is work for me. Just try as below:
web.xml
faces-config.xml