It's probably my Eclipse configuration. I stopped trying to use a real database
(for testing) and now use a HSQLDB. Works fine for me...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4120305#4120305
Reply to the post :
The unit test passes for me and in continuous integration. How are you running
the test?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119664#4119664
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119664
also try this in components.xml
persistence:managed-persistence-context name=entityManager
| auto-create=true
|
entity-manager-factory=#{myEntityManagerFactory}/
|
| persistence:entity-manager-factory
Well. the error
anonymous wrote : No Persistence provider for EntityManager named dvdDatabase
means that the EntityManagerFacrtory cannot find
the file 'META-INF/persistence.xml' which should be in your classpath.
Bas
View the original post :
I don't know exactly what your asking me.
Where would you normally do it?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118952#4118952
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118952
I just tried the DVDstore example and it fails on the same point in
ProductionUnitTest.
testNG stacktrace:
javax.persistence.PersistenceException: No Persistence provider for
EntityManager named dvdDatabase
| at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89)
I don't know if this helps. but I vaguely recall having to make some changes to
get tests to run inside eclipse via the TestNG plugin (not sure if this is even
what you are trying to do) one of the things I remember having to do was add
the \resources folder to the build path.
View the
How are you putting the datasource into JNDI?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118782#4118782
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118782
___
jboss-user