Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.1, 1.0.2, 2.0-RC1
-
Component/s: Configuration
-
Labels:None
Description
Running grails 1.0.1 and Tomcat 6.0 war deployed. Tomcat is not running as root but as another user. This user has the appropriate permissions for the entire tomcat directory and temp areas.
Upon startup this error occurs. When running tomcat as root the error does not occur.
The location of the stacktrace.log should be configurable during the grails war process, or written somewhere relative from where the WAR is deployed.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: stacktrace.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:568)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:442)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
at org.apache.log4j.Logger.getLogger(Logger.java:105)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283)
at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1040)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:838)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl
Issue Links
- relates to
-
GRAILS-1635
Add stacktrace.log settings to default Config template
-
-
GRAILS-4376
log4j-configuration: 2 instances of stacktrace.log created
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.0.3 [ 14124 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Workflow | jira [ 30638 ] | Grails [ 43564 ] |
| Workflow | Grails [ 43564 ] | Copy of Grails [ 51018 ] |
| Workflow | Copy of Grails [ 51018 ] | Grails [ 58428 ] |
| Workflow | Grails [ 58428 ] | Grails2 [ 66006 ] |
| Resolution | Won't Fix [ 2 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Fix Version/s | 1.0.3 [ 11004 ] | |
| Affects Version/s | 2.0-RC1 [ 12803 ] |
| Link |
This issue relates to |
| Link |
This issue relates to |
| Workflow | Grails2 [ 66006 ] | jira [ 71371 ] |
| Workflow | jira [ 71371 ] | Grails2 [ 79716 ] |
| Last Reviewed | 01/Jan/10 |
| Workflow | Grails2 [ 79716 ] | jira [ 87796 ] |
| Workflow | jira [ 87796 ] | Grails2 [ 96027 ] |
| Fix Version/s | 2.2.1 [ 13323 ] | |
| Fix Version/s | 2.3 [ 13311 ] | |
| Priority | Major [ 3 ] | Blocker [ 1 ] |
| Status | Reopened [ 4 ] | In Progress [ 3 ] |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.1.x | 40d22c5... | 2013-02-06 06:09:51 -0800 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
grails-plugin-log4j/src/main/groovy/org/codehaus/groovy/grails/plugins/log4j/Log4jConfig.groovy
MODIFY grails-test-suite-uber/src/test/groovy/org/codehaus/groovy/grails/plugins/logging/Log4jDslTests.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.2.x | 40d22c5... | 2013-02-06 06:09:51 -0800 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
grails-plugin-log4j/src/main/groovy/org/codehaus/groovy/grails/plugins/log4j/Log4jConfig.groovy
MODIFY grails-test-suite-uber/src/test/groovy/org/codehaus/groovy/grails/plugins/logging/Log4jDslTests.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | master | 40d22c5... | 2013-02-06 06:09:51 -0800 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
grails-plugin-log4j/src/main/groovy/org/codehaus/groovy/grails/plugins/log4j/Log4jConfig.groovy
MODIFY grails-test-suite-uber/src/test/groovy/org/codehaus/groovy/grails/plugins/logging/Log4jDslTests.groovy |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Fix Version/s | 2.1.4 [ 13420 ] | |
| Resolution | Fixed [ 1 ] |
Surely this is deployment specific issue? If you need to configure a different location for the file just do so