You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Edd Grant <ed...@eddgrant.com> on 2012/08/21 14:14:36 UTC
Roller 5.0.1 - fresh install - Error loading salt
Hi all,
I'm performing a fresh install of Roller 5.0.1 on 32 bit Ubuntu, using
OpenJDK 1.6.0_24, MySQL5 and Tomcat 6. Deployment of the app seems to work
fine but when I call http://<servername>/roller I see the following error
in the logs:
ERROR 2012-08-21 05:04:58,309 LoadSaltFilter:doFilter - Error loading salt
java.lang.IllegalStateException: Roller Weblogger has not been bootstrapped
yet
at
org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
Interestingly the browser *does *serve me the installation configuration
page, should I be concerned about the salt exception? Any ideas what might
cause it? From the code it seems that the *webloggerProvider* in *
WebloggerFactory* must be null but I can't quite see why that would be the
case.
Grateful for any help.
Cheers,
Edd
--
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Dave <sn...@gmail.com>.
On Wed, Aug 22, 2012 at 3:15 PM, Edd Grant <ed...@eddgrant.com> wrote:
> Double checked and have definitely downloaded the tomcat distribution
> (phew). out of curiosity was it the java:comp/env that made you think that
> I'd got the wrong one? I must admit this had me wondering as I've only ever
> had to use java:comp/env in fully blown J2EE containers such as WebLogic
> and WebSphere, I didn't realise it existed in Tomcat too.
The thing that made me curious was the JBoss and Hibernate stuff. The
Tomcat build of Roller includes OpenJPA because Tomcat is not a full
app server. So, I would not expect to see any Hibernate stuff in the
startup log -- Roller on Tomcat uses only OpenJPA and not Hibernate.
Maybe you have some old stuff in your Roller properties file that is
causing Hibernate to kick in?
- Dave
>> On Wed, Aug 22, 2012 at 11:57 AM, Edd Grant <ed...@eddgrant.com> wrote:
>> > Sorry, forgot to mention, logs do show that the DataSource is being found
>> > in JNDI, so maybe my hypothesis doesn't hold any water after all:
>> >
>> > INFO 2012-08-22 08:53:27,492 DatabaseProvider:successMessage - SUCCESS:
>> > Got parameters. Using configuration type JNDI_NAME
>> > INFO 2012-08-22 08:53:27,493 DatabaseProvider:successMessage - -- Using
>> > JNDI datasource name: java:comp/env/jdbc/rollerdb
>> > INFO 2012-08-22 08:53:27,494 DatabaseProvider:successMessage - SUCCESS:
>> > located JNDI DataSource [java:comp/env/jdbc/rollerdb]
>> > INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
>> > hibernate.transaction.manager_lookup_class:
>> > org.hibernate.transaction.JBossTransactionManagerLookup
>> > INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
>> > hibernate.transaction.factory_class:
>> > org.hibernate.transaction.JTATransactionFactory
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Edd Grant <ed...@eddgrant.com>.
Double checked and have definitely downloaded the tomcat distribution
(phew). out of curiosity was it the java:comp/env that made you think that
I'd got the wrong one? I must admit this had me wondering as I've only ever
had to use java:comp/env in fully blown J2EE containers such as WebLogic
and WebSphere, I didn't realise it existed in Tomcat too.
I'm going to try falling back to a non-jndi DataSource (as per Matt's
blogged example) and will see how I get on, ultimately I'd like to use JNDI
if possible but it might give me some clues at least.
Do you know if the initial table creation somehow uses a different
DataSource mechanism than the standard in-app mechanism?
Cheers,
Edd
On 22 August 2012 17:37, Dave <sn...@gmail.com> wrote:
> On Wed, Aug 22, 2012 at 11:57 AM, Edd Grant <ed...@eddgrant.com> wrote:
> > Sorry, forgot to mention, logs do show that the DataSource is being found
> > in JNDI, so maybe my hypothesis doesn't hold any water after all:
> >
> > INFO 2012-08-22 08:53:27,492 DatabaseProvider:successMessage - SUCCESS:
> > Got parameters. Using configuration type JNDI_NAME
> > INFO 2012-08-22 08:53:27,493 DatabaseProvider:successMessage - -- Using
> > JNDI datasource name: java:comp/env/jdbc/rollerdb
> > INFO 2012-08-22 08:53:27,494 DatabaseProvider:successMessage - SUCCESS:
> > located JNDI DataSource [java:comp/env/jdbc/rollerdb]
> > INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
> > hibernate.transaction.manager_lookup_class:
> > org.hibernate.transaction.JBossTransactionManagerLookup
> > INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
> > hibernate.transaction.factory_class:
> > org.hibernate.transaction.JTATransactionFactory
>
> Hmm... based on those log messages I wonder: did you download the right
> file?
>
> Are you sure you downloaded the Tomcat build? It's named
> "roller-weblogger-5.0.1-for-tomcat"
>
> - Dave
>
--
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Dave <sn...@gmail.com>.
On Wed, Aug 22, 2012 at 11:57 AM, Edd Grant <ed...@eddgrant.com> wrote:
> Sorry, forgot to mention, logs do show that the DataSource is being found
> in JNDI, so maybe my hypothesis doesn't hold any water after all:
>
> INFO 2012-08-22 08:53:27,492 DatabaseProvider:successMessage - SUCCESS:
> Got parameters. Using configuration type JNDI_NAME
> INFO 2012-08-22 08:53:27,493 DatabaseProvider:successMessage - -- Using
> JNDI datasource name: java:comp/env/jdbc/rollerdb
> INFO 2012-08-22 08:53:27,494 DatabaseProvider:successMessage - SUCCESS:
> located JNDI DataSource [java:comp/env/jdbc/rollerdb]
> INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
> hibernate.transaction.manager_lookup_class:
> org.hibernate.transaction.JBossTransactionManagerLookup
> INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
> hibernate.transaction.factory_class:
> org.hibernate.transaction.JTATransactionFactory
Hmm... based on those log messages I wonder: did you download the right file?
Are you sure you downloaded the Tomcat build? It's named
"roller-weblogger-5.0.1-for-tomcat"
- Dave
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Edd Grant <ed...@eddgrant.com>.
Sorry, forgot to mention, logs do show that the DataSource is being found
in JNDI, so maybe my hypothesis doesn't hold any water after all:
INFO 2012-08-22 08:53:27,492 DatabaseProvider:successMessage - SUCCESS:
Got parameters. Using configuration type JNDI_NAME
INFO 2012-08-22 08:53:27,493 DatabaseProvider:successMessage - -- Using
JNDI datasource name: java:comp/env/jdbc/rollerdb
INFO 2012-08-22 08:53:27,494 DatabaseProvider:successMessage - SUCCESS:
located JNDI DataSource [java:comp/env/jdbc/rollerdb]
INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
hibernate.transaction.manager_lookup_class:
org.hibernate.transaction.JBossTransactionManagerLookup
INFO 2012-08-22 08:53:27,494 JPAPersistenceStrategy:<init> -
hibernate.transaction.factory_class:
org.hibernate.transaction.JTATransactionFactory
Checked the connection properties from Context.xml and can connect fine
manually too.
Any further ideas?
Cheers,
Edd
On 22 August 2012 16:51, Edd Grant <ed...@eddgrant.com> wrote:
> Thanks Dave,
>
> Interesting. I'm not entirely sure as to whether I have a working Database
> connection. On the one hand the roller tables are being created correctly,
> however when I then try and complete the installation I get the following
> JPA error:
>
> A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property.
>
>
> I noticed that Matt also had this error (
> http://raibledesigns.com/rd/entry/upgraded_to_apache_roller_5) however
> his fix didn't work for me, perhaps as I'm using a JNDI bound Datasource
> whereas he wasn't.
>
> Does table creation use a different connection mechanism to normal app
> usage? If so then perhaps my DataSource isn't correctly registered in JNDI.
> I think there's a way to check that in the Tomcat manager so I will try
> that. Does that sound like a reasonable first step?
>
> Cheers,
>
> Edd
>
>
> On 22 August 2012 16:41, Dave <sn...@gmail.com> wrote:
>
>> On Tue, Aug 21, 2012 at 8:14 AM, Edd Grant <ed...@eddgrant.com> wrote:
>> > I'm performing a fresh install of Roller 5.0.1 on 32 bit Ubuntu, using
>> > OpenJDK 1.6.0_24, MySQL5 and Tomcat 6. Deployment of the app seems to
>> work
>> > fine but when I call http://<servername>/roller I see the following
>> error
>> > in the logs:
>> >
>> > ERROR 2012-08-21 05:04:58,309 LoadSaltFilter:doFilter - Error loading
>> salt
>> > java.lang.IllegalStateException: Roller Weblogger has not been
>> bootstrapped
>> > yet
>> > at
>> >
>> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>> >
>> > Interestingly the browser *does *serve me the installation configuration
>> > page, should I be concerned about the salt exception? Any ideas what
>> might
>> > cause it? From the code it seems that the *webloggerProvider* in *
>> > WebloggerFactory* must be null but I can't quite see why that would be
>> the
>> > case.
>>
>> I suspect there is some sort of database configuration error that is
>> preventing Roller from starting up. Do you see anything in the logs
>> that confirms you have a good database connection?
>>
>> - Dave
>>
>
>
>
> --
> Web: http://www.eddgrant.com
> Email: edd@eddgrant.com
> Mobile: +44 (0) 7861 394 543
>
>
>
--
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Edd Grant <ed...@eddgrant.com>.
Thanks Dave,
Interesting. I'm not entirely sure as to whether I have a working Database
connection. On the one hand the roller tables are being created correctly,
however when I then try and complete the installation I get the following
JPA error:
A JDBC Driver or DataSource class name must be specified in the
ConnectionDriverName property.
I noticed that Matt also had this error (
http://raibledesigns.com/rd/entry/upgraded_to_apache_roller_5) however his
fix didn't work for me, perhaps as I'm using a JNDI bound Datasource
whereas he wasn't.
Does table creation use a different connection mechanism to normal app
usage? If so then perhaps my DataSource isn't correctly registered in JNDI.
I think there's a way to check that in the Tomcat manager so I will try
that. Does that sound like a reasonable first step?
Cheers,
Edd
On 22 August 2012 16:41, Dave <sn...@gmail.com> wrote:
> On Tue, Aug 21, 2012 at 8:14 AM, Edd Grant <ed...@eddgrant.com> wrote:
> > I'm performing a fresh install of Roller 5.0.1 on 32 bit Ubuntu, using
> > OpenJDK 1.6.0_24, MySQL5 and Tomcat 6. Deployment of the app seems to
> work
> > fine but when I call http://<servername>/roller I see the following
> error
> > in the logs:
> >
> > ERROR 2012-08-21 05:04:58,309 LoadSaltFilter:doFilter - Error loading
> salt
> > java.lang.IllegalStateException: Roller Weblogger has not been
> bootstrapped
> > yet
> > at
> >
> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
> >
> > Interestingly the browser *does *serve me the installation configuration
> > page, should I be concerned about the salt exception? Any ideas what
> might
> > cause it? From the code it seems that the *webloggerProvider* in *
> > WebloggerFactory* must be null but I can't quite see why that would be
> the
> > case.
>
> I suspect there is some sort of database configuration error that is
> preventing Roller from starting up. Do you see anything in the logs
> that confirms you have a good database connection?
>
> - Dave
>
--
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543
Re: Roller 5.0.1 - fresh install - Error loading salt
Posted by Dave <sn...@gmail.com>.
On Tue, Aug 21, 2012 at 8:14 AM, Edd Grant <ed...@eddgrant.com> wrote:
> I'm performing a fresh install of Roller 5.0.1 on 32 bit Ubuntu, using
> OpenJDK 1.6.0_24, MySQL5 and Tomcat 6. Deployment of the app seems to work
> fine but when I call http://<servername>/roller I see the following error
> in the logs:
>
> ERROR 2012-08-21 05:04:58,309 LoadSaltFilter:doFilter - Error loading salt
> java.lang.IllegalStateException: Roller Weblogger has not been bootstrapped
> yet
> at
> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>
> Interestingly the browser *does *serve me the installation configuration
> page, should I be concerned about the salt exception? Any ideas what might
> cause it? From the code it seems that the *webloggerProvider* in *
> WebloggerFactory* must be null but I can't quite see why that would be the
> case.
I suspect there is some sort of database configuration error that is
preventing Roller from starting up. Do you see anything in the logs
that confirms you have a good database connection?
- Dave