-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Console MappingNotFoundException
PostPosted: Thu May 31, 2007 3:05 am 
Newbie

Joined: Thu May 31, 2007 2:46 am
Posts: 1
I am using JBOSSIDE v 2.0.0 beta . I already have an existing ptrohect with all hbm.xml files and the hibernateconfiguration file already created.

When i create a hibernate console configuration with my current hibernate configuration file and then try to run a qury in hql editor I get mappingnotfoundexception. All my hbm.xml files are in the same project folder but still eclipse is not able to find them.

Here is a extract from my configuration file



Quote:
<?xml version='1.0' encoding='utf-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">
java:/DefaultDS
</property>
<!-- Database Settings -->
<property name="dialect">org.hibernate.dialect.Oracle9Dialect
</property>

<!-- <property name="default_schema">localDB</property>--> <property name="show_sql">false</property>
<property name="cache.use_second_level_cache">false</property> <property name="cache.use_query_cache">false</property>
<!-- JDBC Settings -->
<property name="jdbc.use_streams_for_binary">true</property> <property name="max_fetch_depth">1</property>

<!-- | Uncomment in clustered mode : use transactional replicated cache
<property name="cache.provider_class">org.jboss.portal.core.hibernate.JMXTreeCacheProvider
</property>
<property name="cache.object_name">portal:service=TreeCacheProvider,type=hibernate
</property>
-->
<!-- | Comment in clustered mode -->
<!-- <property name="cache.provider_configuration_file_resource_path">ehcache.xml
</property>
<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider
</property> -->
<property name="cache.provider_class">org.hibernate.cache.TreeCacheProvider
</property>
<!-- Force the dialect instead of using autodetection --> <!-- <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> -->
<!-- Mapping files -->
<mapping resource="AccessRightTO.hbm.xml"/>


The accessrigthtohbm.xml lie along with the configuration file but cannot be found by eclipse.
Also everything works fine when i deploy my jar with all the hbm files on my jboss server only inside eclipse it creates a problem

Please help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 6:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
are the classes on the classpath of the console configuration ?

note, if you use the latest version of hibernate tools it would automatically pick it up from its related project...previously it did not.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.