We have the following persistence.xml
<xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="alertingJPA" transaction-type="JTA">
<non-jta-data-source>java:/newsletterDS</non-jta-data-source>
<class>com.Newsletter</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.use_sql_comments" value="true"/>
<property name="hibernate.generate_statistics" value="true"/>
</properties>
</persistence-unit>
<persistence>
the com.Newsletter is something like this
@Entity
@Table(name="newsletter")
@NamedQuery(name="Newsletter.findAll", query="SELECT n FROM Newsletter n")
public class Newsletter implements Serializable {
private static final long serialVersionUID = 1L;
@Id @GeneratedValue
@Column(name="ID_NEWSLETTER")
private BigInteger idNewsletter;
[...]
Application is deployed correctly but at Runtime we had this Exception
javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity: [Lcom.Newsletter;
CMTTxInterceptor.java:187)
Any hints?