IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Spring Web Java Discussion :

FacesContext not found


Sujet :

Spring Web Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Février 2011
    Messages
    20
    Détails du profil
    Informations forums :
    Inscription : Février 2011
    Messages : 20
    Par défaut FacesContext not found
    Bonjour,

    Je développe une application web spring MVC sur un tomcat 6 avec hibernate comme ORM.
    Le soucis est que je n'arrive pas à binder les attributs de mes entités.
    Quand je lance mon appli sans élément de "binder" dans ma jsp default.jsp, tout fonctionne à merveille. Mais dès que je bind le nom des machines de mon managed bean "machine" en mettant le code suivant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    	<h2>
    		<h:dataTable border="0" rules="all"
    			value="#{machine.getMachineList()}" var="m">
    			<h:column>
    				<f:facet name="header">
    					<h:outputText>value="machine"</h:outputText>
    				</f:facet>
    				<h:outputText>value="#{m.name}" </h:outputText>
    			</h:column>
    		</h:dataTable>
    	</h2>
    j'obtient l'erreur suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
     
    1 avr. 2011 13:24:28 org.apache.catalina.core.StandardWrapperValve invoke
    GRAVE: "Servlet.service()" pour la servlet jsp a généré une exception
    java.lang.RuntimeException: FacesContext not found
    	at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
    	at javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
    	at javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
    	at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
    	at org.apache.jsp.default_jsp._jspx_meth_h_005fdataTable_005f0(default_jsp.java:112)
    	at org.apache.jsp.default_jsp._jspService(default_jsp.java:77)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Unknown Source)
    Pourtant, quand je lance l'appli, tout les fichiers de config d'hibernate et de spring sont bien loader :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
     
    1 avr. 2011 13:27:16 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:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/AOSI-EclipseD2I-v1.6.0/jdk1.6.0_17/bin/../jre/bin/client;C:/AOSI-EclipseD2I-v1.6.0/jdk1.6.0_17/bin/../jre/bin;C:/AOSI-EclipseD2I-v1.6.0/jdk1.6.0_17/bin/../jre/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%M3_HOME%\bin;W:\stages\2011_stage_TAR\12_LIVRABLES\12_05_SUBVERSION\bin;C:\apache-maven-2.2.1\bin;C:\Program Files\TortoiseSVN\bin
    1 avr. 2011 13:27:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
    ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:gestionlicencenbu' did not find a matching property.
    1 avr. 2011 13:27:17 org.apache.coyote.http11.Http11Protocol init
    INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
    1 avr. 2011 13:27:17 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 470 ms
    1 avr. 2011 13:27:17 org.apache.catalina.core.StandardService start
    INFO: Démarrage du service Catalina
    1 avr. 2011 13:27:17 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
    1 avr. 2011 13:27:17 org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
    1 avr. 2011 13:27:17 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    1 avr. 2011 13:27:17 org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    1 avr. 2011 13:27:17 org.springframework.context.support.AbstractApplicationContext prepareRefresh
    INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@125844f: display name [Root WebApplicationContext]; startup date [Fri Apr 01 13:27:17 CEST 2011]; root of context hierarchy
    1 avr. 2011 13:27:17 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
    1 avr. 2011 13:27:17 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/ressources/DataSource.xml]
    1 avr. 2011 13:27:17 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/ressources/HibernateSessionFactory.xml]
    1 avr. 2011 13:27:17 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/ressources/MachineBean.xml]
    1 avr. 2011 13:27:17 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@125844f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@19eda2c
    1 avr. 2011 13:27:17 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
    INFO: Loading properties file from ServletContext resource [/WEB-INF/ressources/db.properties]
    1 avr. 2011 13:27:17 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19eda2c: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory,machineBo,machineDao]; root of factory hierarchy
    1 avr. 2011 13:27:17 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
    INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
    1 avr. 2011 13:27:17 org.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 3.2.7
    1 avr. 2011 13:27:17 org.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    1 avr. 2011 13:27:17 org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: Bytecode provider name : cglib
    1 avr. 2011 13:27:17 org.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Machine -> machine
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Machine.expressionbesoins -> association_5
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Machine.demandelicences -> association_4
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Machine.projets -> association_9
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Machine.sauvegardes -> association_6
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Machine.licences -> association_2
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Demandelicence -> demandelicence
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Demandelicence.machines -> association_4
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Demandelicence.expressionbesoins -> association_3
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Environnement -> environnement
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Environnement.sites -> association_11
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Environnement.projets -> association_10
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Expressionbesoin -> expressionbesoin
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Expressionbesoin.machines -> association_5
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Expressionbesoin.projets -> association_8
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Expressionbesoin.sauvegardes -> association_7
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Expressionbesoin.demandelicences -> association_3
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Licence -> licence
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Licence.machines -> association_2
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Master -> master
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Media -> media
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Projet -> projet
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Projet.machines -> association_9
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Projet.expressionbesoins -> association_8
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Projet.environnements -> association_10
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Sauvegarde -> sauvegarde
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Sauvegarde.machines -> association_6
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Sauvegarde.expressionbesoins -> association_7
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Site -> site
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollection
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Site.environnements -> association_11
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.atosorigin.gestionlicencenbu.entities.Typelicence -> typelicence
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Licence.typelicences -> typelicence
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Master.sites -> site
    1 avr. 2011 13:27:18 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
    INFO: Mapping collection: com.atosorigin.gestionlicencenbu.entities.Media.sites -> site
    1 avr. 2011 13:27:18 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
    INFO: Building new Hibernate SessionFactory
    1 avr. 2011 13:27:18 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
    INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: RDBMS: MySQL, version: 5.1.54-community
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} )
    1 avr. 2011 13:27:18 org.hibernate.dialect.Dialect <init>
    INFO: Using dialect: org.hibernate.dialect.MySQLDialect
    1 avr. 2011 13:27:18 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
    INFO: Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
    1 avr. 2011 13:27:18 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic flush during beforeCompletion(): disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic session close at end of transaction: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch size: 15
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch updates for versioned data: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Scrollable result sets: enabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC3 getGeneratedKeys(): enabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Connection release mode: auto
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Maximum outer join fetch depth: 2
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default batch fetch size: 1
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Generate SQL with comments: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL updates by primary key: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL inserts for batching: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
    INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    1 avr. 2011 13:27:18 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
    INFO: Using ASTQueryTranslatorFactory
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JPA-QL strict compliance: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Second-level cache: enabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query cache: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory createCacheProvider
    INFO: Cache provider: org.hibernate.cache.NoCacheProvider
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Structured second-level cache entries: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Echoing all SQL to stdout
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Statistics: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Deleted entity synthetic identifier rollback: disabled
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default entity-mode: pojo
    1 avr. 2011 13:27:18 org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Named query checking : enabled
    1 avr. 2011 13:27:18 org.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory
    1 avr. 2011 13:27:18 org.hibernate.impl.SessionFactoryObjectFactory addInstance
    INFO: Not binding factory to JNDI, no JNDI name configured
    1 avr. 2011 13:27:18 org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization completed in 1280 ms
    1 avr. 2011 13:27:18 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
    1 avr. 2011 13:27:18 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
    1 avr. 2011 13:27:18 org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter
    INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
    1 avr. 2011 13:27:18 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
    1 avr. 2011 13:27:18 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
    INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
    INFO: Reading standard config META-INF/standard-faces-config.xml
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
    INFO: Reading config jar:file:/C:/Documents%20and%20Settings/tar/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/gestionlicencenbu/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
    INFO: Reading config /WEB-INF/faces-config.xml
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.2 from path : file:/C:/Documents%20and%20Settings/tar/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/gestionlicencenbu/WEB-INF/lib/myfaces-api-1.2.2.jar
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.2 from path : file:/C:/Documents%20and%20Settings/tar/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/gestionlicencenbu/WEB-INF/lib/myfaces-impl-1.2.2.jar
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: MyFaces-package : tomahawk-sandbox not found.
    1 avr. 2011 13:27:18 org.apache.myfaces.config.FacesConfigurator logMetaInf
    INFO: Starting up MyFaces-package : tomahawk in version : 1.1.6 from path : file:/C:/Documents%20and%20Settings/tar/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/gestionlicencenbu/WEB-INF/lib/tomahawk-1.1.6.jar
    1 avr. 2011 13:27:19 org.apache.myfaces.shared_impl.util.LocaleUtils toLocale
    ATTENTION: Locale name in faces-config.xml null or empty, setting locale to default locale : fr_FR
    1 avr. 2011 13:27:19 org.apache.myfaces.config.FacesConfigurator handleSerialFactory
    INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
    1 avr. 2011 13:27:19 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
    INFO: ServletContext 'C:\Documents and Settings\tar\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\gestionlicencenbu\' initialized.
    1 avr. 2011 13:27:19 org.apache.coyote.http11.Http11Protocol start
    INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
    1 avr. 2011 13:27:19 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    1 avr. 2011 13:27:19 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16  config=null
    1 avr. 2011 13:27:19 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2105 ms
    1 avr. 2011 13:27:21 org.apache.catalina.core.StandardWrapperValve invoke
    GRAVE: "Servlet.service()" pour la servlet jsp a généré une exception
    java.lang.RuntimeException: FacesContext not found
    	at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
    	at javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1219)
    	at javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1204)
    	at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
    	at org.apache.jsp.default_jsp._jspx_meth_h_005fdataTable_005f0(default_jsp.java:112)
    	at org.apache.jsp.default_jsp._jspService(default_jsp.java:77)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Unknown Source)
    Je suis débutant en spring donc je ne m'y connait pas trop.

  2. #2
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Est-ce que tu as configurer le filtre JSF dans ton web.xml ?
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  3. #3
    Membre averti
    Inscrit en
    Février 2011
    Messages
    20
    Détails du profil
    Informations forums :
    Inscription : Février 2011
    Messages : 20
    Par défaut
    Voici mon web.xml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
     
    <?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">
     
    	<!-- Page d'accueil -->
    	<welcome-file-list>
    		<welcome-file>faces/pages/index.jsp</welcome-file>
    	</welcome-file-list>
     
    	<!-- JSF entries -->
    	<context-param>
    		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    		<param-value>.jsp</param-value>
    	</context-param>
    	<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>/faces/*</url-pattern>
    	</servlet-mapping>
     
    	<!-- Richfaces entries -->
    	<context-param>
    		<param-name>org.richfaces.SKIN</param-name>
    		<param-value>classic</param-value>
    	</context-param>
    	<!-- context-param>
    		<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
    		<param-value>com.sun.facelets.FaceletViewHandler</param-value>
    	</context-param -->
    	<filter>
    		<display-name>RichFaces Filter</display-name>
    		<filter-name>richfaces</filter-name>
    		<filter-class>org.ajax4jsf.Filter</filter-class>
    	</filter>
    	<filter-mapping>
    		<filter-name>richfaces</filter-name>
    		<servlet-name>Faces Servlet</servlet-name>
    		<dispatcher>REQUEST</dispatcher>
    		<dispatcher>FORWARD</dispatcher>
    		<dispatcher>INCLUDE</dispatcher>
    	</filter-mapping>
     
    	<!-- Spring entries -->
    	<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>
    	<listener>
    		<listener-class>
    			org.springframework.web.context.request.RequestContextListener</listener-class>
    	</listener>
     
    	<login-config>
    		<auth-method>BASIC</auth-method>
    	</login-config>
    	<servlet>
    		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<init-param>
    			<param-name>contextConfigLocation</param-name>
    			<param-value>/WEB-INF/spring-servlet.xml</param-value>
    		</init-param>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    		<url-pattern>/spring/*</url-pattern>
    	</servlet-mapping>
    	<servlet>
    		<servlet-name>Resource Servlet</servlet-name>
    		<servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
    		<load-on-startup>0</load-on-startup>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>Resource Servlet</servlet-name>
    		<url-pattern>/resources/*</url-pattern>
    	</servlet-mapping>
     
    	<!-- Spring Security -->
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>/WEB-INF/security-applicationContext.xml</param-value>
    	</context-param>
     
    	<filter>
    		<filter-name>springSecurityFilterChain</filter-name>
    		<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    	</filter>
    	<filter-mapping>
    		<filter-name>springSecurityFilterChain</filter-name>
    		<url-pattern>/*</url-pattern>
    	</filter-mapping>
     
     
    	<!-- listener> <listener-class> org.springframework.web.util.IntrospectorCleanupListener</listener-class> 
    		</listener -->
     
    </web-app>

Discussions similaires

  1. [jsp] property not found??
    Par champion dans le forum Servlets/JSP
    Réponses: 2
    Dernier message: 03/01/2005, 17h56
  2. requested URL /forms90/f90servlet was not found
    Par Aeternus dans le forum Oracle
    Réponses: 11
    Dernier message: 03/02/2004, 16h45
  3. Attribute .... not found !?
    Par YanK dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 08/10/2003, 10h27
  4. TXMLModule.create - name = resource not found
    Par pram dans le forum XMLRAD
    Réponses: 2
    Dernier message: 04/03/2003, 10h54
  5. Component not found
    Par Pm dans le forum XMLRAD
    Réponses: 2
    Dernier message: 28/01/2003, 14h40

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo