[hibernate-dev] OGM (mongodb) on AS 7.1 with Arquillian

jonathan wood jonathanshawwood at gmail.com
Mon Jan 21 15:54:48 EST 2013


Sorry, forgot to copy the list on the original reply...my apologies if you
get this twice.

This error usually indicates a version mismatch.  You likely need to update
the hibernate orm module's jar files. An (older) discussion of this can be
found here:

https://community.jboss.org/thread/195105


On Mon, Jan 21, 2013 at 1:50 PM, Guillaume SCHEIBEL <
guillaume.scheibel at gmail.com> wrote:

> Hello,
>
> I want to deploy an OGM (mongodb of course) app on AS 7.1 with Arquillian
> for a demo (at ElsassJUG).
> I have installed OGM and OGM-monogdb as a module based on the ehcache
> module (btw, I'll have to create the mongodb part).
>
> But when I deploy the app, I have the following error:
> Caused by: javax.naming.NameNotFoundException: ---PlaceHolderDSForOGM--- --
> service jboss.naming.context.java.---PlaceHolderDSForOGM---
>
> Based on the sources, I found this:
>
> //we use a placeholder DS to make sure, Hibernate EntityManager
> (Ejb3Configuration) does not enforce a different connection provider
> map.put( Environment.DATASOURCE, "---PlaceHolderDSForOGM---" );
>
> The point is I don't know how to avoid this exception.
>
> The current version of the project is here:
> https://github.com/gscheibel/OgmAtElsassJUG
>
> The ogm-mongodb module file is here:
> https://gist.github.com/4588287
>
> The main ogm module file is here:
> https://gist.github.com/4588301
>
> Any thoughts ?
> Thanks
> Guillaume
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list