码迷,mamicode.com
首页 > 其他好文 > 详细

Persistence provider caller does not implement the EJB3 spec correctly. Pers

时间:2015-03-13 16:45:21      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:ejb

Persistence provider caller does not implement the EJB3 spec correctly. 实体bean发布出现的问题,将persistence.xml改为

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
    
<persistence-unit name="ejbjpa2" transaction-type="JTA">
  <jta-data-source>java:/MySqlDS</jta-data-source>
  <properties>
  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
  </properties>
</persistence-unit>
  
</persistence>即可

Persistence provider caller does not implement the EJB3 spec correctly. Pers

标签:ejb

原文地址:http://blog.csdn.net/u013998070/article/details/44241019

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!