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

Struts 2 Java Discussion :

SEVERE : Exception starting filter struts2 java.lang.NoSuchFieldError: VERSION_2_3_0


Sujet :

Struts 2 Java

  1. #1
    Membre actif
    Inscrit en
    Décembre 2003
    Messages
    491
    Détails du profil
    Informations forums :
    Inscription : Décembre 2003
    Messages : 491
    Points : 245
    Points
    245
    Par défaut SEVERE : Exception starting filter struts2 java.lang.NoSuchFieldError: VERSION_2_3_0
    Bonjour,



    encore moi, j'ai maintenant un problème au démarrage de mon programme avec la stacktrace suivante :

    Aug 18, 2016 4:55:33 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CSM-CheckSkriptMonitor' did not find a matching property.
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Server version: Apache Tomcat/8.0.36
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Server built: Jun 9 2016 13:55:50 UTC
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Server number: 8.0.36.0
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: OS Name: Windows 7
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: OS Version: 6.1
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Architecture: amd64
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Java Home: C:\Program Files\Java\jre1.8.0_91
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: JVM Version: 1.8.0_91-b14
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: JVM Vendor: Oracle Corporation
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: CATALINA_BASE: C:\workspace_csm_00\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: CATALINA_HOME: C:\tomcat\apache-tomcat-8.0.36
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Command line argument: -Dcatalina.base=C:\workspace_csm_00\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Command line argument: -Dcatalina.home=C:\tomcat\apache-tomcat-8.0.36
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Command line argument: -Dwtp.deploy=C:\workspace_csm_00\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Command line argument: -Djava.endorsed.dirs=C:\tomcat\apache-tomcat-8.0.36\endorsed
    Aug 18, 2016 4:55:33 PM org.apache.catalina.startup.VersionLoggerListener log
    INFORMATION: Command line argument: -Dfile.encoding=Cp1252
    Aug 18, 2016 4:55:33 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFORMATION: Loaded APR based Apache Tomcat Native library 1.1.34 using APR version 1.5.1.
    Aug 18, 2016 4:55:33 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFORMATION: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    Aug 18, 2016 4:55:34 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
    INFORMATION: OpenSSL successfully initialized (OpenSSL 1.0.1q 3 Dec 2015)
    Aug 18, 2016 4:55:34 PM org.apache.coyote.AbstractProtocol init
    INFORMATION: Initializing ProtocolHandler ["http-apr-8080"]
    Aug 18, 2016 4:55:34 PM org.apache.coyote.AbstractProtocol init
    INFORMATION: Initializing ProtocolHandler ["ajp-apr-8009"]
    Aug 18, 2016 4:55:34 PM org.apache.catalina.startup.Catalina load
    INFORMATION: Initialization processed in 1107 ms
    Aug 18, 2016 4:55:34 PM org.apache.catalina.core.StandardService startInternal
    INFORMATION: Starting service Catalina
    Aug 18, 2016 4:55:34 PM org.apache.catalina.core.StandardEngine startInternal
    INFORMATION: Starting Servlet Engine: Apache Tomcat/8.0.36
    Aug 18, 2016 4:55:37 PM org.apache.jasper.servlet.TldScanner scanJars
    INFORMATION: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    Aug 18, 2016 4:55:37 PM org.apache.catalina.core.StandardContext filterStart
    SCHWERWIEGEND: Exception starting filter struts2
    java.lang.NoSuchFieldError: VERSION_2_3_0
    at org.apache.struts2.views.freemarker.FreemarkerManager.createConfiguration(FreemarkerManager.java:331)
    at org.apache.struts2.views.freemarker.FreemarkerManager.init(FreemarkerManager.java:282)
    at org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:269)
    at org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init(DefaultDispatcherErrorHandler.java:47)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:488)
    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4689)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5329)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Aug 18, 2016 4:55:37 PM org.apache.catalina.core.StandardContext startInternal
    SCHWERWIEGEND: One or more Filters failed to start. Full details will be found in the appropriate container log file
    Aug 18, 2016 4:55:37 PM org.apache.catalina.core.StandardContext startInternal
    SCHWERWIEGEND: Context [/CSM-CheckSkriptMonitor] startup failed due to previous errors
    Aug 18, 2016 4:55:37 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SCHWERWIEGEND: The web application [CSM-CheckSkriptMonitor] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6be49b61]) and a value of type [com.opensymphony.xwork2.inject.ContainerImpl] (value [com.opensymphony.xwork2.inject.ContainerImpl@13ab7533]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    Aug 18, 2016 4:55:37 PM org.apache.coyote.AbstractProtocol start
    INFORMATION: Starting ProtocolHandler ["http-apr-8080"]
    Aug 18, 2016 4:55:37 PM org.apache.coyote.AbstractProtocol start
    INFORMATION: Starting ProtocolHandler ["ajp-apr-8009"]
    Aug 18, 2016 4:55:37 PM org.apache.catalina.startup.Catalina start
    INFORMATION: Server startup in 3291 ms
    Ceci est mon fichier 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
     
    <?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">
      <display-name>CSM</display-name>
      <filter>
        <filter-name>struts2</filter-name>
        <filter-class>
    			org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
    		</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
      </filter-mapping>
      <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>
      <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/errorHTTP.jsp</location>
      </error-page>
      <error-page>
        <error-code>404</error-code>
        <location>/errorHTTP.jsp</location>
      </error-page>
      <error-page>
        <error-code>500</error-code>
        <location>/errorHTTP.jsp</location>
      </error-page>
      <session-config>
        <session-timeout>1440</session-timeout>
      </session-config>
    </web-app>
    D'après ce que je trouve sur le net il me semble que la manière de faire est encore asser à jour.
    Je ne vois pas de référence a une version autre que celle de ce fichier, mais je ne vois pas vraiment le rapport.

    Et aussi est-ce que ce WARNING devrait etre traité :
    WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CSM-CheckSkriptMonitor' did not find a matching property.

    Quesque je devrai faire avec ca ?

    Merci pour vos réponses

  2. #2
    Membre actif
    Inscrit en
    Décembre 2003
    Messages
    491
    Détails du profil
    Informations forums :
    Inscription : Décembre 2003
    Messages : 491
    Points : 245
    Points
    245
    Par défaut
    Bon voila cette question n'est plus d'actualité et s'est résolue d'elle même.

    J'ai quand même rien compris

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 6
    Dernier message: 25/01/2010, 01h58
  2. Réponses: 0
    Dernier message: 08/04/2008, 19h57
  3. Exception in thread "main" java.lang.StackOverflowError
    Par une_tite_question dans le forum AWT/Swing
    Réponses: 14
    Dernier message: 25/02/2008, 10h49
  4. Exception in thread "main" java.lang.NullPointerException
    Par yrlac dans le forum Concurrence et multi-thread
    Réponses: 6
    Dernier message: 24/05/2007, 17h19
  5. Exception in thread "main" java.lang.ArrayIndexOut
    Par Poseidon62 dans le forum Concurrence et multi-thread
    Réponses: 6
    Dernier message: 04/11/2005, 01h38

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