roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ROL-2016) roller-startup.log not created on startup
Date Sun, 22 Jun 2014 05:56:24 GMT

    [ https://issues.apache.org/jira/browse/ROL-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040039#comment-14040039
] 

Glen Mazza commented on ROL-2016:
---------------------------------

I switched to roller-startup to a Console logger by default (while giving comments in the
file of how to switch to an actual log file if desired) -- in most cases it will get written
to the Tomcat catalina.out file, which is where people look anyway for very early startup
errors before Roller initializes.  Also, this avoids the ugly (IMO) and nearly-always-empty
roller-startup.log that pops up whenever you start Roller.

Absent such a change, the build/test process was returning this error if $catalina.base is
not defined on the user's machine (and hence null):

[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-dbscripts-resources) @ roller-webapp
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 15 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (gen-db-scripts) @ roller-webapp ---
[INFO] Executing tasks

main:
/work/opensource/roller/app/src/main/resources/sql
    [texen] Using contextProperties file: /work/opensource/roller/app/src/main/resources/sql/dbscripts.properties
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /logs/roller-startup.log (No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
...

> roller-startup.log not created on startup
> -----------------------------------------
>
>                 Key: ROL-2016
>                 URL: https://issues.apache.org/jira/browse/ROL-2016
>             Project: Apache Roller
>          Issue Type: Bug
>          Components: Installation & Configuration
>    Affects Versions: 5.0.3
>         Environment: Tomcat
>            Reporter: Greg Huber
>            Assignee: Greg Huber
>            Priority: Minor
>             Fix For: 5.1
>
>
> When starting in tomcat I get a permission denied on the roller-startup.log.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message