Spring et Acegi
youssefcsi2010
-
livaneti Messages postés 71 Date d'inscription Statut Membre Dernière intervention -
livaneti Messages postés 71 Date d'inscription Statut Membre Dernière intervention -
bonjour tout le monde,
j'ai une application avec Spring à sécurisé avec le framework Acegi, le problème c'est qu'on je fait Run-as une liste de problème apparait sur le console:
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Test_JPA' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Test_2010' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:petclinic' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:newsserverws' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:BlankApplication' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:demospringmvc1' did not find a matching property.
14 avr. 2010 15:53:11 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:\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Java/jre6/bin/client;C:/Java/jre6/bin;C:\Program Files\MiKTeX 2.7\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\python26;C:\java\jre6\bin;C:\JCDK222\bin
14 avr. 2010 15:53:12 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
14 avr. 2010 15:53:12 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 604 ms
14 avr. 2010 15:53:12 org.apache.catalina.core.StandardService start
INFO: D�marrage du service Catalina
14 avr. 2010 15:53:12 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).
log4j:WARN Please initialize the log4j system properly.
14 avr. 2010 15:53:12 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
14 avr. 2010 15:53:13 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'objisapp'
14 avr. 2010 15:53:13 org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/D:/Eclipse_youssef/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test_JPA/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
14 avr. 2010 15:53:14 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml'
14 avr. 2010 15:53:14 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws[commons-attributes-compiler.jar]: L'extension requise "ant" est introuvable.
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws[commons-attributes-compiler.jar]: L'extension requise "javadoc" est introuvable.
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws: Impossible de trouver 2 extension(s) requise(s).
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext start
GRAVE: Error getConfigured
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d�marrage du contexte /newsserverws suite aux erreurs pr�c�dentes
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext stop
INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost]./newsserverws n'a pas �t� d�marr�
14 avr. 2010 15:53:14 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2010-04-14 15:53:14,953 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
2010-04-14 15:53:15,015 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@d67067: display name [Root WebApplicationContext]; startup date [Wed Apr 14 15:53:15 CEST 2010]; root of context hierarchy>
2010-04-14 15:53:15,125 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContext-jdbc.xml>
2010-04-14 15:53:15,343 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@d67067]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7>
2010-04-14 15:53:15,453 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [jdbc.properties]>
2010-04-14 15:53:15,609 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,mbeanExporter,clinic,callMonitor]; root of factory hierarchy>
2010-04-14 15:53:16,281 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Registering beans for JMX exposure on startup>
2010-04-14 15:53:16,421 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Bean with name 'clinic' has been autodetected for JMX exposure>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Bean with name 'callMonitor' has been autodetected for JMX exposure>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Located MBean 'clinic': registering with JMX server as MBean [petclinic:type=Clinic]>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Located managed bean 'callMonitor': registering with JMX server as MBean [petclinic:type=CallMonitor]>
2010-04-14 15:53:16,484 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization completed in 1531 ms>
2010-04-14 15:53:16,515 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization started>
14 avr. 2010 15:53:16 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'petclinic'
2010-04-14 15:53:16,515 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@df2940: display name [WebApplicationContext for namespace 'petclinic-servlet']; startup date [Wed Apr 14 15:53:16 CEST 2010]; parent: org.springframework.web.context.support.XmlWebApplicationContext@d67067>
2010-04-14 15:53:16,515 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource /WEB-INF/petclinic-servlet.xml>
2010-04-14 15:53:16,734 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@df2940]: org.springframework.beans.factory.support.DefaultListableBeanFactory@dc024a>
2010-04-14 15:53:16,781 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@dc024a: defining beans [addOwnerForm,addPetForm,addVisitForm,clinicController,editOwnerForm,editPetForm,findOwnersForm,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7>
2010-04-14 15:53:16,953 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization completed in 438 ms>
14 avr. 2010 15:53:17 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
14-04-2010 15:53:17:218 0 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
14-04-2010 15:53:17:265 47 INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@946d22: display name [Root WebApplicationContext]; startup date [Wed Apr 14 15:53:17 CEST 2010]; root of context hierarchy
14-04-2010 15:53:17:375 157 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContext.xml
14-04-2010 15:53:17:437 219 DEBUG org.directwebremoting.util.Logger - Logging using commons-logging.
14-04-2010 15:53:17:484 266 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContextDao.xml
14-04-2010 15:53:17:484 266 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContextDWR.xml
14-04-2010 15:53:17:500 282 INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@946d22]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2a069
14-04-2010 15:53:17:562 344 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2a069: defining beans [userManagerTarget,userManager,userDao,sessionFactory,transactionManager,transactionProxy,userDWR]; root of factory hierarchy
14-04-2010 15:53:17:921 703 INFO org.springframework.orm.hibernate3.LocalSessionFactoryBean - Building new Hibernate SessionFactory
14-04-2010 15:53:18:671 1453 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'@'@localhost' (mot de passe: OUI)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2748)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
14-04-2010 15:53:19:343 2125 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2109 ms
14 avr. 2010 15:53:20 org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/D:/Eclipse_youssef/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test_2010/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
14 avr. 2010 15:53:20 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml'
14 avr. 2010 15:53:20 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
14 avr. 2010 15:53:21 org.apache.coyote.http11.Http11Protocol start
INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
14 avr. 2010 15:53:21 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
14 avr. 2010 15:53:21 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
14 avr. 2010 15:53:21 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9113 ms
j'ai poursuis les deux liens des cours avec des exemples mais sans solution:
https://www.developpez.com/telechargements/auth/id/2b9ed42d7e0a3d197d5a195bec79657b
http://ftp-developpez.com/...
dans l'attente de vos reponse et merci pour vous
j'ai une application avec Spring à sécurisé avec le framework Acegi, le problème c'est qu'on je fait Run-as une liste de problème apparait sur le console:
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Test_JPA' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Test_2010' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:petclinic' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:newsserverws' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:BlankApplication' did not find a matching property.
14 avr. 2010 15:53:11 org.apache.tomcat.util.digester.SetPropertiesRule begin
ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:demospringmvc1' did not find a matching property.
14 avr. 2010 15:53:11 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:\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Java/jre6/bin/client;C:/Java/jre6/bin;C:\Program Files\MiKTeX 2.7\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\python26;C:\java\jre6\bin;C:\JCDK222\bin
14 avr. 2010 15:53:12 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
14 avr. 2010 15:53:12 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 604 ms
14 avr. 2010 15:53:12 org.apache.catalina.core.StandardService start
INFO: D�marrage du service Catalina
14 avr. 2010 15:53:12 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).
log4j:WARN Please initialize the log4j system properly.
14 avr. 2010 15:53:12 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
14 avr. 2010 15:53:13 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'objisapp'
14 avr. 2010 15:53:13 org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/D:/Eclipse_youssef/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test_JPA/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
14 avr. 2010 15:53:14 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml'
14 avr. 2010 15:53:14 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws[commons-attributes-compiler.jar]: L'extension requise "ant" est introuvable.
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws[commons-attributes-compiler.jar]: L'extension requise "javadoc" est introuvable.
14 avr. 2010 15:53:14 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator/newsserverws: Impossible de trouver 2 extension(s) requise(s).
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext start
GRAVE: Error getConfigured
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de d�marrage du contexte /newsserverws suite aux erreurs pr�c�dentes
14 avr. 2010 15:53:14 org.apache.catalina.core.StandardContext stop
INFO: Le conteneur org.apache.catalina.core.ContainerBase.[Catalina].[localhost]./newsserverws n'a pas �t� d�marr�
14 avr. 2010 15:53:14 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2010-04-14 15:53:14,953 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
2010-04-14 15:53:15,015 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@d67067: display name [Root WebApplicationContext]; startup date [Wed Apr 14 15:53:15 CEST 2010]; root of context hierarchy>
2010-04-14 15:53:15,125 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContext-jdbc.xml>
2010-04-14 15:53:15,343 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@d67067]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7>
2010-04-14 15:53:15,453 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [jdbc.properties]>
2010-04-14 15:53:15,609 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,mbeanExporter,clinic,callMonitor]; root of factory hierarchy>
2010-04-14 15:53:16,281 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Registering beans for JMX exposure on startup>
2010-04-14 15:53:16,421 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Bean with name 'clinic' has been autodetected for JMX exposure>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Bean with name 'callMonitor' has been autodetected for JMX exposure>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Located MBean 'clinic': registering with JMX server as MBean [petclinic:type=Clinic]>
2010-04-14 15:53:16,437 INFO [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] - <Located managed bean 'callMonitor': registering with JMX server as MBean [petclinic:type=CallMonitor]>
2010-04-14 15:53:16,484 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization completed in 1531 ms>
2010-04-14 15:53:16,515 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization started>
14 avr. 2010 15:53:16 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'petclinic'
2010-04-14 15:53:16,515 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@df2940: display name [WebApplicationContext for namespace 'petclinic-servlet']; startup date [Wed Apr 14 15:53:16 CEST 2010]; parent: org.springframework.web.context.support.XmlWebApplicationContext@d67067>
2010-04-14 15:53:16,515 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource /WEB-INF/petclinic-servlet.xml>
2010-04-14 15:53:16,734 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@df2940]: org.springframework.beans.factory.support.DefaultListableBeanFactory@dc024a>
2010-04-14 15:53:16,781 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@dc024a: defining beans [addOwnerForm,addPetForm,addVisitForm,clinicController,editOwnerForm,editPetForm,findOwnersForm,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6a1a7>
2010-04-14 15:53:16,953 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization completed in 438 ms>
14 avr. 2010 15:53:17 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
14-04-2010 15:53:17:218 0 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
14-04-2010 15:53:17:265 47 INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@946d22: display name [Root WebApplicationContext]; startup date [Wed Apr 14 15:53:17 CEST 2010]; root of context hierarchy
14-04-2010 15:53:17:375 157 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContext.xml
14-04-2010 15:53:17:437 219 DEBUG org.directwebremoting.util.Logger - Logging using commons-logging.
14-04-2010 15:53:17:484 266 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContextDao.xml
14-04-2010 15:53:17:484 266 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource /WEB-INF/applicationContextDWR.xml
14-04-2010 15:53:17:500 282 INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@946d22]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2a069
14-04-2010 15:53:17:562 344 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2a069: defining beans [userManagerTarget,userManager,userDao,sessionFactory,transactionManager,transactionProxy,userDWR]; root of factory hierarchy
14-04-2010 15:53:17:921 703 INFO org.springframework.orm.hibernate3.LocalSessionFactoryBean - Building new Hibernate SessionFactory
14-04-2010 15:53:18:671 1453 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
java.sql.SQLException: Accès refusé pour l'utilisateur: 'root'@'@localhost' (mot de passe: OUI)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2748)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
14-04-2010 15:53:19:343 2125 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2109 ms
14 avr. 2010 15:53:20 org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/D:/Eclipse_youssef/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test_2010/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
14 avr. 2010 15:53:20 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml'
14 avr. 2010 15:53:20 org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
14 avr. 2010 15:53:21 org.apache.coyote.http11.Http11Protocol start
INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
14 avr. 2010 15:53:21 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
14 avr. 2010 15:53:21 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
14 avr. 2010 15:53:21 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9113 ms
j'ai poursuis les deux liens des cours avec des exemples mais sans solution:
https://www.developpez.com/telechargements/auth/id/2b9ed42d7e0a3d197d5a195bec79657b
http://ftp-developpez.com/...
dans l'attente de vos reponse et merci pour vous
A voir également:
- Spring et Acegi
- Spring publisher - Télécharger - Photo & Graphisme
- Spring - Télécharger - Stratégie