Hi !!
I have an exception when I want to use Hibernate :
Code:
17:22:54,828 INFO [Configuration] Mapping resource: org/jboss/nukes/core/themes/essaiThemeHibernate/Style.hbm.xml
17:22:54,843 INFO [STDOUT] *** Exception : net.sf.hibernate.MappingException: Resource: org/jboss/nukes/core/themes/essaiThemeHibernate/Style.hbm.xml not found***
But I don't understand because there is the code of my Jboss Service XML file :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=NukesDS</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">mappings/Style.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/NukesDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
</mbean>
and my mapping file
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="org.jboss.nukes.core.themes.essaiThemeHibernate.Style" table="nuke_style">
<id name="style_id" type="string" unsaved-value="null" >
<column name="style_id" sql-type="varchar(50)" not-null="true"/>
<!-- <id name="style_id" column="style_id" type="integer" length="11" unsaved-value="null"> -->
<generator class="uuid.hex"/>
</id>
<property name="style_nom" column="style_nom" type="string" length="50" not-null="false"/>
<property name="color" column="color" type="string" length="50" not-null="false"/>
<property name="font_family" column="font_family" type="string" length="50" not-null="false"/>
<property name="font_size" column="font_size" type="string" length="50" not-null="false"/>
<property name="font_style" column="font_style" type="string" length="50" not-null="false"/>
<property name="font_variant" column="font_variant" type="string" length="50" not-null="false"/>
<property name="font_weight" column="font_weight" type="string" length="50" not-null="false"/>
<property name="text_decoration" column="text_decoration" type="string" length="50" not-null="false"/>
<property name="text_align" column="text_align" type="string" length="50" not-null="false"/>
<property name="letter_spacing" column="letter_spacing" type="string" length="50" not-null="false"/>
</class>
</hibernate-mapping>
Someone can help me to understand??
Thanks a lot !!