You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Alex Coles <al...@gmail.com> on 2008/11/17 04:42:00 UTC

Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

I am migrating a Roller 4.0 installation from Tomcat to GlassFish v3 Prelude
(b28c, I believe). In so doing so, I came across the following strangeness:
There were errors initializing your configuration:
org.apache.openjpa.lib.util.ParseException: Instantiation of plugin
"QueryCompilationCache" with value "true" caused an error
"java.lang.IllegalArgumentException: java.lang.ClassNotFoundException:
org.apache.openjpa.util.CacheMap". The alias or class name may have been
misspelled (as it closely matches the valid plugin alias "true"), or the
class may not be available in the class path.  Valid aliases for this plugin
are: [all, false, true]
        at
org.apache.openjpa.lib.conf.Configurations.getCreateException(Configurations.java:341)
...
Caused by: java.lang.IllegalArgumentException:
java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap

For the full log output see: http://gist.github.com/25652


I tried disabling all plugins, custom settings, and using a barebones setup.
Actually, I stole the barebones roller-custom.properties from the following
site:
http://number9.hellooperator.net/articles/2008/05/20/roller-4-on-glassfish-v3

I only got Roller + GlassFish working together, by adding the following JPA
configuration to my roller-custom.properties:
openjpa.QueryCompilationCache=false

I've fixed it, and it works, but the problem is, I am not 100% sure why it
works!
Does this look like a bug in Roller? GlassFish? Anyone who could shed some
light on this?
I also need to understand the implications of turning off
OpenJPA's QueryCompilationCache.

Thanks

Alex

Roller 4.0 + GlassFish v3 Prelude

Posted by Matthew Moore <sk...@gmail.com>.
I have been trying to move from tomcat to glassfish, but I get a  
database has not been initialized error. I am using oracle 10g. I am  
pointing to the same data base that works with 4.0 + tomcat.

Matthew

Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE:org.apache.openjpa.util.CacheMap)

Posted by Alfonso Romero <ib...@prodigy.net.mx>.
There's a Roller bundle with Tomcat and MySQL at 
http://bitnami.org/stack/roller

You can use the native installer on Linux, Windows and Mac, and there's also 
a virtual machine image if you want to use VMware or VirtualBox.

Haven't tried it out yet, but hope to do it soon.

Regards,

Alfonso


----- Original Message ----- 
From: "Dave" <sn...@gmail.com>
To: <us...@roller.apache.org>
Sent: Sunday, December 20, 2009 12:43 PM
Subject: Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness 
(CNFE:org.apache.openjpa.util.CacheMap)


> On Sun, Dec 20, 2009 at 11:32 AM, Frans Thamura <fr...@meruvian.org> 
> wrote:
>> any idea to release bundled with glassfish and tomcat
>>
>> so we just extract and run
>
> I think a bundle with Tomcat or Jetty would be nice, but I don't any 
> plans.
>
> - Dave 


Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Dave <sn...@gmail.com>.
On Sun, Dec 20, 2009 at 11:32 AM, Frans Thamura <fr...@meruvian.org> wrote:
> any idea to release bundled with glassfish and tomcat
>
> so we just extract and run

I think a bundle with Tomcat or Jetty would be nice, but I don't any plans.

- Dave

Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Frans Thamura <fr...@meruvian.org>.
any idea to release bundled with glassfish and tomcat

so we just extract and run

F


On Sun, Dec 20, 2009 at 8:33 PM, David Johnson <sn...@gmail.com> wrote:

> Yes, we have upgraded to OpenJPA 1.2 in the Roller trunk.
>
> - Dave
>
>
> On Dec 19, 2009, at 6:51 PM, Michael Bien wrote:
>
> >
> >
> > Dave-401 wrote:
> >>
> >> On Mon, Nov 17, 2008 at 10:56 PM, Alex Coles <al...@gmail.com>
> wrote:
> >>> I think I read (perhaps it was in JIRA, or perhaps on here) that the
> >>> work to upgrade to OpenJPA 1.x is non-trivial? Its more than dropping
> >>> in the JAR? (I am talking about creating a custom build from source)
> >>
> >> Yes, unfortunately it is non-trivial. Upgrading to 1.x triggers dozens
> >> of test failures. I worked through a hand-full of them a couple of
> >> months back, before my current project heated up.
> >>
> >> - Dave
> >>
> >>
> > any news regarding this issue? (I ran into the same CNFE with GlassFish
> v3
> > final)
> > --
> > View this message in context:
> http://old.nabble.com/Roller-4.0-%2B-GlassFish-v3-Prelude%3A-OpenJPA-strangeness-%28CNFE%3A-org.apache.openjpa.util.CacheMap%29-tp20533394s12275p26859755.html
> > Sent from the Roller - User mailing list archive at Nabble.com.
> >
>
>

Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by David Johnson <sn...@gmail.com>.
Yes, we have upgraded to OpenJPA 1.2 in the Roller trunk.

- Dave


On Dec 19, 2009, at 6:51 PM, Michael Bien wrote:

> 
> 
> Dave-401 wrote:
>> 
>> On Mon, Nov 17, 2008 at 10:56 PM, Alex Coles <al...@gmail.com> wrote:
>>> I think I read (perhaps it was in JIRA, or perhaps on here) that the
>>> work to upgrade to OpenJPA 1.x is non-trivial? Its more than dropping
>>> in the JAR? (I am talking about creating a custom build from source)
>> 
>> Yes, unfortunately it is non-trivial. Upgrading to 1.x triggers dozens
>> of test failures. I worked through a hand-full of them a couple of
>> months back, before my current project heated up.
>> 
>> - Dave
>> 
>> 
> any news regarding this issue? (I ran into the same CNFE with GlassFish v3
> final)
> -- 
> View this message in context: http://old.nabble.com/Roller-4.0-%2B-GlassFish-v3-Prelude%3A-OpenJPA-strangeness-%28CNFE%3A-org.apache.openjpa.util.CacheMap%29-tp20533394s12275p26859755.html
> Sent from the Roller - User mailing list archive at Nabble.com.
> 


Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Michael Bien <mb...@fh-landshut.de>.

Dave-401 wrote:
> 
> On Mon, Nov 17, 2008 at 10:56 PM, Alex Coles <al...@gmail.com> wrote:
>> I think I read (perhaps it was in JIRA, or perhaps on here) that the
>> work to upgrade to OpenJPA 1.x is non-trivial? Its more than dropping
>> in the JAR? (I am talking about creating a custom build from source)
> 
> Yes, unfortunately it is non-trivial. Upgrading to 1.x triggers dozens
> of test failures. I worked through a hand-full of them a couple of
> months back, before my current project heated up.
> 
> - Dave
> 
> 
any news regarding this issue? (I ran into the same CNFE with GlassFish v3
final)
-- 
View this message in context: http://old.nabble.com/Roller-4.0-%2B-GlassFish-v3-Prelude%3A-OpenJPA-strangeness-%28CNFE%3A-org.apache.openjpa.util.CacheMap%29-tp20533394s12275p26859755.html
Sent from the Roller - User mailing list archive at Nabble.com.


Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Dave <sn...@gmail.com>.
On Mon, Nov 17, 2008 at 10:56 PM, Alex Coles <al...@gmail.com> wrote:
> I think I read (perhaps it was in JIRA, or perhaps on here) that the
> work to upgrade to OpenJPA 1.x is non-trivial? Its more than dropping
> in the JAR? (I am talking about creating a custom build from source)

Yes, unfortunately it is non-trivial. Upgrading to 1.x triggers dozens
of test failures. I worked through a hand-full of them a couple of
months back, before my current project heated up.

- Dave

Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Alex Coles <al...@gmail.com>.
On Tue, Nov 18, 2008 at 4:32 AM, Dave <sn...@gmail.com> wrote:

>> I only got Roller + GlassFish working together, by adding the following JPA
>> configuration to my roller-custom.properties:
>> openjpa.QueryCompilationCache=false
>
> How did you figure that one out?

Well I knew it was possible that JPA configuration defined in
roller-custom.properties will override what's in JPAEMF.properties -
and the rest of it was just a lucky guess (that happened to worked
first time around). I Googled for the existence of
"QueryCompilationCache" and setting it to false did the trick.

>> I've fixed it, and it works, but the problem is, I am not 100% sure why it
>> works! Does this look like a bug in Roller? GlassFish? Anyone who could shed some
>> light on this? I also need to understand the implications of turning off
>> OpenJPA's QueryCompilationCache.
>
> I'm not sure what problem is, but it looks like some sort of
> classloader craziness that could burn some hours to investigate. It's
> possible that the problem does not exist in OpenJPA 1.x --
> unfortunately, Roller is still using OpenJPA 0.97.

Yep, its certainly one of those classloader-type issues that could
take up far too much time (that I don't really have at the moment).

I think I read (perhaps it was in JIRA, or perhaps on here) that the
work to upgrade to OpenJPA 1.x is non-trivial? Its more than dropping
in the JAR? (I am talking about creating a custom build from source)

> And I'm not sure what the performance implications of turning off the
> query compilation cache. It's probably a bad thing, but I don't know
> how much of a performance hit you'd take.

Thanks. I haven't begun work to evaluate performance (there are a
dozen or so other options that I also need to tweak, such as caching
settings), but I'll post if it turns out to be a huge performance
problem.

For now, should I ticket this in JIRA?

Re: Roller 4.0 + GlassFish v3 Prelude: OpenJPA strangeness (CNFE: org.apache.openjpa.util.CacheMap)

Posted by Dave <sn...@gmail.com>.
On Sun, Nov 16, 2008 at 10:42 PM, Alex Coles <al...@gmail.com> wrote:
> I am migrating a Roller 4.0 installation from Tomcat to GlassFish v3 Prelude
> (b28c, I believe). In so doing so, I came across the following strangeness:
> There were errors initializing your configuration:
> org.apache.openjpa.lib.util.ParseException: Instantiation of plugin
> "QueryCompilationCache" with value "true" caused an error
> "java.lang.IllegalArgumentException: java.lang.ClassNotFoundException:
> org.apache.openjpa.util.CacheMap". The alias or class name may have been
> misspelled (as it closely matches the valid plugin alias "true"), or the
> class may not be available in the class path.  Valid aliases for this plugin
> are: [all, false, true]
>        at
> org.apache.openjpa.lib.conf.Configurations.getCreateException(Configurations.java:341)
> ...
> Caused by: java.lang.IllegalArgumentException:
> java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap
>
> For the full log output see: http://gist.github.com/25652
>
> I tried disabling all plugins, custom settings, and using a barebones setup.
> Actually, I stole the barebones roller-custom.properties from the following
> site:
> http://number9.hellooperator.net/articles/2008/05/20/roller-4-on-glassfish-v3
>
> I only got Roller + GlassFish working together, by adding the following JPA
> configuration to my roller-custom.properties:
> openjpa.QueryCompilationCache=false

How did you figure that one out?


> I've fixed it, and it works, but the problem is, I am not 100% sure why it
> works! Does this look like a bug in Roller? GlassFish? Anyone who could shed some
> light on this? I also need to understand the implications of turning off
> OpenJPA's QueryCompilationCache.

I'm not sure what problem is, but it looks like some sort of
classloader craziness that could burn some hours to investigate. It's
possible that the problem does not exist in OpenJPA 1.x --
unfortunately, Roller is still using OpenJPA 0.97.

And I'm not sure what the performance implications of turning off the
query compilation cache. It's probably a bad thing, but I don't know
how much of a performance hit you'd take.

Sorry I can't be of more help here.

- Dave