That JRE may be installed on the machine, but it doesn't look like that's 
what's running roller. If the 'emptySet' method is missing on 
'java.util.Collections', then it's a JRE with a class library that's at Java 
1.4.2 level. The 'emptySet' method was added in Java 5.

I'm guessing that what's running roller is GCJ, as you mentioned libgcj.so and 
it's in your stack. I presume you're running on some sort of Linux distro. You 
need to configure whatever web container you're using to pick up the Sun JRE. 
Right now it's picking up the default 'java' executable, which is backed by GCJ 
(read: not a Sun JRE at all). If you're using tomcat, then do a 'export 
JAVA_HOME=/path/to/sun/jre' and then run the 'startup.sh'; this will then 
launch tomcat via the correct JRE.

-Nathan

-----Original Message-----
From: Timothy Mizas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 12:32 PM
To: [email protected]
Subject: RE: Oracle configuration problem

I've been told that Sun java is what's installed on the server I'm using. java 
-version gives me:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

I don't see why I'm getting this error, which appears to the the root cause.

Caused by: java.lang.NoSuchMethodError: method java.util.Collections.emptySet 
with signature ()Ljava.util.Set; was not found.
   at com.google.inject.spi.SourceProviders.<clinit>(SourceProviders.java:37)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at com.google.inject.BinderImpl.<clinit>(BinderImpl.java:54)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at com.google.inject.Guice.createInjector(Guice.java:75)
   at com.google.inject.Guice.createInjector(Guice.java:53)
   at com.google.inject.Guice.createInjector(Guice.java:43)
   at 
org.apache.roller.weblogger.business.GuiceWebloggerProvider.<init>(GuiceWebloggerProvider.java:53)

Also, what should the libgcj.so be?

-Tim
________________________________________
From: Dave [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2008 10:47 AM
To: [email protected]
Subject: Re: Oracle configuration problem

On Tue, May 27, 2008 at 10:20 AM, Timothy Mizas
<[EMAIL PROTECTED]> wrote:
> Well, I've been able to get my test app to connect to the roller database and 
> query from the table. Now roller.log is giving me:
>
> FATAL 2008-05-27 10:39:29,658 RollerContext:contextInitialized - Roller 
> Weblogger bootstrap failed
> org.apache.roller.weblogger.business.BootstrapException: Error instantiating 
> default provider: org.apache.roller.weblogger.business.GuiceWebloggerProvider
> ...
> --- ROOT CAUSE ---
> java.lang.RuntimeException: Error instantiating backend module 
> org.apache.roller.weblogger.business.jpa.JPAWebloggerModule
>   at 
> org.apache.roller.weblogger.business.GuiceWebloggerProvider.<init>(GuiceWebloggerProvider.java:56)
>   at java.lang.Class.newInstance(libgcj.so.7rh)

That libgcj.so reference indicates that you are not using Sun Java and
that is probably the problem. Install Java SE 5 JDK, make sure it's
first in path and try again.

- Dave

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

Reply via email to