Re: JPA PersistenceUnit - persistence.xml not being picked up

2014-03-06 Thread Ove Ranheim
Thanks John! I guess this a good start: Persistence.createEntityManagerFactory("primary"); I usually use Wildfly, so bootstrapping is not something i do very often. Sorry for the silly question. On 06 Mar 2014, at 20:14, John D. Ament wrote: > Well, I mean, @PersistenceContext/@PersistenceUni

Re: JPA PersistenceUnit - persistence.xml not being picked up

2014-03-06 Thread John D. Ament
Well, I mean, @PersistenceContext/@PersistenceUnit are only enabled in EJB spec. You'll need to bootstrap in an SE type env, AFAIK. On Thu, Mar 6, 2014 at 1:15 PM, Ove Ranheim wrote: > This is standalone with arquillian-weld-ee-embedded-1.1. > > The arquillian war file is listed below. > > On 06

Re: JPA PersistenceUnit - persistence.xml not being picked up

2014-03-06 Thread Ove Ranheim
This is standalone with arquillian-weld-ee-embedded-1.1. The arquillian war file is listed below. On 06 Mar 2014, at 19:11, John D. Ament wrote: > Looks like your issue is more JBoss related. Is this WildFly? > > Can you show the output of your WAR file in your test? > > On Thu, Mar 6, 2014

Re: JPA PersistenceUnit - persistence.xml not being picked up

2014-03-06 Thread John D. Ament
Looks like your issue is more JBoss related. Is this WildFly? Can you show the output of your WAR file in your test? On Thu, Mar 6, 2014 at 1:02 PM, Ove Ranheim wrote: > Hi, > > I'm trying out DeltaSpike JPA, but my persistence.xml is not being picked up. > I tried to place persistene.xml unde

JPA PersistenceUnit - persistence.xml not being picked up

2014-03-06 Thread Ove Ranheim
Hi, I'm trying out DeltaSpike JPA, but my persistence.xml is not being picked up. I tried to place persistene.xml under META-INF and WEB-INF/classes/META-INF/. TransactionalInterceptor is configured in beans.xml. Here are my files. war-listing: 210031 03-