-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Har + Hibernate3 + Jboss error
PostPosted: Tue May 03, 2005 10:45 am 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
I am trying to deploy my Hibernate 3 files as a har file in JBoss 4.0.1 but I keep getting an error on my UserTypes. The class files are all in the har file so I don't know what I am missing.
The only thing that I have been able to notice is that the Har Deployer that jboss is using is for hibernate 2.1.6

Does the latest Jboss 4.0.2 correct this?

My har jar file is as so...
/com/relevant/util/dao/
Customer.class
.....
/util/hibernate/StringType.class
/IntegerType.class
/mappings/
Customer.hbm.xml
...
/meta-inf/hibernate-service.xml

Thank you,
David

Hibernate version: 3.0.2

Mapping documents:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
   
<hibernate-mapping>
<!--
    Created by the Middlegen Hibernate plugin 2.1

    http://boss.bekk.no/boss/middlegen/
    http://www.hibernate.org/
-->

<class
    name="com.relevant.util.dao.Customer"
    table="cus"
>
    <meta attribute="class-description" inherit="false">
       @hibernate.class
        table="cus"
    </meta>

    <composite-id>
        <meta attribute="field-description" inherit="false">
           @hibernate.id
            generator-class="assigned"
        </meta>
        <key-property
            name="cusCno"
            column="cus_cno"
            type="java.lang.Short"
            length="5"
        >
            <meta attribute="field-description">
               @hibernate.property
                column="cus_cno"
            </meta>
        </key-property>
        <key-property
            name="cusCust"
            column="cus_cust"
            type="java.lang.String"
            length="9"
        >
            <meta attribute="field-description">
               @hibernate.property
                column="cus_cust"
            </meta>
        </key-property>
        <key-property
            name="cusSite"
            column="cus_site"
            type="java.lang.String"
            length="2"
        >
            <meta attribute="field-description">
               @hibernate.property
                column="cus_site"
            </meta>
        </key-property>
    </composite-id>   

    <property
        name="cusName"
        type="java.lang.String"
        column="cus_name"
        not-null="true"
        length="25"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_name"
            length="25"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusSrtname"
        type="java.lang.String"
        column="cus_srtname"
        not-null="true"
        length="8"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_srtname"
            length="8"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusMsgno"
        type="int"
        column="cus_msgno"
        not-null="true"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_msgno"
            length="10"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusCclass"
        type="java.lang.String"
        column="cus_cclass"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_cclass"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusSres"
        type="java.lang.String"
        column="cus_sres"
        not-null="true"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_sres"
            length="3"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusResp"
        type="java.lang.String"
        column="cus_resp"
        not-null="true"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_resp"
            length="3"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusFob"
        type="java.lang.String"
        column="cus_fob"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_fob"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusCarier"
        type="java.lang.String"
        column="cus_carier"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_carier"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusFtype"
        type="java.lang.String"
        column="cus_ftype"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_ftype"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusPrclvlovr"
        type="short"
        column="cus_prclvlovr"
        not-null="true"
        length="5"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_prclvlovr"
            length="5"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusTrnstme"
        type="long"
        column="cus_trnstme"
        not-null="true"
        length="16"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_trnstme"
            length="16"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusAcknwfg"
        type="java.lang.String"
        column="cus_acknwfg"
        not-null="true"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_acknwfg"
            length="1"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusPartship"
        type="java.lang.String"
        column="cus_partship"
        not-null="true"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_partship"
            length="1"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusBuyercnct"
        type="java.lang.String"
        column="cus_buyercnct"
        not-null="true"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_buyercnct"
            length="30"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusByareacd"
        type="long"
        column="cus_byareacd"
        not-null="true"
        length="16"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_byareacd"
            length="16"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusByphone"
        type="long"
        column="cus_byphone"
        not-null="true"
        length="16"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_byphone"
            length="16"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusPhfill"
        type="java.lang.String"
        column="cus_phfill"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_phfill"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusRegion"
        type="java.lang.String"
        column="cus_region"
        not-null="true"
        length="2"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_region"
            length="2"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusLmdte"
        type="java.sql.Timestamp"
        column="cus_lmdte"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_lmdte"
            length="23"
        </meta>   
    </property>
    <property
        name="cusSic"
        type="java.lang.String"
        column="cus_sic"
        not-null="true"
        length="4"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_sic"
            length="4"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusSres2"
        type="java.lang.String"
        column="cus_sres2"
        not-null="true"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_sres2"
            length="3"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusSres3"
        type="java.lang.String"
        column="cus_sres3"
        not-null="true"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_sres3"
            length="3"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusComm"
        type="java.math.BigDecimal"
        column="cus_comm"
        not-null="true"
        length="18"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_comm"
            length="18"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusComm2"
        type="java.math.BigDecimal"
        column="cus_comm2"
        not-null="true"
        length="18"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_comm2"
            length="18"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusComm3"
        type="java.math.BigDecimal"
        column="cus_comm3"
        not-null="true"
        length="18"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_comm3"
            length="18"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusFax"
        type="java.lang.String"
        column="cus_fax"
        not-null="true"
        length="12"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_fax"
            length="12"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusLowprc"
        type="java.lang.String"
        column="cus_lowprc"
        not-null="true"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_lowprc"
            length="1"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusDspmsg"
        type="java.lang.String"
        column="cus_dspmsg"
        not-null="true"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_dspmsg"
            length="1"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusFiller"
        type="java.lang.String"
        column="cus_filler"
        not-null="true"
        length="44"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_filler"
            length="44"
            not-null="true"
        </meta>   
    </property>
    <property
        name="cusDfltprojno"
        type="java.lang.String"
        column="cus_dfltprojno"
        length="6"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_dfltprojno"
            length="6"
        </meta>   
    </property>
    <property
        name="cusEmail"
        type="java.lang.String"
        column="cus_email"
        length="50"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_email"
            length="50"
        </meta>   
    </property>
    <property
        name="cusDate1"
        type="java.sql.Timestamp"
        column="cus_date1"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date1"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate2"
        type="java.sql.Timestamp"
        column="cus_date2"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date2"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate3"
        type="java.sql.Timestamp"
        column="cus_date3"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date3"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate4"
        type="java.sql.Timestamp"
        column="cus_date4"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date4"
            length="23"
        </meta>   
    </property>
    <property
        name="cusRep1"
        type="java.lang.String"
        column="cus_rep1"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_rep1"
            length="3"
        </meta>   
    </property>
    <property
        name="cusRep2"
        type="java.lang.String"
        column="cus_rep2"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_rep2"
            length="3"
        </meta>   
    </property>
    <property
        name="cusRep3"
        type="java.lang.String"
        column="cus_rep3"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_rep3"
            length="3"
        </meta>   
    </property>
    <property
        name="cusRep4"
        type="java.lang.String"
        column="cus_rep4"
        length="3"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_rep4"
            length="3"
        </meta>   
    </property>
    <property
        name="cusQty1"
        type="java.lang.Integer"
        column="cus_qty1"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_qty1"
            length="10"
        </meta>   
    </property>
    <property
        name="cusQty2"
        type="java.lang.Integer"
        column="cus_qty2"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_qty2"
            length="10"
        </meta>   
    </property>
    <property
        name="cusQty3"
        type="java.lang.Integer"
        column="cus_qty3"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_qty3"
            length="10"
        </meta>   
    </property>
    <property
        name="cusQty4"
        type="java.lang.Integer"
        column="cus_qty4"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_qty4"
            length="10"
        </meta>   
    </property>
    <property
        name="cusFlag1"
        type="java.lang.String"
        column="cus_flag1"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_flag1"
            length="1"
        </meta>   
    </property>
    <property
        name="cusFlag2"
        type="java.lang.String"
        column="cus_flag2"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_flag2"
            length="1"
        </meta>   
    </property>
    <property
        name="cusFlag3"
        type="java.lang.String"
        column="cus_flag3"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_flag3"
            length="1"
        </meta>   
    </property>
    <property
        name="cusFlag4"
        type="java.lang.String"
        column="cus_flag4"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_flag4"
            length="1"
        </meta>   
    </property>
    <property
        name="cusDesc1"
        type="java.lang.String"
        column="cus_desc1"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc1"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc2"
        type="java.lang.String"
        column="cus_desc2"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc2"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc3"
        type="java.lang.String"
        column="cus_desc3"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc3"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc4"
        type="java.lang.String"
        column="cus_desc4"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc4"
            length="30"
        </meta>   
    </property>
    <property
        name="cusOppdpcnt"
        type="java.math.BigDecimal"
        column="cus_oppdpcnt"
        length="5"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_oppdpcnt"
            length="5"
        </meta>   
    </property>
    <property
        name="cusCompcat"
        type="java.lang.String"
        column="cus_compcat"
        length="8"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_compcat"
            length="8"
        </meta>   
    </property>
    <property
        name="cusProdcat"
        type="java.lang.String"
        column="cus_prodcat"
        length="8"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_prodcat"
            length="8"
        </meta>   
    </property>
    <property
        name="cusDate5"
        type="java.sql.Timestamp"
        column="cus_date5"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date5"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate6"
        type="java.sql.Timestamp"
        column="cus_date6"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date6"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate7"
        type="java.sql.Timestamp"
        column="cus_date7"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date7"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDate8"
        type="java.sql.Timestamp"
        column="cus_date8"
        length="23"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_date8"
            length="23"
        </meta>   
    </property>
    <property
        name="cusDesc5"
        type="java.lang.String"
        column="cus_desc5"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc5"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc6"
        type="java.lang.String"
        column="cus_desc6"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc6"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc7"
        type="java.lang.String"
        column="cus_desc7"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc7"
            length="30"
        </meta>   
    </property>
    <property
        name="cusDesc8"
        type="java.lang.String"
        column="cus_desc8"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_desc8"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebaddress"
        type="java.lang.String"
        column="cus_webaddress"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webaddress"
            length="30"
        </meta>   
    </property>
    <property
        name="cusNaics1"
        type="java.lang.String"
        column="cus_naics1"
        length="6"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_naics1"
            length="6"
        </meta>   
    </property>
    <property
        name="cusNaics2"
        type="java.lang.String"
        column="cus_naics2"
        length="6"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_naics2"
            length="6"
        </meta>   
    </property>
    <property
        name="cusByext"
        type="java.lang.Short"
        column="cus_byext"
        length="5"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_byext"
            length="5"
        </meta>   
    </property>
    <property
        name="cusContact"
        type="java.lang.String"
        column="cus_contact"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_contact"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebid"
        type="java.lang.String"
        column="cus_webid"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webid"
            length="10"
        </meta>   
    </property>
    <property
        name="cusWebpass"
        type="java.lang.String"
        column="cus_webpass"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webpass"
            length="10"
        </meta>   
    </property>
    <property
        name="cusNumemployee"
        type="java.lang.Integer"
        column="cus_numemployee"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_numemployee"
            length="10"
        </meta>   
    </property>
    <property
        name="cusAnnualrev"
        type="java.lang.Integer"
        column="cus_annualrev"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_annualrev"
            length="10"
        </meta>   
    </property>
    <property
        name="cusWeballowflag"
        type="java.lang.String"
        column="cus_weballowflag"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_weballowflag"
            length="1"
        </meta>   
    </property>
    <property
        name="cusWebname"
        type="java.lang.String"
        column="cus_webname"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webname"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebcontact"
        type="java.lang.String"
        column="cus_webcontact"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webcontact"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebphone"
        type="java.lang.String"
        column="cus_webphone"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webphone"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebemail"
        type="java.lang.String"
        column="cus_webemail"
        length="50"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webemail"
            length="50"
        </meta>   
    </property>
    <property
        name="cusWebfax"
        type="java.lang.String"
        column="cus_webfax"
        length="30"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webfax"
            length="30"
        </meta>   
    </property>
    <property
        name="cusWebsoentry"
        type="java.lang.String"
        column="cus_websoentry"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_websoentry"
            length="1"
        </meta>   
    </property>
    <property
        name="cusWebsoinq"
        type="java.lang.String"
        column="cus_websoinq"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_websoinq"
            length="1"
        </meta>   
    </property>
    <property
        name="cusWebsoshipinq"
        type="java.lang.String"
        column="cus_websoshipinq"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_websoshipinq"
            length="1"
        </meta>   
    </property>
    <property
        name="cusWebinvoiceinq"
        type="java.lang.String"
        column="cus_webinvoiceinq"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webinvoiceinq"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEstleadtime"
        type="java.lang.Integer"
        column="cus_estleadtime"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_estleadtime"
            length="10"
        </meta>   
    </property>
    <property
        name="cusWebwipinq"
        type="java.lang.String"
        column="cus_webwipinq"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webwipinq"
            length="1"
        </meta>   
    </property>
    <property
        name="cusWebvndinq"
        type="java.lang.String"
        column="cus_webvndinq"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_webvndinq"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfax"
        type="java.lang.String"
        column="cus_emailfax"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfax"
            length="1"
        </meta>   
    </property>
    <property
        name="cusLastprojno"
        type="java.lang.String"
        column="cus_lastprojno"
        length="6"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_lastprojno"
            length="6"
        </meta>   
    </property>
    <property
        name="cusEmailfaxbol"
        type="java.lang.String"
        column="cus_emailfaxbol"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxbol"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxpak"
        type="java.lang.String"
        column="cus_emailfaxpak"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxpak"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxpik"
        type="java.lang.String"
        column="cus_emailfaxpik"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxpik"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxinv"
        type="java.lang.String"
        column="cus_emailfaxinv"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxinv"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxcrd"
        type="java.lang.String"
        column="cus_emailfaxcrd"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxcrd"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxrma"
        type="java.lang.String"
        column="cus_emailfaxrma"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxrma"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfaxqot"
        type="java.lang.String"
        column="cus_emailfaxqot"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfaxqot"
            length="1"
        </meta>   
    </property>
    <property
        name="cusEmailfax050"
        type="java.lang.String"
        column="cus_emailfax050"
        length="1"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="cus_emailfax050"
            length="1"
        </meta>   
    </property>
    <property
        name="version"
        type="int"
        column="version"
        length="10"
    >
        <meta attribute="use-in-tostring">true</meta>
        <meta attribute="field-description">
           @hibernate.property
            column="version"
            length="10"
        </meta>   
    </property>

    <!-- Associations -->
    <!-- derived association(s) for compound key -->
    <!-- end of derived association(s) -->
 
    <!-- bi-directional one-to-many association to Address -->
    <set
        name="addresses"
        lazy="true"
        inverse="true"
      cascade="none"
    >
        <meta attribute="field-description">
           @hibernate.set
            lazy="true"
            inverse="true"
            cascade="none"

           @hibernate.collection-key
            column="cul_cno"
           @hibernate.collection-key
            column="cul_cust"
           @hibernate.collection-key
            column="cul_site"

           @hibernate.collection-one-to-many
            class="com.relevant.util.dao.Address"
        </meta>
        <key>
            <column name="cul_cno" />
            <column name="cul_cust" />
            <column name="cul_site" />
        </key>
        <one-to-many
            class="com.relevant.util.dao.Address"
        />
    </set>

</class>
</hibernate-mapping>


Name and version of the database you are using: MSSQL 2000

Debug level Hibernate log excerpt:
[code]
10:09:24,000 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MSSQLDS to JNDI name 'java:MSSQLDS'
10:09:24,156 INFO [Environment] Hibernate 2.1.6
10:09:24,160 INFO [Environment] hibernate.properties not found
10:09:24,162 INFO [Environment] using CGLIB reflection optimizer
10:09:24,171 INFO [Configuration] Searching for mapping documents in jar: E3Hibernate.har
10:09:24,172 INFO [Configuration] Found mapping documents in jar: mappings/Address.hbm.xml
10:09:24,909 INFO [Binder] Mapping class: com.relevant.util.dao.Address -> cul
10:09:25,285 INFO [Configuration] Found mapping documents in jar: mappings/CommCode.hbm.xml
10:09:25,823 INFO [Binder] Mapping class: com.relevant.util.dao.CommCode -> sca
10:09:25,844 ERROR [Configuration] Could not compile the mapping document
net.sf.hibernate.MappingException: Could not interpret type: com.relevant.util.hibernate.StringType
at net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:934)
at net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1047)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:396)
at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:574)
at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:595)
10:09:25,874 ERROR [Hibernate] Starting failed jboss.har:service=Hibernate
net.sf.hibernate.MappingException: Could not interpret type: com.relevant.util.hibernate.StringType
at net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:934)
at net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1047)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:396)
at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:574)
at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java&


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 11:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHibernate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 11:24 am 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
Thank you steve. It looks like I was one day to early on trying to migrate :)

Dropping in the Hibernate3-deployer.zip worked.

Thanks again for updating the Wiki(s)

-David


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.