On Jan 27, 2008 8:55 PM, Steven Dongzhou Liao <[EMAIL PROTECTED]> wrote:
> I am having problem to set up roller in Planet mode. I use jdbc for 
> configuration type. It works when planet.aggregator.enabled is false. After I 
> enable planet, I got the following error. It seems that Roller is trying to 
> use jndi to connect to database. Any idea how to set it up correctly?
>
> INFO  2008-01-27 17:46:16,437 PlanetConfig:<clinit> - successfully loaded 
> default properties.
> INFO  2008-01-27 17:46:16,437 PlanetConfig:<clinit> - no custom properties 
> file found in classpath
> INFO  2008-01-27 17:46:16,437 PlanetConfig:<clinit> - no custom properties 
> file specified via jvm option
> INFO  2008-01-27 17:46:16,437 DatabaseProvider:successMessage - SUCCESS: Got 
> parameters. Using configuration type JNDI_NAME
> INFO  2008-01-27 17:46:16,437 DatabaseProvider:successMessage - -- Using JNDI 
> datasource name: java:comp/env/jdbc/rollerdb
> INFO  2008-01-27 17:46:16,437 DatabaseProvider:successMessage - SUCCESS: 
> located JNDI DataSource [java:comp/env/jdbc/rollerdb]
> ERROR 2008-01-27 17:46:16,437 DatabaseProvider:errorMessage - ERROR: unable 
> to obtain database connection. Likely problem: bad connection parameters or 
> database unavailable.
> FATAL 2008-01-27 17:46:16,437 RollerContext:contextInitialized - Roller 
> Planet startup failed during app preparation
> org.apache.roller.planet.business.startup.StartupException: ERROR: unable to 
> obtain database connection. Likely problem: bad connection parameters or 
> database unavailable.
>     at 
> org.apache.roller.planet.business.DatabaseProvider.<init>(DatabaseProvider.java:147)

You need to either setup a database at JNDI name jdbc/rollerdb, or
create a planet-custom.properties file with the correct JDBC
connection parameters for your database.

Check out the release notes, they mention this problem:
http://cwiki.apache.org/confluence/x/fRsB

- Dave

Reply via email to