-->
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.  [ 1 post ] 
Author Message
 Post subject: MappingException in JBoss: Could not determine type for...
PostPosted: Wed May 24, 2006 10:27 am 
Newbie

Joined: Wed May 24, 2006 10:11 am
Posts: 5
Good day to all;
I have some experience with Hibernate under Tomcat and I'm now switching to JBoss, but I'm having some troubles deploying the .har file.
Can somebody please help me?

Hibernate version:
3.x (comes with JBoss 4.0.3 SP1)

Mapping documents:
Subscriber.hbm.xml
Code:
name="com.tu.core.Subscriber"
[...]
        <property
            name="status"
            type="com.tu.core.persistence.SubscriberStatusHUserType"
            update="true"
            insert="true"
            column="SubStatus"
        />
[...]

SubscriberStatusHUserType is a class that implements UserType.

Full stack trace of any exception that occurs:
Code:
ObjectName: jboss.har:service=Hibernate
  State: FAILED
  Reason: org.hibernate.MappingException: Could not determine type for: com.tu.core.persistence.SubscriberStatusHUserType, for columns: [org.hibernate.mapping.Column(SubStatus)]


Name and version of the database you are using:
Intersystem Cache 5

The point is that SubscriberStatusHUserType.class is in the .har file, I double and trippled checked, it's there. I also tried to create a .jar file with all the .class and add it to the JBoss classpath, but that didn't work neither.
Am I missing something? Why can't it find a class that is in the har?
Best regards

domyalex


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

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.