Spring 3.1.0 Configuration problems....
fabrizi_valentina Jan 31, 2012 6:45 AMHi all!
I'm try to configure spring 3.1 but I'm in troubles
When I launch my web app I receive a classic ClassNotDefFound exceptions but I don't understanding the reason.....
web.xml
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>GOWeb_2.0</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<!-- JSF CONTEXT PARAM -->
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<!-- SPRING CONTEXT PARAM -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
</param-value>
</context-param>
<!-- SPRING CONTEXT LISTENER -->
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
<!-- FACES SERVLET -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
</web-app>
[/CODE]
faces-config.xml
[CODE]
<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<application>
<resource-bundle>
<base-name>resources.ApplicationResourceLabel</base-name>
<var>ApplResLbl</var>
</resource-bundle>
<resource-bundle>
<base-name>resources.ApplicationResourceMsg</base-name>
<var>ApplResMsg</var>
</resource-bundle>
<!-- SPRING CONFIG -->
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
</application>
</faces-config>
[/CODE]
applicationContext.xml
[CODE]
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
<display-name>GOWeb_2.0EAR</display-name>
<module>
<web>
<web-uri>GOWeb_2.0.war</web-uri>
<context-root>GOWeb_2.0</context-root>
</web>
</module>
</application>
[/CODE]
.classpath
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.aop-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.asm-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.aspects-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.beans-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.context-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.context.support-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.core-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.expression-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.instrument-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.instrument.tomcat-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.jdbc-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.jms-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.orm-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.oxm-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.test-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.transaction-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.web-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.web.portlet-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.web.servlet-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/org.springframework.web.struts-sources-3.1.0.RELEASE.jar"/>
<classpathentry kind="lib" path="/GOWeb_2.0EAR/EarContent/lib/primefaces-3.0.RC2.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
[/CODE]
I attach a gif with my web app structure.
I hope you can understand and help me!!!
Cheers, Valentina
-
spring_config.jpg 315.6 KB