Ora viva gostaria de poder resolver este erro, para o projeto jsf que estou a desenvolver
Posta o seu código
Ora viva MIke aqui está o código
ficheiro spring-servlet-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>Blockquote
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>Blockquote
<context:annotation-config />
<mvc:annotation-driven/>
<mvc:default-servlet-handler/>
<mvc:resources location="/resources/img"
mapping="/resources/**" cache-period="5000"/>
<context:component-scan base-package="pt.com.project.geral.controller"/>
<context:component-scan base-package="pt.com.srv.interfaces"/>
<context:component-scan base-package="pt.com.srv.implementacao"/>
<context:component-scan base-package="pt.com.repository.interfaces" />
<context:component-scan base-package="pt.com.dao.implementacao" />
<context:component-scan base-package="pt.com.project.bean.view" />
<context:component-scan base-package="pt.com.project.bean.geral" />
<context:component-scan base-package="pt.com.project.report.util" />
<context:component-scan base-package="pt.com.project.util.all" />
<context:component-scan base-package="pt.com.project.bean.view.grafico"/>
<context:component-scan base-package="pt.com.framework.controller.crud"/>
<context:component-scan base-package="pt.com.framework.interfac.crud"/>
<!-- Data Source -->
<bean id="springDataSource" name="springDataSource"
class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="false">
<property name="jndiName">
<value>java:comp/env/jdbc/datasource</value>
</property>
</bean>
<bean id="flyway" class="org.flywaydb.core.Flyway" init-method="migrate"
lazy-init="false" >
<property name="dataSource" ref="springDataSource"/>
<property name="baselineOnMigrate" value="true"/>
<property name="table" value="version"/>
<property name="sqlMigrationPrefix" value="v"/>
<property name="sqlMigrationSeparator" value="_"/>
<property name="encoding" value="ISO-8859-1"/>
<property name="validateOnMigrate" value="true"/>
</bean>
<bean id="transactionManager" name="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
lazy-init="false">
<property name="dataSource" ref="springDataSource"/>
</bean>
<bean id="jdbcTemlate" name="jdbcTemlate"
class="pt.implementcao.framwork.projeto.crud.JDBCtemplateImplement">
<constructor-arg name="dataSource" ref="springDataSource"/>
</bean>
<bean id="simpleJdbcTemplate" name="simpleJdbcTemplate"
class="pt.implementcao.framwork.projeto.crud.SimpleJDBCtemplateImplement">
<constructor-arg name="dataSource" ref="springDataSource"/>
</bean>
<bean id="simpleJdbcInsert" name="simpleJdbcInsert" class="pt.implementcao.framwork.projeto.crud.SimpleJdbcInsertTemplateImplement" lazy-init="false">
<constructor-arg name="dataSource" ref="springDataSource"/>
</bean>
<bean id="simpleJdbcClassImpl" name="simpleJdbcClassImpl" class="pt.implementcao.framwork.projeto.crud.SimplejdbcClassImpl" lazy-init="false">
<constructor-arg name="dataSource" ref="springDataSource"/>
</bean>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"
lazy-init="false">
<property name="mappings">
<props>
<prop key="/index.jsp">indexController</prop>
</props>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
lazy-init="false">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WebContent/"/>
<property name="suffix" value="*.jsf, *.xhtml, *.html, *.jsp, *.js"/>
</bean>
<bean name="indexController" lazy-init="false"
class="org.springframework.web.servlet.mvc.ParameterizableViewController"/>
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer" lazy-init="false">
<property name="scopes">
<map>
<entry key="view">
<bean class="pt.project.bean.geral.ViewScopeSpring"/>
</entry>
</map>
</property>
</bean>
<bean id="reportUtil" class="pt.project.report.util.ReportUtil"/>
<bean id="utilFramework" class="pt.com.framework.utils.UtilFramework" scope="session"/>
----------------------------------web.xml
<?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"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp"
xmlns:web=“http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”
id="WebApp_ID " metadata-complete="true" version="3.0">
<display-name>projetoedmilsonrafaelstp</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>15</session-timeout> <!-- Invalida a sessão em 15 minutos -->
<tracking-mode>COOKIE</tracking-mode>
</session-config>
<error-page>
<exception-type>org.springframework.security.access.AccessDeniedException</exception-type>
<location>/error/acessoNegado.jsf</location>
</error-page>
<error-page>
<exception-type>com.sun.faces.context.FacesFileNotFoundException</exception-type>
<location>/error/paginaNaoEcontrada.jsf</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/error/acessoNegado.jsf</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/error.jsf</location>
</error-page>
<jsp-config>
<jsp-property-group>
<url-pattern>/**</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>
<error-page>
<error-code>404</error-code>
<location>/error/404.jsf</location>
</error-page>
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/spring-servlet-servlet.xml
/WEB-INF/applicationContext-security.xml
</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml .html .jsp</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</param-value>
</context-param>
<context-param>
<param-name>primafaces.THEME</param-name>
<param-value>smoothness</param-value>
</context-param>
<filter>
<filter-name>conexaoFilter</filter-name>
<filter-class>pt.com.project.filter.FilterOpenSessionInView</filter-class>
</filter>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<filter>
<filter-name>encoding-filter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>
</filter>
<filter>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>encoding-filter</filter-name>
<url-pattern>/*</url-pattern>
conexaoFilter
/*
springSecurityFilterChain
/*
<filter-mapping>
<filter-name>PrimeFaces FileUpload Filter</filter-name>
<servlet-name>Faces Servlets</servlet-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<listener>
<listener-class>pt.com.project.listener.ContextLoaderListenerSantaCasaUtils</listener-class>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
<listener>
<listener-class>pt.com.project.model.classes.CustomListner</listener-class>
<listener>
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
<resource-ref>
<description>DataSource datasource</description>
<res-ref-name>jdbc/datasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<servlet>
<servlet-name>spring-servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
spring-servlet
/
<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>*.jsf</url-pattern>
</servlet-mapping>