Hello,
I created the following hibernate.cfg.xml file and placed it in the jboss deploy/ folder.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/houseware</property>
<property name="hibernate.connection.username">admin</property>
<property name="hibernate.connection.password">xxx</property>
<listener type="post-insert" class="org.hibernate.search.event.FullTextIndexEventListener"/>
<listener type="post-update" class="org.hibernate.search.event.FullTextIndexEventListener"/>
<listener type="post-delete" class="org.hibernate.search.event.FullTextIndexEventListener"/>
</session-factory>
</hibernate-configuration>
Here is the errors I am getting:
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:ear=HousewareEnterpriseApplication.ear,jar=HousewareEnterpriseApplication-ejb.jar,name=ProductImagesFacade,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=HousewareEnterpriseApplication.ear/HousewareEnterpriseApplication-ejb.jar#HousewareEnterpriseApplication-ejbPU' **
and here is my persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" 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/ ... ce_2_0.xsd">
<persistence-unit name="HousewareEnterpriseApplication-ejbPU" transaction-type="JTA">
<jta-data-source>java:/Houseware</jta-data-source>
<properties/
</persistence-uni
</persistence>
Any suggestion to resolve this error would be very appreciated.
Thanks
Sam