Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-3236

Adding some dynamic change in log4j.xml makes exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Inactive
    • Major
    • xCM 5.0 SP6, xCM 6.0.0
    • xCM 5.0 SP4
    • None
    • SP4 2145

    Description

      My Jahia server is running. I tried to add some new rules in my log4j.xml file

      <category name="org.jahia.operations.valves.SkeletonAggregatorValve">
      <priority value="warn"/>
      </category>

      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader findResourceInternal
      INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/javax.xml.parsers.DocumentBuilderFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused
      the illegal access, and has no functional impact.
      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader loadClass
      INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.xerces.jaxp.DocumentBuilderFactoryImpl. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the ille
      gal access, and has no functional impact.
      java.lang.IllegalStateException
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1248)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
      at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
      at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
      at javax.xml.parsers.FactoryFinder.find(Unknown Source)
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:772)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:682)
      at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1033)
      at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
      at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)
      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader findResourceInternal
      INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread w
      hich caused the illegal access, and has no functional impact.
      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader loadClass
      INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.xerces.parsers.XIncludeAwareParserConfiguration. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused
      the illegal access, and has no functional impact.
      java.lang.IllegalStateException
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1248)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
      at org.apache.xerces.parsers.ObjectFactory.findProviderClass(Unknown Source)
      at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:784)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:682)
      at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1033)
      at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
      at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)
      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader loadClass
      INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal
      access, and has no functional impact.
      java.lang.IllegalStateException
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1248)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
      at org.apache.xerces.impl.dv.ObjectFactory.findProviderClass(Unknown Source)
      at org.apache.xerces.impl.dv.ObjectFactory.newInstance(Unknown Source)
      at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
      at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.<init>(Unknown Source)
      at org.apache.xerces.parsers.XIncludeAwareParserConfiguration.<init>(Unknown Source)
      at org.apache.xerces.parsers.XIncludeAwareParserConfiguration.<init>(Unknown Source)
      at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:784)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:682)
      at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1033)
      at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
      at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)
      13 juin 2008 09:51:55 org.apache.catalina.loader.WebappClassLoader findResourceInternal
      INFO: Illegal access: this web application instance has been stopped already. Could not load org/apache/log4j/xml/log4j.dtd. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has
      no functional impact.
      log4j:WARN Could not find [log4j.dtd] using [WebappClassLoader
      delegate: false
      repositories:
      ] class loader, parsed without DTD.
      log4j:WARN Continuable parsing error 8 and column 69
      log4j:WARN Element type "log4j:configuration" must be declared.
      log4j:WARN Continuable parsing error 17 and column 72
      log4j:WARN Element type "appender" must be declared.
      log4j:WARN Continuable parsing error 18 and column 46
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 19 and column 47
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 20 and column 48
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 21 and column 56
      log4j:WARN Element type "layout" must be declared.
      log4j:WARN Continuable parsing error 22 and column 83
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 30 and column 71
      log4j:WARN Element type "appender" must be declared.
      log4j:WARN Continuable parsing error 31 and column 56
      log4j:WARN Element type "layout" must be declared.
      log4j:WARN Continuable parsing error 32 and column 74
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 40 and column 72
      log4j:WARN Element type "appender" must be declared.
      log4j:WARN Continuable parsing error 41 and column 56
      log4j:WARN Element type "layout" must be declared.
      log4j:WARN Continuable parsing error 43 and column 59
      log4j:WARN Element type "param" must be declared.
      log4j:WARN Continuable parsing error 47 and column 28
      log4j:WARN Element type "logger" must be declared.
      log4j:WARN Continuable parsing error 48 and column 34
      log4j:WARN Element type "appender-ref" must be declared.
      log4j:WARN Continuable parsing error 51 and column 27
      log4j:WARN Element type "logger" must be declared.
      log4j:WARN Continuable parsing error 52 and column 37
      log4j:WARN Element type "appender-ref" must be declared.
      log4j:WARN Continuable parsing error 56 and column 42
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 57 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 58 and column 39
      log4j:WARN Element type "appender-ref" must be declared.
      log4j:WARN Continuable parsing error 75 and column 58
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 76 and column 32
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 80 and column 41
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 86 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 106 and column 71
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 107 and column 32
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 114 and column 40
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 115 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 118 and column 41
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 119 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 122 and column 40
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 123 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 126 and column 42
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 127 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 130 and column 38
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 131 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 134 and column 36
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 135 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 138 and column 37
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 139 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 142 and column 45
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 143 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 146 and column 37
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 147 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 150 and column 36
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 151 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 154 and column 42
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 155 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 158 and column 48
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 159 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 162 and column 38
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 163 and column 34
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 166 and column 48
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 167 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 170 and column 33
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 171 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 174 and column 74
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 175 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 178 and column 55
      log4j:WARN Element type "category" must be declared.
      log4j:WARN Continuable parsing error 180 and column 33
      log4j:WARN Element type "priority" must be declared.
      log4j:WARN Continuable parsing error 183 and column 11
      log4j:WARN Element type "root" must be declared.
      log4j:WARN Continuable parsing error 184 and column 29
      log4j:WARN Element type "level" must be declared.
      log4j:WARN Continuable parsing error 185 and column 34
      log4j:WARN Element type "appender-ref" must be declared.
      log4j:WARN Continuable parsing error 186 and column 37
      log4j:WARN Element type "appender-ref" must be declared.
      log4j:ERROR Could not parse file [E:\jahia5.0.4_r21145\tomcat\webapps\jahia\WEB-INF\etc\config\log4j.xml].
      java.lang.NullPointerException
      at java.lang.String.indexOf(String.java:1734)
      at org.apache.log4j.helpers.OptionConverter.substVars(OptionConverter.java:385)
      at org.apache.log4j.xml.DOMConfigurator.subst(DOMConfigurator.java:951)
      at org.apache.log4j.xml.DOMConfigurator.subst(DOMConfigurator.java:936)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:847)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:682)
      at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1033)
      at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
      at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)
      2008-06-13 09:53:31,312: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/op/edit/home/links] user=[john] ip=[127.0.0.1] in [1609ms]

      TestRail: Results

        Attachments

          Activity

            People

              tdraier_old Thomas Draier (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 5.0 SP6
                      xCM 6.0.0