-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Persistence provider for EntityManager named cassandra-pu #639
Comments
Can you share a sample app to help me debug the issue and resolve the same ? Chhavi |
@chhavigangwal |
@chhavigangwal I created another war project test_2, its persistence.xml is like this. I can deploy test_2.war to jboss server and run successfully. entitymanager is initialized through @CassandraDatabase public KunderaEntityManagerCDI(){
Then I created EAR project test and include project test_1 and test_2. test.ear can be deployed to jboss server ok but when I open pages, it got the above errors. |
I am trying to replicate the same scenario at my end, if possible please share your app by creating a repo over github or email it on [email protected] Chhavi |
@chhavigangwal |
Your issue seems to be related to setting classpath in Maifest. Take a look at the relevant thread. https://groups.google.com/forum/#!msg/kundera-discuss/3-iUJQOShvE/kJihv32IbjYJ I will have a look into your project and update you on same. Chhavi |
@chhavigangwal
|
Mailed you the working version of ear deployment. Please verify and let me know. Chhavi |
The same deployment works with wildfly 8.1. Closing this one as the same will be resolved with #534 . Chhavi |
Hello!
I am using Kundera 2.13 on an dynamic web application to access cassandra database and everything works fine. I created EntityManagerFactory and EntityManager to handle entity bean CRUD.
this.emf = Persistence.createEntityManagerFactory("cassandra-pu");
EntityManager cem=emf.createEntityManager();
However, after I combine separate web components into EAR package, EntityManagerFactory and EntityManager do not work. Each war package inside EAR has its own persistence.xml and EntityManagerFactory, EntityManager Injection. The error message is:
ERROR [com.impetus.kundera.configure.PersistenceUnitConfiguration](default task-5) Unconfigured persistence unit: cassandra-pu please validate with persistence.xml
ERROR [com.impetus.kundera.KunderaPersistence](default task-5) EntityManagerFactory not created, returning null.
ERROR [org.jboss.as.ejb3.invocation](default task-5) JBAS014134: EJB Invocation failed on component TagManagementBean for method public abstract java.util.List com.sial.enotebook.ejb.TagManagementBeanLocal.viewAll(): javax.ejb.EJBException: javax.persistence.PersistenceException: No Persistence provider for EntityManager named cassandra-pu
.....
Please help and any ideas?
Thanks and best regards,
The text was updated successfully, but these errors were encountered: