You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Troy Kelley <tk...@gmail.com> on 2008/01/17 22:55:31 UTC

Roller 4.0 Planet Config Issue

I've read through nearly all of the previous threads, blogs and WIKI
entries out there, but I can't seem to find out what's causing my
specific issue.

I have a frontpage blog and several individual blogs.  I'm trying to
setup Planet so that all my individual blogs will roll up to the
Planet.

I installed Roller w/o enabling Planet config and everything was
working great.

I followed all the instructions for setting up Planet, including
making the frontpage blog the aggregate (checkbox in server settings).
 I created a custom theme on the frontpage site to replace the code as
requested:

<div class="content">
                                ##set($pager =
$site.getWeblogEntriesPager($since, $maxResults))
				#set($pager = $planet.getAggregationPager($since, $maxResults))

While the individual blogs have the reverse.

ISSUE:  Individual blogs aren't displaying entries anymore and no
rolled-up entries are displaying on the planet site.  However, the
rolled-up entries ARE displaying on the plant feed:

http://blogs.e-gineering.com/roller/planetrss

"Tyler's" entry should appear here, but it isn't:

http://blogs.e-gineering.com/roller/tyler/

I'm using:

Tomcat 5.5
MySQL 5.0.38
Java 1.5

I have a JNDI datasource setup (hence no override in the customer prop files)

-- BEGIN roller-custom.properties --

 installation.type=auto
 mail.configurationType=properties
 mail.hostName=localhost

 planet.aggregator.enabled=true

-- END roller-custom.properties --


-- BEGIN planet-custom.properties --

 mail.configurationType=properties
 mail.hostName=localhost

 cache.dir=/usr1/app/roller/planetcache
 output.dir=/usr1/foonet/tomcat/webapps/roller
 template.dir=/usr1/foonet/tomcat/webapps/roller/WEB-INF/templates


 # Tasks which are enabled. Only tasks listed here will be run.
 tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,PingQueueTask,RefreshRollerPlanetTask,SyncWebsitesTask

 planet.aggregator.guice.module=org.apache.roller.weblogger.planet.business.jpa.RollerPlanetModule

 # Set of page models specifically for site-wide rendering
 rendering.siteModels=org.apache.roller.weblogger.ui.rendering.model.SiteModel,org.apache.roller.weblogger.ui.rendering.model.PlanetModel

-- END planet-custom.properties --

-- Tomcat startup BEGIN --

INFO  2008-01-17 15:52:58,406 DatabaseProvider:successMessage -
SUCCESS: Got parameters. Using configuration type JNDI_NAME
INFO  2008-01-17 15:52:58,410 DatabaseProvider:successMessage - --
Using JNDI datasource name: java:comp/env/jdbc/rollerdb
INFO  2008-01-17 15:52:58,411 DatabaseProvider:successMessage -
SUCCESS: located JNDI DataSource [java:comp/env/jdbc/rollerdb]
INFO  2008-01-17 15:52:59,411 WebloggerFactory:bootstrap -
Bootstrapping Roller Weblogger business tier
INFO  2008-01-17 15:52:59,412 WebloggerFactory:bootstrap - Weblogger
Provider = org.apache.roller.weblogger.business.GuiceWebloggerProvider
INFO  2008-01-17 15:52:59,415 DatabaseProvider:successMessage -
SUCCESS: Got parameters. Using configuration type JNDI_NAME
INFO  2008-01-17 15:52:59,416 DatabaseProvider:successMessage - --
Using JNDI datasource name: java:comp/env/jdbc/rollerdb
INFO  2008-01-17 15:52:59,417 DatabaseProvider:successMessage -
SUCCESS: located JNDI DataSource [java:comp/env/jdbc/rollerdb]
INFO  2008-01-17 15:52:59,420 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
INFO  2008-01-17 15:52:59,841 IndexManagerImpl:<init> - search enabled: true
INFO  2008-01-17 15:52:59,842 IndexManagerImpl:<init> - index dir:
/home/tomcat/roller_data/search-index
INFO  2008-01-17 15:52:59,855 ReferrerQueueManagerImpl:<init> -
Instantiating Referrer Queue Manager
INFO  2008-01-17 15:52:59,856 ReferrerQueueManagerImpl:<init> -
Asynchronous referrer processing = false
INFO  2008-01-17 15:52:59,858 ThreadManagerImpl:<init> - Instantiating
Thread Manager
INFO  2008-01-17 15:52:59,865 WebloggerFactory:bootstrap - Roller
Weblogger business tier successfully bootstrapped
INFO  2008-01-17 15:52:59,866 WebloggerFactory:bootstrap -    Version: 4.0
INFO  2008-01-17 15:52:59,866 WebloggerFactory:bootstrap -    Revision: 596807
INFO  2008-01-17 15:52:59,869 WebloggerImpl:initialize - Initializing
Roller Weblogger business tier
INFO  2008-01-17 15:53:01,781 ThemeManagerImpl:initialize - Loaded 5
themes from disk.
INFO  2008-01-17 15:53:01,781 ThreadManagerImpl:initialize -
Initializing task: ScheduledEntriesTask
INFO  2008-01-17 15:53:01,825 ThreadManagerImpl:initialize -
Initializing task: ResetHitCountsTask
INFO  2008-01-17 15:53:01,830 ThreadManagerImpl:initialize -
Initializing task: TurnoverReferersTask
INFO  2008-01-17 15:53:01,836 ThreadManagerImpl:initialize -
Initializing task: PingQueueTask
INFO  2008-01-17 15:53:01,917 WebloggerImpl:initialize - Roller
Weblogger business tier successfully initialized
INFO  2008-01-17 15:53:01,923 PlanetConfig:<clinit> - successfully
loaded default properties.
INFO  2008-01-17 15:53:01,924 PlanetConfig:<clinit> - successfully
loaded custom properties file from classpath
INFO  2008-01-17 15:53:01,924 PlanetConfig:<clinit> - no custom
properties file specified via jvm option
INFO  2008-01-17 15:53:01,925 DatabaseProvider:successMessage -
SUCCESS: Got parameters. Using configuration type JNDI_NAME
INFO  2008-01-17 15:53:01,925 DatabaseProvider:successMessage - --
Using JNDI datasource name: java:comp/env/jdbc/rollerdb
INFO  2008-01-17 15:53:01,926 DatabaseProvider:successMessage -
SUCCESS: located JNDI DataSource [java:comp/env/jdbc/rollerdb]
INFO  2008-01-17 15:53:01,978 PlanetFactory:bootstrap - Bootstrapping
Roller Planet business tier
INFO  2008-01-17 15:53:01,979 PlanetFactory:bootstrap - Planet
Provider = org.apache.roller.planet.business.GuicePlanetProvider
INFO  2008-01-17 15:53:01,997
JPARollerPlanetPersistenceStrategy:<init> - openjpa.Log: commons
INFO  2008-01-17 15:53:02,010 PlanetFactory:bootstrap - Roller Planet
business tier successfully bootstrapped
INFO  2008-01-17 15:53:02,011 JPAPlanetImpl:initialize - Initializing
Roller Planet business tier
INFO  2008-01-17 15:53:02,181 JPAPlanetImpl:initialize - Roller Planet
business tier successfully initialized
INFO  2008-01-17 15:53:02,183 RollerContext:initializeSecurityFeatures
- Remember Me enabled: true
INFO  2008-01-17 15:53:02,184 RollerContext:initializeSecurityFeatures
- Password Encryption Algorithm set to 'SHA'
INFO  2008-01-17 15:53:02,184 RollerContext:setupVelocity -
Initializing Velocity
WARN  2008-01-17 15:53:03,321 Settings:getLocale - Settings: Could not
parse struts.locale setting, substituting default VM locale
INFO  2008-01-17 15:53:03,833 IPBanFilter:init - INIT IPBanFilter
INFO  2008-01-17 15:53:03,843 RequestMappingFilter:init - Request
mapping filter initialized, 1 mappers configured.
INFO  2008-01-17 15:53:03,850 PageServlet:init - Initializing PageServlet
INFO  2008-01-17 15:53:03,853 WeblogPageCache:<init> - {timeout=3600,
enabled=true, size=400, id=cache.weblogpage}
INFO  2008-01-17 15:53:03,858 CacheManager:<clinit> - Cache Manager Initialized.
INFO  2008-01-17 15:53:03,858 CacheManager:<clinit> - Cache Factory =
org.apache.roller.weblogger.util.cache.ExpiringLRUCacheFactoryImpl
INFO  2008-01-17 15:53:03,865 SiteWideCache:<init> - {timeout=1800,
enabled=true, size=50, id=cache.sitewide}
INFO  2008-01-17 15:53:03,866 PageServlet:init - Referrer processing
enabled = true
INFO  2008-01-17 15:53:03,869 FeedServlet:init - Initializing FeedServlet
INFO  2008-01-17 15:53:03,872 WeblogFeedCache:<init> - {timeout=3600,
enabled=true, size=200, id=cache.weblogfeed}
INFO  2008-01-17 15:53:03,874 ResourceServlet:init - Initializing
ResourceServlet
INFO  2008-01-17 15:53:03,878 SearchServlet:init - Initializing SearchServlet
INFO  2008-01-17 15:53:03,882 CommentServlet:init - Initializing CommentServlet
INFO  2008-01-17 15:53:03,906 CommentValidationManager:<init> -
Configured CommentValidator: Blacklist Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.BlacklistCommentValidator
INFO  2008-01-17 15:53:03,908 CommentValidationManager:<init> -
Configured CommentValidator: Excess Links Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessLinksCommentValidator
INFO  2008-01-17 15:53:03,910 CommentValidationManager:<init> -
Configured CommentValidator: Excess Size Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessSizeCommentValidator
INFO  2008-01-17 15:53:03,910 CommentValidationManager:<init> -
Configured 3 CommentValidators
INFO  2008-01-17 15:53:03,911 CommentServlet:init - Comment Throttling DISABLED
INFO  2008-01-17 15:53:03,914 CommentValidationManager:<init> -
Configured CommentValidator: Blacklist Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.BlacklistCommentValidator
INFO  2008-01-17 15:53:03,914 CommentValidationManager:<init> -
Configured CommentValidator: Excess Links Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessLinksCommentValidator
INFO  2008-01-17 15:53:03,915 CommentValidationManager:<init> -
Configured CommentValidator: Excess Size Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessSizeCommentValidator
INFO  2008-01-17 15:53:03,915 CommentValidationManager:<init> -
Configured 3 CommentValidators
INFO  2008-01-17 15:53:03,919 RSDServlet:init - Initializing RSDServlet
INFO  2008-01-17 15:53:03,923 PlanetFeedServlet:init - Initializing
PlanetRssServlet
INFO  2008-01-17 15:53:03,925 PlanetCache:<init> - Planet cache =
{timeout=1800, enabled=true, size=10, id=cache.planet}
INFO  2008-01-17 15:53:03,928 PreviewThemeImageServlet:init -
Initializing PreviewThemeImageServlet
INFO  2008-01-17 15:53:03,930 PreviewResourceServlet:init -
Initializing PreviewResourceServlet
INFO  2008-01-17 15:53:03,946 PreviewServlet:init - Initializing PreviewServlet
WARN  2008-01-17 15:55:00,144 PingQueueProcessor:processQueue -
WARNING: Skipping current ping queue processing round because we
cannot yet determine the site's absolute context url.
INFO  2008-01-17 15:57:55,306 ContinuousWorkerThread:run -
HitCountQueueProcessor Started.
INFO  2008-01-17 15:57:55,325 RendererManager:<clinit> - Renderer
Manager Initialized.
INFO  2008-01-17 15:57:55,331 RollerVelocity:<clinit> - Initializing
Velocity Rendering Engine
INFO  2008-01-17 15:58:05,523 Blacklist:<clinit> - Initializing MT Blacklist
WARN  2008-01-17 15:58:05,525 Blacklist:loadBlacklistFromFile -
Couldn't find downloaded blacklist, loaded blacklist.txt from
classpath instead
INFO  2008-01-17 15:58:05,540 Blacklist:loadBlacklistFromFile - Number
of blacklist string rules: 3102
INFO  2008-01-17 15:58:05,541 Blacklist:loadBlacklistFromFile - Number
of blacklist regex rules: 15

-- END Tomcat Startup  --

Lastly, this:

select * from weblogentry where title = 'Genesis'

id	userid	anchor	title	text	pubtime	updatetime	websiteid	categoryid	publishentry	link	plugins	allowcomments	commentdays	rightToLeft	pinnedtomain	locale	status	summary	content_type	content_src
cf8b4153-93f5-4a7b-96e6-6a4b90c30169	175cf9d2-9b87-42d3-a24c-a7ec5fc7186a	genesis	Genesis	<p>So
how does one begin...(rest of text clipped) 2008-01-03
11:15:49.0	2008-01-03
11:15:49.0	2f8ddb15-5251-4f76-809c-cc74beb9c884	336bbe3f-0aef-4466-b589-6b098f9d57cb	true	(null)	(null)	true	0	false	false	en_US	PUBLISHED		(null)	(null)

Any ideas or assistance is greatly appreciated.  Thanks to the Roller
team for a cool product!

-Troy

-- 
====
Troy Kelley
tkelley353@gmail.com

Re: Roller 4.0 Planet Config Issue

Posted by Troy Kelley <tk...@gmail.com>.
I figured this out from another recent post.  The code for displaying
the site and planet entries is not the same as the stock code
"_day.vm" that get used in the individual blog pages.  I need to use
the velocity template from the homepage theme and I'll be good to go.

Thanks,

-Troy

On Jan 24, 2008 4:38 PM, Troy Kelley <tk...@gmail.com> wrote:
> Thanks Dave, that worked for the individual sites.  I've read the
> template documentation so I think I understand the distinction between
> the base model, site model and planet model.
>
> The only issue that remains is that I'm trying to get my main page
> (the aggregator) to display the aggregated site entries.  I went ahead
> and turned off Planet (for now), since I only want to aggregate
> Site-wide entries and I have my frontpage set as the enabled site-wide
> aggregated front-page.  The Site model appears to be available:
>
> http://blogs.e-gineering.com/roller/
>
> The correct aggregated entry count is displayed.  However, none of the
> actual entries will display.  Using this:
>
>         Entry Count = $site.entryCount
>
>         #set($pager = $site.getWeblogEntriesPager(-1, 10))
>
>         ## show entries
>         #showWeblogEntriesPager($pager)
>
> And still, the ATOM feed from the main page is indeed aggregating the
> entries correctly, so it seems I'm missing something subtle.
>
> -Troy
>
>
> On Jan 22, 2008 10:56 PM, Dave <sn...@gmail.com> wrote:
> > On Jan 17, 2008 4:55 PM, Troy Kelley <tk...@gmail.com> wrote:
> > > I've read through nearly all of the previous threads, blogs and WIKI
> > > entries out there, but I can't seem to find out what's causing my
> > > specific issue.
> > >
> > > I have a frontpage blog and several individual blogs.  I'm trying to
> > > setup Planet so that all my individual blogs will roll up to the
> > > Planet.
> > >
> > > I installed Roller w/o enabling Planet config and everything was
> > > working great.
> > >
> > > I followed all the instructions for setting up Planet, including
> > > making the frontpage blog the aggregate (checkbox in server settings).
> > >  I created a custom theme on the frontpage site to replace the code as
> > > requested:
> > >
> > > <div class="content">
> > >                                 ##set($pager =
> > > $site.getWeblogEntriesPager($since, $maxResults))
> > >                                 #set($pager = $planet.getAggregationPager($since, $maxResults))
> > >
> > > While the individual blogs have the reverse.
> >
> > That is the problem.  Don't use the $site model in individual blogs;
> > it is designed specifically for front page use. Try one of the stock
> > Roller themes on Tyler's blog, it should work properly.
> >
> > - Dave
> >
> >
> >
> >
> >
> > > ISSUE:  Individual blogs aren't displaying entries anymore and no
> > > rolled-up entries are displaying on the planet site.  However, the
> > > rolled-up entries ARE displaying on the plant feed:
> > >
> > > http://blogs.e-gineering.com/roller/planetrss
> > >
> > > "Tyler's" entry should appear here, but it isn't:
> > >
> > > http://blogs.e-gineering.com/roller/tyler/
> >
> > - Dave
> >
>
>
>
> --
> ====
>
> Troy Kelley
> tkelley353@gmail.com
>



-- 
====
Troy Kelley
tkelley353@gmail.com

Re: Roller 4.0 Planet Config Issue

Posted by Troy Kelley <tk...@gmail.com>.
Thanks Dave, that worked for the individual sites.  I've read the
template documentation so I think I understand the distinction between
the base model, site model and planet model.

The only issue that remains is that I'm trying to get my main page
(the aggregator) to display the aggregated site entries.  I went ahead
and turned off Planet (for now), since I only want to aggregate
Site-wide entries and I have my frontpage set as the enabled site-wide
aggregated front-page.  The Site model appears to be available:

http://blogs.e-gineering.com/roller/

The correct aggregated entry count is displayed.  However, none of the
actual entries will display.  Using this:

        Entry Count = $site.entryCount

        #set($pager = $site.getWeblogEntriesPager(-1, 10))

        ## show entries
        #showWeblogEntriesPager($pager)

And still, the ATOM feed from the main page is indeed aggregating the
entries correctly, so it seems I'm missing something subtle.

-Troy

On Jan 22, 2008 10:56 PM, Dave <sn...@gmail.com> wrote:
> On Jan 17, 2008 4:55 PM, Troy Kelley <tk...@gmail.com> wrote:
> > I've read through nearly all of the previous threads, blogs and WIKI
> > entries out there, but I can't seem to find out what's causing my
> > specific issue.
> >
> > I have a frontpage blog and several individual blogs.  I'm trying to
> > setup Planet so that all my individual blogs will roll up to the
> > Planet.
> >
> > I installed Roller w/o enabling Planet config and everything was
> > working great.
> >
> > I followed all the instructions for setting up Planet, including
> > making the frontpage blog the aggregate (checkbox in server settings).
> >  I created a custom theme on the frontpage site to replace the code as
> > requested:
> >
> > <div class="content">
> >                                 ##set($pager =
> > $site.getWeblogEntriesPager($since, $maxResults))
> >                                 #set($pager = $planet.getAggregationPager($since, $maxResults))
> >
> > While the individual blogs have the reverse.
>
> That is the problem.  Don't use the $site model in individual blogs;
> it is designed specifically for front page use. Try one of the stock
> Roller themes on Tyler's blog, it should work properly.
>
> - Dave
>
>
>
>
>
> > ISSUE:  Individual blogs aren't displaying entries anymore and no
> > rolled-up entries are displaying on the planet site.  However, the
> > rolled-up entries ARE displaying on the plant feed:
> >
> > http://blogs.e-gineering.com/roller/planetrss
> >
> > "Tyler's" entry should appear here, but it isn't:
> >
> > http://blogs.e-gineering.com/roller/tyler/
>
> - Dave
>



-- 
====
Troy Kelley
tkelley353@gmail.com

Re: Roller 4.0 Planet Config Issue

Posted by Dave <sn...@gmail.com>.
On Jan 17, 2008 4:55 PM, Troy Kelley <tk...@gmail.com> wrote:
> I've read through nearly all of the previous threads, blogs and WIKI
> entries out there, but I can't seem to find out what's causing my
> specific issue.
>
> I have a frontpage blog and several individual blogs.  I'm trying to
> setup Planet so that all my individual blogs will roll up to the
> Planet.
>
> I installed Roller w/o enabling Planet config and everything was
> working great.
>
> I followed all the instructions for setting up Planet, including
> making the frontpage blog the aggregate (checkbox in server settings).
>  I created a custom theme on the frontpage site to replace the code as
> requested:
>
> <div class="content">
>                                 ##set($pager =
> $site.getWeblogEntriesPager($since, $maxResults))
>                                 #set($pager = $planet.getAggregationPager($since, $maxResults))
>
> While the individual blogs have the reverse.

That is the problem.  Don't use the $site model in individual blogs;
it is designed specifically for front page use. Try one of the stock
Roller themes on Tyler's blog, it should work properly.

- Dave




> ISSUE:  Individual blogs aren't displaying entries anymore and no
> rolled-up entries are displaying on the planet site.  However, the
> rolled-up entries ARE displaying on the plant feed:
>
> http://blogs.e-gineering.com/roller/planetrss
>
> "Tyler's" entry should appear here, but it isn't:
>
> http://blogs.e-gineering.com/roller/tyler/

- Dave