Trouble with installing roller on tomcat 5 (centos 5)

View: New views
6 Messages — Rating Filter:   Alert me  

Trouble with installing roller on tomcat 5 (centos 5)

by scratch-6 :: Rate this Message:

| View Threaded | Show Only this Message

Od: scratch <scratch@...>
Do: user@...
Temat: How install roller  on centos 5 with  tomcat 5 ?
Data: Sat, 06 Aug 2011 18:36:25 +0200


Hi,
I try  install  roller 5 on my  Centos 5,  using  installed from repo
tomcat 5.
I try  install  roller with  manual  from project  homepage and  from
this blog
( http://www.davidghedini.com/pg/entry/install_apache_roller_4_with)
But i  still  have error :
Roller Weblogger has not been bootstrapped yet


my  dir structure on  Centos is:
ls /usr/share/tomcat5/
bin/     common/  conf/    logs/    server/  shared/  temp/    webapps/
work/


I  put war file on webapps , and create  conf/roller-custom.properties

installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
database.jdbc.username=admin_db
database.jdbc.password=wwww@wx!212p
mail.configurationType=properties
mail.hostname=mail.com
mail.username=user
mail.password=password

next, I put  this file to /usr/share/tomcat5/conf/   and other place
for test (dirs: lib, server/lib ..)  but this never work :/

In log file (catalina.out) I can see this :

------8<--------------------------------------------------
WARN  2011-08-06 20:06:02,836 WebloggerRuntimeConfig:getProperty -
Trouble accessing property: site.frontpage.weblog.handle
java.lang.IllegalStateException: Roller Weblogger has not been
bootstrapped yet
        at
org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
------8<--------------------------------------------------

My question is,  how configure tomcat 5 for roller blog?

TIA



Re: Trouble with installing roller on tomcat 5 (centos 5)

by David Ghedini :: Rate this Message:

| View Threaded | Show Only this Message

The post is for tomcat 6 (and 7).

I don't install from the CentOS repo as it is 2 releases old (5).

Did you give 6 or 7 a try?

Sorry, I know this does not answer your question directly but I think you
will have a better experience using a recent Tomcat release.

David Ghedini

2011/8/6 <scratch@...>

> Od:     scratch <scratch@...>
> Do:     user@...
> Temat:  How install roller  on centos 5 with  tomcat 5 ?
> Data:   Sat, 06 Aug 2011 18:36:25 +0200
>
>
> Hi,
> I try  install  roller 5 on my  Centos 5,  using  installed from repo
> tomcat 5.
> I try  install  roller with  manual  from project  homepage and  from
> this blog
> ( http://www.davidghedini.com/pg/entry/install_apache_roller_4_with)
> But i  still  have error :
> Roller Weblogger has not been bootstrapped yet
>
>
> my  dir structure on  Centos is:
> ls /usr/share/tomcat5/
> bin/     common/  conf/    logs/    server/  shared/  temp/    webapps/
> work/
>
>
> I  put war file on webapps , and create  conf/roller-custom.properties
>
> installation.type=auto
> database.configurationType=jdbc
> database.jdbc.driverClass=com.mysql.jdbc.Driver
>
> database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
> database.jdbc.username=admin_db
> database.jdbc.password=wwww@wx!212p
> mail.configurationType=properties
> mail.hostname=mail.com
> mail.username=user
> mail.password=password
>
> next, I put  this file to /usr/share/tomcat5/conf/   and other place
> for test (dirs: lib, server/lib ..)  but this never work :/
>
> In log file (catalina.out) I can see this :
>
> ------8<--------------------------------------------------
> WARN  2011-08-06 20:06:02,836 WebloggerRuntimeConfig:getProperty -
> Trouble accessing property: site.frontpage.weblog.handle
> java.lang.IllegalStateException: Roller Weblogger has not been
> bootstrapped yet
>        at
>
> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
> ------8<--------------------------------------------------
>
> My question is,  how configure tomcat 5 for roller blog?
>
> TIA
>
>
>


--
Kind regards,

David Ghedini

Re: Trouble with installing roller on tomcat 5 (centos 5)

by Dave-481 :: Rate this Message:

| View Threaded | Show Only this Message

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



On Sun, Aug 7, 2011 at 11:23 AM, David Ghedini <david@...> wrote:

> The post is for tomcat 6 (and 7).
>
> I don't install from the CentOS repo as it is 2 releases old (5).
>
> Did you give 6 or 7 a try?
>
> Sorry, I know this does not answer your question directly but I think you
> will have a better experience using a recent Tomcat release.
>
> David Ghedini
>
> 2011/8/6 <scratch@...>
>
>> Od:     scratch <scratch@...>
>> Do:     user@...
>> Temat:  How install roller  on centos 5 with  tomcat 5 ?
>> Data:   Sat, 06 Aug 2011 18:36:25 +0200
>>
>>
>> Hi,
>> I try  install  roller 5 on my  Centos 5,  using  installed from repo
>> tomcat 5.
>> I try  install  roller with  manual  from project  homepage and  from
>> this blog
>> ( http://www.davidghedini.com/pg/entry/install_apache_roller_4_with)
>> But i  still  have error :
>> Roller Weblogger has not been bootstrapped yet
>>
>>
>> my  dir structure on  Centos is:
>> ls /usr/share/tomcat5/
>> bin/     common/  conf/    logs/    server/  shared/  temp/    webapps/
>> work/
>>
>>
>> I  put war file on webapps , and create  conf/roller-custom.properties
>>
>> installation.type=auto
>> database.configurationType=jdbc
>> database.jdbc.driverClass=com.mysql.jdbc.Driver
>>
>> database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
>> database.jdbc.username=admin_db
>> database.jdbc.password=wwww@wx!212p
>> mail.configurationType=properties
>> mail.hostname=mail.com
>> mail.username=user
>> mail.password=password
>>
>> next, I put  this file to /usr/share/tomcat5/conf/   and other place
>> for test (dirs: lib, server/lib ..)  but this never work :/
>>
>> In log file (catalina.out) I can see this :
>>
>> ------8<--------------------------------------------------
>> WARN  2011-08-06 20:06:02,836 WebloggerRuntimeConfig:getProperty -
>> Trouble accessing property: site.frontpage.weblog.handle
>> java.lang.IllegalStateException: Roller Weblogger has not been
>> bootstrapped yet
>>        at
>>
>> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>> ------8<--------------------------------------------------
>>
>> My question is,  how configure tomcat 5 for roller blog?
>>
>> TIA
>>
>>
>>
>
>
> --
> Kind regards,
>
> David Ghedini
>



--
Dave M. Johnson
Apache Roller PMC Chair
http://rollerweblogger.org/roller

GVoice: 919-404-9668
Skype: dave-johnson

Re: Trouble with installing roller on tomcat 5 (centos 5)

by pbb :: Rate this Message:

| View Threaded | Show Only this Message

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

Re: Trouble with installing roller on tomcat 5 (centos 5)

by ramilani12 :: Rate this Message:

| View Threaded | Show Only this Message

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@...> 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.
>
>

Re: Trouble with installing roller on tomcat 5 (centos 5)

by pbb :: Rate this Message:

| View Threaded | Show Only this Message

In the case below I left it out to see if the system would create.  I have also tried:

log4j.appender.roller-startup.File=/opt/roller/roller-startup.log
log4j.appender.roller.File=/opt/roller/roller.log

in the roller-custom.properties and then I tried this in the tomcat6 log4j.properties.  In both cases I first had the system try to create the files and then I created them with chmod 777 and chown tomcat:tomcat.  Still the file permission error.

Thank you.

ramilani12 wrote:
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.
>
>