Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-675

XMLUI doesn't start if the error level in the log4j.properties is set to DEBUG

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
      None
    • Environment:
      Mac OS, Tomcat, Java 1.6
    • Attachments:
      0
    • Comments:
      7
    • Documentation Status:
      Needed

      Description

      Setting the log level in the log4j.properties from INFO to DEBUG following error:

      2010-09-16 10:57:11,892 ERROR cocoon.handled - Sitemap: error when calling sub-sitemap
      at <map:mount> - jndi:/localhost/dspace-xmlui/aspects/aspects.xmap:119:72
      at <map:select type="parameter"> - jndi:/localhost/dspace-xmlui/aspects/aspects.xmap:109:34
      at <map:match type="AspectMatcher"> - jndi:/localhost/dspace-xmlui/aspects/aspects.xmap:108:36
      at <map:mount> - jndi:/localhost/dspace-xmlui/sitemap.xmap:430:108
      at <map:match> - jndi:/localhost/dspace-xmlui/sitemap.xmap:429:53

      etc.

      Setting of the log4j.properties:

      1. These lines sets the logging level for the cocoon log file.
      2. Set these to DEBUG to see extra detailed logging.
        log4j.logger.org.apache.cocoon=DEBUG, A3
        log4j.logger.cocoon=DEBUG, A3
        log4j.logger.org.springframework=DEBUG, A3
      3. Do not change these lines
        log4j.additivity.org.apache.cocoon=false
        log4j.additivity.cocoon=false
        log4j.additivity.org.springframework=false
      4. The name of the file appender
        log4j.appender.A3=org.dspace.app.util.DailyFileAppender
      5. The filename of the log file created. A date stamp is appended to this
        log4j.appender.A3.File=/myopt/dspace-hcc/log/cocoon.log
      6. Set this to yyyy-MM-DD for daily log files, or yyyy-MM for monthly files
        log4j.appender.A3.DatePattern=yyyy-MM-dd
      7. The number of log files to keep, or 0 to keep them all
        log4j.appender.A3.MaxLogs=0
      8. A2 uses PatternLayout.
        log4j.appender.A3.layout=org.apache.log4j.PatternLayout
        log4j.appender.A3.layout.ConversionPattern=%d %-5p %c %x - %m%n

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reservoirdog Franck Borel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: