Announcement Announcement Module
Collapse
No announcement yet.
Apache Tomcat + Sonar Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Apache Tomcat + Sonar

    I'm trying to upgrade my sonar-sonar-2.9 to 3.1.5, but the following error occurs, was according to the site upgrade sonar

    http://docs.codehaus.org/display/SONAR/Upgrade+Guide

    Unzipped the sonar-3.1.5 in / opt / copied all the files from the sonar-2.9 (/ conf / / extensions for the new sonar-3.1.5) ran the build-war.sh within sonar.3.1.5 took the sonar.war unzipped files in / opt/apache-tomcat-6/webapps/sonar and generated the following errors:

    log catalina.out (tomcat)

    24/04/2013 17:46:43 org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.24.
    24/04/2013 17:46:43 org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    24/04/2013 17:46:44 org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    24/04/2013 17:46:44 org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    24/04/2013 17:46:44 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 508 ms
    24/04/2013 17:46:44 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    24/04/2013 17:46:44 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
    24/04/2013 17:46:44 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor manager.xml
    24/04/2013 17:46:44 org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor sonar.xml
    17:46:45,308 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
    17:46:45,308 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/apache-tomcat-6.0.36/temp/0-sonar/WEB-INF/classes/logback.xml]
    17:46:45,508 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationA ction - debug attribute not set
    17:46:45,508 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
    17:46:45,512 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_WAR]
    17:46:45,529 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [filter] on top of the object stack.
    17:46:45,533 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Assuming default type [ch.qos.logback.classic.boolex.JaninoEventEvaluator] for [evaluator] property
    17:46:45,535 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [evaluator] on top of the object stack.
    17:46:45,760 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [layout] on top of the object stack.
    17:46:45,778 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [SONAR_WAR] from the object stack
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.cache.ReadWriteCache] to true
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.ReadWriteCache level set to ERROR
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.cache.EhCacheProvider] to true
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.EhCacheProvider level set to ERROR
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.SQL] to true
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.SQL level set to ERROR
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.DBSTATISTICS] to true
    17:46:45,778 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.DBSTATISTICS level set to ERROR
    17:46:45,779 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.INFO] to true
    17:46:45,779 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.INFO level set to INFO
    17:46:45,779 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.plugins.core.i18n.I18nManager] to true
    17:46:45,779 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.plugins.core.i18n.I18nManager level set to INFO
    17:46:45,779 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - root level set to WARN
    17:46:45,779 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_WAR] to Logger[root]
    17:46:45,784 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationA ction - debug attribute not set
    17:46:45,784 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
    17:46:45,784 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_WAR]
    17:46:45,784 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [filter] on top of the object stack.
    17:46:45,784 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Assuming default type [ch.qos.logback.classic.boolex.JaninoEventEvaluator] for [evaluator] property
    17:46:45,784 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [evaluator] on top of the object stack.
    17:46:45,788 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [layout] on top of the object stack.
    17:46:45,788 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [SONAR_WAR] from the object stack
    17:46:45,788 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    17:46:45,790 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_FILE]
    17:46:45,794 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [rollingPolicy] on top of the object stack.
    17:46:45,796 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@4e1263db - Adding parent to RollingPolicy: SONAR_FILE
    [../../logs/sonar.log]
    17:46:45,805 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - Failed to create parent directories for [/opt/apache-tomcat-6.0.36/bin/../../logs/sonar.log]
    17:46:45,805 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - openFile(../../logs/sonar.log,true) call failed. java.io.FileNotFoundException: ../../logs/sonar.log (No such file or directory)
    at java.io.FileNotFoundException: ../../logs/sonar.log (No such file or directory)
    at at java.io.FileOutputStream.openAppend(Native Method)
    at at java.lang.reflect.Method.invoke(Method.java:597)
    at at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
    at at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)
    17:46:45,805 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [SONAR_FILE] from the object stack
    17:46:45,805 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    17:46:45,806 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [PROFILING_FILE]
    17:46:45,806 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [rollingPolicy] on top of the object stack.
    17:46:45,806 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@5d469658 - Adding parent to RollingPolicy: PROFILING_FILE
    17:46:45,806 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@5d469658 - No compression will be used
    17:46:45,806 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [triggeringPolicy] on top of the object stack.
    17:46:45,806 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [layout] on top of the object stack.
    17:46:45,806 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - Active log file name: ../../logs/profiling.log
    17:46:45,806 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - File property is set to [../../logs/profiling.log]
    17:46:45,806 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - Failed to create parent directories for [/opt/apache-tomcat-6.0.36/bin/../../logs/profiling.log]
    17:46:45,806 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - openFile(../../logs/profiling.log,true) call failed. java.io.FileNotFoundException: ../../logs/profiling.log (No such file or directory)
    at java.io.FileNotFoundException: ../../logs/profiling.log (No such file or directory)
    at at java.io.FileOutputStream.openAppend(Native Method)
    at at java.io.FileOutputStream.<init>(FileOutputStream.j ava:192)
    at at java.io.FileOutputStream.<init>(FileOutputStream.j ava:116)
    at at ch.qos.logback.core.FileAppender.openFile(FileAppe nder.java:197)
    at at ch.qos.logback.core.FileAppender.start(FileAppende r.java:152)
    at at ch.qos.logback.core.rolling.RollingFileAppender.st art(RollingFileAppender.java:69)
    at at ch.qos.logback.core.joran.action.AppenderAction.en d(AppenderAction.java:92)
    at at ch.qos.logback.core.joran.spi.Interpreter.callEndA ction(Interpreter.java:307)

  • #2
    INFO: Deploying configuration descriptor sonar.xml
    10:19:15,758 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
    10:19:15,759 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/apache-tomcat-6.0.36/temp/0-sonar/WEB-INF/classes/logback.xml]
    10:19:15,947 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationA ction - debug attribute not set
    10:19:15,947 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
    10:19:15,951 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_WAR]
    10:19:15,970 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [filter] on top of the object stack.
    10:19:15,975 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Assuming default type [ch.qos.logback.classic.boolex.JaninoEventEvaluator] for [evaluator] property
    10:19:15,977 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [evaluator] on top of the object stack.
    10:19:16,280 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [layout] on top of the object stack.
    10:19:16,295 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [SONAR_WAR] from the object stack
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.cache.ReadWriteCache] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.ReadWriteCache level set to ERROR
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.cache.EhCacheProvider] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.EhCacheProvider level set to ERROR
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.SQL] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.SQL level set to ERROR
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.DBSTATISTICS] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.DBSTATISTICS level set to ERROR
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.INFO] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.INFO level set to INFO
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.plugins.core.i18n.I18nManager] to true
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.plugins.core.i18n.I18nManager level set to INFO
    10:19:16,295 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - root level set to WARN
    10:19:16,295 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_WAR] to Logger[root]
    10:19:16,301 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationA ction - debug attribute not set
    10:19:16,301 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    10:19:16,303 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_FILE]
    10:19:16,309 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [rollingPolicy] on top of the object stack.
    10:19:16,312 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@2afb6c5f - Adding parent to RollingPolicy: SONAR_FILE
    10:19:16,314 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@2afb6c5f - No compression will be used
    10:19:16,315 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [triggeringPolicy] on top of the object stack.
    10:19:16,319 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@15:74 - no applicable action for [encoder], current pattern is [[configuration][appender][encoder]]
    10:19:16,319 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@16:16 - no applicable action for [pattern], current pattern is [[configuration][appender][encoder][pattern]]
    10:19:16,319 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - Active log file name: /opt/sonar-3.5/logs/sonar.log
    10:19:16,319 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - File property is set to [/opt/sonar-3.5/logs/sonar.log]
    10:19:16,320 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - No layout set for the appender named "SONAR_FILE".
    10:19:16,320 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [SONAR_FILE] from the object stack
    10:19:16,320 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
    10:19:16,320 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [PROFILING_FILE]
    10:19:16,320 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [rollingPolicy] on top of the object stack.
    10:19:16,320 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@6087e704 - Adding parent to RollingPolicy: PROFILING_FILE
    10:19:16,320 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPoli cy@6087e704 - No compression will be used
    10:19:16,320 |-INFO in ch.qos.logback.core.joran.action.NestedComplexProp ertyIA - Pushing component [triggeringPolicy] on top of the object stack.
    10:19:16,321 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@33:74 - no applicable action for [encoder], current pattern is [[configuration][appender][encoder]]
    10:19:16,321 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@34:16 - no applicable action for [pattern], current pattern is [[configuration][appender][encoder][pattern]]
    10:19:16,321 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - Active log file name: /opt/sonar-3.5/logs/profiling.log
    10:19:16,321 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - File property is set to [/opt/sonar-3.5/logs/profiling.log]
    10:19:16,321 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - No layout set for the appender named "PROFILING_FILE".
    10:19:16,321 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [PROFILING_FILE] from the object stack
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [rails] to false
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - rails level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_FILE] to Logger[rails]
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.cache.ReadWriteCache] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.ReadWriteCache level set to ERROR
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.hibernate.SQL] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.SQL level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.ibatis] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache.ibatis level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [java.sql] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - java.sql level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [java.sql.ResultSet] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - java.sql.ResultSet level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.sonar.MEASURE_FILTER] to true
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.MEASURE_FILTER level set to WARN
    10:19:16,321 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - root level set to INFO
    10:19:16,321 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_FILE] to Logger[root]

    25/04/2013 10:19:21 org.apache.catalina.core.StandardContext start
    GRAVE: Error listenerStart
    25/04/2013 10:19:21 org.apache.catalina.core.StandardContext start
    GRAVE: Context [/sonar] startup failed due to previous errors
    25/04/2013 10:19:21 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    GRAVE: The web application [/sonar] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

    Comment

    Working...
    X