roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omar Martin Velasco <binary1...@hotmail.com>
Subject Problem installing Roller 4.0-rc10 with Resin 3.0.23
Date Mon, 03 Dec 2007 16:05:32 GMT

Hi!

We are trying to setup Roller 4.0-rc10 with Resin 3.0.23 and MySql 5.0 on Linux. We have executed
the steps in the Installation Guide, and we have reached the step where the server is supposed
to show us a page where we can create users and weblogs (the step after creating the db tables).
Instead of this page we get an error 500 page, and in the roller.log:

WARN  2007-12-03 15:41:14,740 WebloggerRuntimeConfig:getProperty - Trouble accessing property:
site.frontpage.weblog.handle
java.lang.NullPointerException
        at org.apache.roller.weblogger.config.WebloggerRuntimeConfig.getProperty(WebloggerRuntimeConfig.java:66)
        at _jsp._index__jsp._jspService(_index__jsp.java:29)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
        at com.caucho.jsp.Page.pageservice(Page.java:570)
        at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
        at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.rendering.filters.RequestMappingFilter.doFilter(RequestMappingFilter.java:140)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.core.filters.InitFilter.doFilter(InitFilter.java:71)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.core.filters.PersistenceSessionFilter.doFilter(PersistenceSessionFilter.java:60)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.core.filters.BootstrapFilter.doFilter(BootstrapFilter.java:65)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.securechannel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:138)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
        at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
        at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.core.filters.SchemeEnforcementFilter.doFilter(SchemeEnforcementFilter.java:121)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at org.apache.roller.weblogger.ui.core.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:77)
        at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209)
        at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
        at java.lang.Thread.run(Thread.java:595)

In the resin log:

[16:59:02.940]starting connection TcpConnection[id=resin-tcp-connection-*:8084-17,socket=JniSocketImpl$3188885[144108656],port=Port[null:8084]],
total=7
[16:59:02.941][myserver, 8] GET /roller-ui/install/install!bootstrap.rol HTTP/1.1
...
[16:59:02.956][8] chunk: 76
[16:59:02.956][8] close stream
[16:59:02.957]java.lang.NullPointerException
[16:59:02.957]  at org.apache.roller.weblogger.ui.core.filters.PersistenceSessionFilter.doFilter(PersistenceSessionFilter.java:64)
[16:59:02.957]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[16:59:02.957]  at org.apache.roller.weblogger.ui.core.filters.BootstrapFilter.doFilter(BootstrapFilter.java:65)
[16:59:02.957]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
[16:59:02.957]  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
[16:59:02.957]  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.securechannel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:138)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
[16:59:02.957]  at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
[16:59:02.957]  at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
[16:59:02.957]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[16:59:02.957]  at org.apache.roller.weblogger.ui.core.filters.SchemeEnforcementFilter.doFilter(SchemeEnforcementFilter.java:121)
[16:59:02.957]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[16:59:02.957]  at org.apache.roller.weblogger.ui.core.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:77)
[16:59:02.957]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
[16:59:02.957]  at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209)
[16:59:02.957]  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[16:59:02.957]  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[16:59:02.957]  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[16:59:02.957]  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
[16:59:02.957]  at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[16:59:02.957]  at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[16:59:02.957]  at java.lang.Thread.run(Thread.java:595)
[16:59:02.960]java.lang.IllegalStateException: forward() not allowed after buffer has committed.
[16:59:02.960]  at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:139)
[16:59:02.960]  at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113)
[16:59:02.960]  at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:362)
[16:59:02.960]  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
[16:59:02.960]  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[16:59:02.960]  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[16:59:02.960]  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
[16:59:02.960]  at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[16:59:02.960]  at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[16:59:02.960]  at java.lang.Thread.run(Thread.java:595)
[16:59:02.961][p-resin03.stage.eniro.net, 8] no-keepalive
[16:59:02.961]closing connection TcpConnection[id=resin-tcp-connection-*:8084-17,socket=JniSocketImpl$3188885[144108656],port=Port[null:8084]],
total=7
[16:59:02.993]starting connection TcpConnection[id=resin-tcp-connection-*:8084-21,socket=JniSocketImpl$26506823[144107632],port=Port[null:8084]],
total=7


Does anyone know why we get this error?

In the resin conf:

...
<host id="myserver.com">
      <root-directory>/foo/bar/myserver.com</root-directory>
      <character-encoding>ISO-8859-1</character-encoding>

    <web-app id="/">
        <document-directory>.</document-directory>
        
        <database>
          <jndi-name>jdbc/rollerdb</jndi-name>
          <driver>
            <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
            <url>jdbc:mysql://localhost:3306/blog?autoReconnect=true</url>
            <user>blog</user>
            <password>blog</password>
            <prepared-statement-cache-size>8</prepared-statement-cache-size>
            <!-- <max-connections>100</max-connections> -->
            <!-- <max-idle-time>30s</max-idle-time> -->
          </driver>
        </database>
    </webapp>
</host>

We do not use the path prefix "/roller" but that should be okay?
Our roller-custom.properties:

installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/blog
database.jdbc.username=blog
database.jdbc.password=blog
log4j.appender.roller.File=/foo/bar/roller.log

log4j.appender.roller-startup.File=/foo/bar/roller-startup.log

We have also tried to set the log file paths in roller-custom.properties (as shown above).
The roller.log works, but the roller-startup.log gives an error:

log4j:ERROR Either File or DatePattern options are not set for appender [roller-startup].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: roller-startup.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:282)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
        at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)


Thanks for any advice! :-)


  * What version of Roller are you using? If you are building from sources, on which branch
are you building?
Roller 4.0-rc10
    * What Application Server version are you using?
Resin 3.0.23
    * What database are you using?
MySql 5.0.
    * What Java version are you using?
Sun Java 5
    * What operating system are you using?
Linux CentOS 4
    * If applicable, what browser are you using?
Firefox

_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message