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

Sanne Grinovero sanne at hibernate.org
Mon Jan 21 15:53:17 EST 2013


Hi Guillaume,
the archive you're deploying needs to define that it depends on the
OGM module you installed; in the arquillian tests in OGM we do that by
adding an attribute to the Manifest:

https://github.com/hibernate/hibernate-ogm/blob/master/hibernate-ogm-integrationtest/src/test/java/org/hibernate/ogm/test/integration/jbossas7/InfinispanModuleMemberRegistrationIT.java#L48

Also I didn't see in your project where you download and install the
custom OGM module, I assume you're doing that manually? You can
automate that, have a look at the pom of the integration tests.

Cheers,
Sanne

On 22 January 2013 00:20, 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