roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Pritchard <spritch...@militaryhire.com>
Subject Error when accessing webapp without trailing slash
Date Sun, 16 Nov 2014 21:19:17 GMT
Hello,

I've recently installed and started using Roller 5.1.1.  I deployed it to
the Resin 4 app server.

I renamed roller.war to blog.war to deploy to the path /blog/.  But I'm
running into a problem where if I request the blog at http://hostname/blog/
it works fine.  But if I remove the trailing slash http://hostname/blog, I
get the following error:

Unexpected Exception Status Code 500  Message String index out of range: -1
Type
 Exception Roller has encountered and logged an unexpected exception.
In checking the roller.log, I see no evidence of an exception.  I tried
changing the roller logging levels to DEBUG

log4j.logger.org.apache.roller=DEBUG
log4j.logger.net.java.roller=DEBUG

But still no stack trace.  From the log, I'm guessing the problem is
happening in the WeblogRequestMapper.  My two clues are at 16:03:13,361
where the session is released immediately after evaluating the path /blog.
Or perhaps at 16:03:14,138 where the request is not mapped.

DEBUG 2014-11-16 16:03:13,333 CharEncodingFilter:doFilter - Processing
CharEncodingFilter
DEBUG 2014-11-16 16:03:13,334 CharEncodingFilter:doFilter - Set request
character encoding to UTF-8
DEBUG 2014-11-16 16:03:13,358 BootstrapFilter:doFilter - Entered /blog
DEBUG 2014-11-16 16:03:13,359 WebloggerConfig:getProperty - Fetching
property [installation.type=manual]
DEBUG 2014-11-16 16:03:13,359 PersistenceSessionFilter:doFilter - Entered
/blog
DEBUG 2014-11-16 16:03:13,360 InitFilter:doFilter - relPath = /blog
DEBUG 2014-11-16 16:03:13,360 InitFilter:doFilter - absPath =
http://localhost:8080/blog
DEBUG 2014-11-16 16:03:13,360 RequestMappingFilter:doFilter - entering
DEBUG 2014-11-16 16:03:13,361 RequestMappingFilter:doFilter - trying mapper
org.apache.roller.weblogger.ui.rendering.WeblogRequestMapper
DEBUG 2014-11-16 16:03:13,361 WeblogRequestMapper:handleRequest -
evaluating [/blog]
DEBUG 2014-11-16 16:03:13,361 PersistenceSessionFilter:doFilter - Releasing
Roller Session
DEBUG 2014-11-16 16:03:14,127 CharEncodingFilter:doFilter - Processing
CharEncodingFilter
DEBUG 2014-11-16 16:03:14,128 CharEncodingFilter:doFilter - Set request
character encoding to UTF-8
DEBUG 2014-11-16 16:03:14,129 BootstrapFilter:doFilter - Entered
/blog/roller-ui/styles/roller.css
DEBUG 2014-11-16 16:03:14,129 WebloggerConfig:getProperty - Fetching
property [installation.type=manual]
DEBUG 2014-11-16 16:03:14,130 PersistenceSessionFilter:doFilter - Entered
/blog/roller-ui/styles/roller.css
DEBUG 2014-11-16 16:03:14,132 WebloggerConfig:getProperty - Fetching
property [cache.salt.enabled=true]
DEBUG 2014-11-16 16:03:14,132 WebloggerConfig:getProperty - Fetching
property [cache.salt.size=5000]
DEBUG 2014-11-16 16:03:14,132 WebloggerConfig:getProperty - Fetching
property [cache.salt.timeout=3600]
INFO  2014-11-16 16:03:14,132 SaltCache:<init> - {id=cache.salt,
enabled=true, timeout=3600, size=5000}
DEBUG 2014-11-16 16:03:14,133 CacheManager:constructCache - Constructing
new cache with props {id=cache.salt, enabled=true, timeout=3600, size=5000}
DEBUG 2014-11-16 16:03:14,133 ExpiringLRUCacheFactoryImpl:constructCache -
new cache constructed. size=5000, timeout=3600
DEBUG 2014-11-16 16:03:14,136 SaltCache:put - PUT kY1lSl8jyUyRCMfhyj8Z
DEBUG 2014-11-16 16:03:14,136 RequestMappingFilter:doFilter - entering
DEBUG 2014-11-16 16:03:14,137 RequestMappingFilter:doFilter - trying mapper
org.apache.roller.weblogger.ui.rendering.WeblogRequestMapper
DEBUG 2014-11-16 16:03:14,137 WeblogRequestMapper:handleRequest -
evaluating [/blog/roller-ui/styles/roller.css]
DEBUG 2014-11-16 16:03:14,137 WeblogRequestMapper:handleRequest - potential
weblog handle = roller-ui
DEBUG 2014-11-16 16:03:14,137 WeblogRequestMapper:handleRequest - SKIPPED
roller-ui
DEBUG 2014-11-16 16:03:14,138 RequestMappingFilter:doFilter - request not
mapped
DEBUG 2014-11-16 16:03:14,172 RequestMappingFilter:doFilter - exiting
DEBUG 2014-11-16 16:03:14,173 PersistenceSessionFilter:doFilter - Releasing
Roller Session
DEBUG 2014-11-16 16:03:14,173 PersistenceSessionFilter:doFilter - Exiting
/blog/roller-ui/styles/roller.css
DEBUG 2014-11-16 16:03:14,173 BootstrapFilter:doFilter - Exiting
/blog/roller-ui/styles/roller.css

Have any of you run into this problem and know how to fix it?

Thanks in advance,
Sean

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