我没有尝试使用mongodb来计算如何在Jboss上运行简单测试... 我按照本教程: https://developer.jboss.org/wiki/GettingStartedWithJDOOnJbossAS7InSevenSteps 但是这个例子使用了一个SQL(oracle)而不是mongodb,所以我试图找到一种方法来做,但没有... 有人可以帮我解决如何在Jboss或tomcat上安装datanucleus,如果使用mongodb更容易吗?
我从jboss那里得到关于PU的错误:
jboss.persistenceunit."DN.war#Profiles":
javax.persistence.PersistenceException: [PersistenceUnit: Profiles]
Unable to build EntityManagerFactory
...Caused by: javax.persistence.PersistenceException: [PersistenceUnit: Profiles] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
...Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
似乎它假设这是一个休眠项目......
如果有人可以帮我解决如何设置persistence.xml以在网络服务器上使用mongodb的问题,我将非常感激。
非常感谢您提前。