This appears to be a problem with my mappng file. The mapping file is giving the following error:
16:44:09,119 INFO [HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again using client classpath: Repeated column in mapping for class com.ronmar.homepage.hibernate.ContactInfo should be mapped with insert="false" update="false": navigation_sub_id
So here is the mapping file:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class
name="com.ronmar.homepage.hibernate.ContactInfo"
table="contact_info"
>
<composite-id name="propertyName" class="com.ronmar.homepage.hibernate.ContactInfoPK">
<key-property name="navigationSubId" column="navigation_sub_id" type="int"/>
<key-property name="navigationMainId" column="navigation_main_id" type="int"/>
</composite-id>
<property
name="navigationSubId"
type="int"
column="navigation_sub_id"
not-null="true"
length="11"
insert="false" update="false"
/>
<property
name="navigationMainId"
type="int"
column="navigation_main_id"
not-null="true"
length="11"
insert="false" update="false"
/>
<property
name="emailAddress"
type="java.lang.String"
column="email_address"
not-null="true"
length="100"
/>
<property
name="fromLength"
type="int"
column="from_length"
not-null="true"
length="11"
/>
<property
name="subjectLength"
type="int"
column="subject_length"
not-null="true"
length="11"
/>
<property
name="messageLength"
type="int"
column="message_length"
not-null="true"
length="11"
/>
<!-- associations -->
<!-- bi-directional one-to-one association to NavigationSub -->
<many-to-one
name="navigationSub"
class="com.ronmar.homepage.hibernate.NavigationSub"
>
<column name="navigation_sub_id" />
<column name="navigation_main_id" />
</many-to-one>
</class>
</hibernate-mapping>
I am not sure what is wrong with it.