Olá,
porque aparece a mensagem
The duplicate definition has been ignored.
e não aparece a instacia das classes que definida no arquivo applicationContext.xml
alguém pode me ajudar …
abs
11/09/2009 09:46:07 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:springjsf' did not find a matching property.
11/09/2009 09:46:07 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: C:\Arquivos de programas\Java\jre1.5.0_16\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre1.6.0_07/bin/client;C:/Arquivos de programas/Java/jre1.6.0_07/bin;C:\oracle\ora92\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Intel\DMIX;c:\Arquivos de programas\Microsoft SQL Server\90\Tools\binn\;C:\Arquivos de programas\Symantec\pcAnywhere\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
11/09/2009 09:46:08 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11/09/2009 09:46:08 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3294 ms
11/09/2009 09:46:08 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11/09/2009 09:46:08 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
11/09/2009 09:46:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener" is already configured for this context. The duplicate definition has been ignored.
11/09/2009 09:46:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
11/09/2009 09:46:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.application.WebappLifecycleListener" is already configured for this context. The duplicate definition has been ignored.
11/09/2009 09:46:18 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/springjsf'
log4j:WARN No appenders could be found for logger (org.ajax4jsf.application.DebugLifecycleFactory).
log4j:WARN Please initialize the log4j system properly.
11/09/2009 09:46:20 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
11/09/2009 09:46:23 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
11/09/2009 09:46:23 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
11/09/2009 09:46:23 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/250 config=null
11/09/2009 09:46:23 org.apache.catalina.startup.Catalina start
INFO: Server startup in 15713 ms
--applicationContext.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<bean id="usuarioFacade" class="br.com.jm.springjsf.facade.UsuarioFacadeImpl">
<property name="usuarioDao" ref="usuarioDao"/>
</bean>
<bean id="usuarioDao" class="br.com.jm.springjsf.dao.UsuarioDaoImpl">
</bean>
</beans>
--web.xml
<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>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<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>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
--faces-config.xml
<application>
<variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
</application>
<managed-bean>
<managed-bean-name>usuarioFormBean</managed-bean-name>
<managed-bean-class>br.com.jm.springjsf.UsuarioFormBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>facade</property-name>
<property-class>br.com.jm.springjsf.facade.UsuarioFacade</property-class>
<value>#{usuarioFacade}</value>
</managed-property>
</managed-bean>
<navigation-rule>
<display-name>index</display-name>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>sucesso</from-outcome>
<to-view-id>/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>