roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphael Milani <ramil...@gmail.com>
Subject Re: Trouble with installing roller on tomcat 5 (centos 5)
Date Tue, 06 Dec 2011 11:17:34 GMT
Hello
pbb

Kook the error: java.io.FileNotFoundException: roller-startup.log
(Permission denied)
You donĀ“t have permission to RW on roller-startup.log where is the file?
which path? how did you configure log4j?




Raphael Milani



On Mon, Dec 5, 2011 at 11:28 PM, pbb <lists@clapeyron.com> wrote:

>
> I have been trying to install Roller 5 on Centos 6 with Tomcat 6 using java
> 1.6 and then java 1.7.  I get ad error with the roller-startup.log file:
>
> Dec 05, 2011 7:35:37 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive roller.war
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: roller-startup.log (Permission denied)
>        at java.io.FileOutputStream.open(Native Method)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
>        at java.io.FileOutputStream.<init>(FileOutputStream.java:136)
>        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:809)
>        at
>
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
>        at
>
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
>        at
>
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
>        at
>
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
>        at
>
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
>        at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
>        at org.apache.log4j.Logger.getLogger(Logger.java:104)
>        at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
>        at
> org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>        at
>
> org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
>        at
>
> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:858)
>        at
>
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
>        at
>
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
>        at
>
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
>        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
>        at
>
> org.apache.roller.weblogger.ui.core.RollerSession.<clinit>(RollerSession.java:53)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>        at java.lang.Class.newInstance0(Class.java:372)
>        at java.lang.Class.newInstance(Class.java:325)
>        at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3916)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>        at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>        at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
>        at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>        at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:601)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> log4j:ERROR Either File or DatePattern options are not set for appender
> [roller-startup].
> Roller Weblogger: Successfully loaded custom properties file from classpath
> Dec 05, 2011 7:35:41 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Dec 05, 2011 7:35:41 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/roller] startup failed due to previous errors
> Dec 05, 2011 7:35:41 PM org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type
> [org.springframework.core.NamedThreadLocal] (value [Prototype beans
> currently in creation]) and a value of type [null] (value [null]) but
> failed
> to remove it when the web application was stopped. To prevent a memory
> leak,
> the ThreadLocal has been forcibly removed.
>
>
> My roller-custom.properties has been in the root tomcat6 directory,
> tomcat6/conf, tomcat6/lib as well as the lib of the roller directory.  I
> have had them all chown tomcat:tomcat and chmod 777.  The file has had
> explicit path for the roller and roller-startup log files as well as not
> mentioning them as below:
>
> installation.type=auto
> database.configurationType=jdbc
> database.jdbc.driverClass=com.mysql.jdbc.Driver
> database.jdbc.connectionURL=jdbc:mysql://melt:3306/rollerdb?
>
> autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
> database.jdbc.username=roller
> database.jdbc.password=sillyStuff
> mail.configurationType=properties
> mail.hostname=melt
> mail.username=roller
> mail.password=sillyStuff
> newuser.categories=General
> weblog.export.enabled=true
> mediafiles.storage.dir=/opt/roller/rollerdata/mediafiles
> search.index.dir=/opt/roller/rollerdata/searchindex
>
> Any suggestion to make it work?
>
> Thank you
>
>
> David Johnson-30 wrote:
> >
> > Yes, and in fact, I think at least Tomcat 6 is a requirement for Roller
> 5.
> >
> > Also, to install Roller 5 you should following the instructions in the
> > Roller 5 Installation Guide.
> >
> > - Dave
> >
> >
> >
> >
> >
> >
> >
> > --
> > Dave M. Johnson
> > Apache Roller PMC Chair
> > http://rollerweblogger.org/roller
> >
> > GVoice: 919-404-9668
> > Skype: dave-johnson
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Trouble-with-installing-roller-on-tomcat-5-%28centos-5%29-tp32208997s12275p32921625.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message