Spring hibernate richfaces probleme configuration
amadoulamine1 Mar 13, 2013 2:36 PMHello I'm trying to make an architecture with : Spring 3.2 hibernate 4.2 et richfaces 4.3.1. My server dont work normally, I'll try to give configuration details.
Bonjour à tous je tente de mettre en place une architecture Spring 3.2 hibernate 4.2 et richfaces 4.3.1.Mon serveur ne demarre pas correctement je vai tenter de mettre les parametres de configuration
web.xml
web.xml |
---|
<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/javaeehttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>application-webapp</display-name>
<context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:log4j.properties</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener>
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
<listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener>
<context-param> <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name> <param-value>com.sun.facelets.FaceletViewHandler</param-value> </context-param>
<context-param> <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name> <param-value>true</param-value> </context-param>
<context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param>
<session-config> <session-timeout>30</session-timeout> </session-config>
<welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>
<servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> </web-app> |
faces.config :
faces-config.xml |
---|
<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_1.xsd" version="2.1"> <application> <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> </application> </faces-config> |
And if i start the server I got this in the console
et en demarrant j'ai ceci sur la console
Console |
---|
mars 13, 2013 6:13:32 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ..%myPath%;;. mars 13, 2013 6:13:32 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:application-webapp' did not find a matching property. mars 13, 2013 6:13:32 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] mars 13, 2013 6:13:32 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] mars 13, 2013 6:13:32 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 405 ms mars 13, 2013 6:13:32 PM org.apache.catalina.core.StandardService startInternal INFO: Démarrage du service Catalina mars 13, 2013 6:13:32 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.23 mars 13, 2013 6:13:39 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath mars 13, 2013 6:13:39 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initialisation de Mojarra 2.1.17 ( 20130107-1935 https://svn.java.net/svn/mojarra~svn/tags/2.1.17@11335) pour le contexte «/application» mars 13, 2013 6:13:39 PM com.sun.faces.spi.InjectionProviderFactory createInstance INFO: JSF1048 : Présence d’annotations PostConstruct/PreDestroy Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées. mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.javascript.ClientServiceConfigParser parse WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is not presented mars 13, 2013 6:13:40 PM org.richfaces.cache.CacheManager getCacheFactory INFO: Selected fallback cache factory mars 13, 2013 6:13:40 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache INFO: Creating LRUMap cache instance using parameters: {} mars 13, 2013 6:13:40 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache INFO: Creating LRUMap cache instance of 512 items capacity mars 13, 2013 6:13:40 PM org.richfaces.application.InitializationListener onStart INFO: RichFaces Core Implementation by JBoss by Red Hat, version 4.3.1.Final mars 13, 2013 6:13:40 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] mars 13, 2013 6:13:40 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] mars 13, 2013 6:13:40 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 7488 ms |
And if i try to acced to the page , I obtain this error message
et en essayant d'acceder a la page j'obtiens une erreur :
Etat HTTP 404 - /application-webapp
Someone can help me please?
Quelq'un pour m'aider svp merci?
PS: the maven librairies are in the jpeg file
PS: les librairies sont joint dans le fichier image
-
librairie.jpg 140.2 KB