-
2 votesanswersviews
JBOSS 7.1.1 javax.persistence.PersistenceException未找到'org.apache.openjpa.persistence.PersistenceProviderImpl中的PersistenceProvider
我是JBOSS的新手,并坚持在JBOSS 7.1.1中基本部署应用程序 我用persistent.xml创建了一个webapp <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun... -
0 votesanswersviews
JBoss7.1.0:在子部署中找不到名为null的持久性单元
我有一个包含3个模块的项目:factory-ear,factory-ejb和factory-web . 它使用ejb.jar和web.war部署到JBoss7作为EAR . 当我试图在我的EJB类中获取EntityManager时 @PersistenceContext(unitName = "manager1") private EntityManager em; 我收到错... -
0 votesanswersviews
无法使用persistence.xml和hibernate ogm 4.1.1将MongoDB从本地计算机连接到Openshift
我正在努力将我在本地机器上运行的jboss连接到Openshift中的MongoDB数据库 . 它使用本地数据库(localhost:27017)工作正常 . 我的persistence.xml: <?xml version="1.0" encoding="utf-8"?> <persistence xmlns="http://j... -
0 votesanswersviews
JPA:配置持久性提供程序
我得到了一个用maven创建的简单java项目(quickstart archetype) 我正在尝试为drools会话配置JPA持久性(代码来自drools文档) 我在我的pom.xml中添加了drools-persistence-jpa,Bitronix Transaction Manager和com.h2database依赖项 我在Eclipse项目的“src / META-... -
15 votesanswersviews
Eclipse - 如何修复错误“在项目中找不到persistence.xml文件”JPA问题
在Eclipse中出现“在项目中找不到persistence.xml文件”错误 . 目标:创建一个新项目GWT App引擎Maven 创建此步骤的步骤: 谷歌eclipse插件:选择"New Web Application Project" . 设置名称等 右键单击项目>配置>转换为Maven ... 修复jdoconfig.xml文件:xsi的值不... -
2 votesanswersviews
创建没有persistence.xml的Entity Manager Factory
有没有办法创建 EntityManagerFactory without a persistence unit defined ?您能否提供创建实体经理工厂所需的所有属性?我需要在运行时从用户的指定值创建EntityManagerFactory . 更新persistence.xml并重新编译不是一个选项 . 目前我正在使用 eclipselink dynamic persistence 所以我需... -
1 votesanswersviews
Spring Boot JPA Hibernate persistence.xml Not Inserting
我遇到插件无法正常工作的问题 . 读取(选择)工作正常 . 但是,在@Transactional方法结束时没有执行插入 . 即使我确实看到在实体管理器上调用事务提交/关闭 . 我尝试了不同的配置,但仍然无法在事务结束时获取记录(插入) . 我没有看到任何错误产生 . 我启用了hibernate.transaction DEBUG,我没有看到任何hibernate事务消息 . 我正在使用Tomcat...