-->
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.  [ 8 posts ] 
Author Message
 Post subject: Error in hibernate.cfg.xml parse
PostPosted: Tue Apr 20, 2004 11:22 am 
Newbie

Joined: Tue Apr 20, 2004 11:12 am
Posts: 5
Location: Sao Paulo / Brazil
Hi,

I'm getting de following messages when I start Hibernate:

Code:
INFO: Configuration resource: /hibernate.cfg.xml

20/04/2004 12:05:30 net.sf.hibernate.util.XMLHelper$ErrorLogger warning

WARNING: Warning parsing XML: /hibernate.cfg.xml(1) URI was not reported to parser for entity [document]

20/04/2004 12:05:30 net.sf.hibernate.util.XMLHelper$ErrorLogger warning

WARNING: Warning parsing XML: /hibernate.cfg.xml(4) No base URI; hope URI is absolute: http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd

20/04/2004 12:05:30 net.sf.hibernate.util.XMLHelper$ErrorLogger warning

WARNING: Warning parsing XML: /hibernate.cfg.xml(4) No base URI; hope this SYSTEM id is absolute: http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd


I'm using dom4j.jar parser wich comes with hibernate.
I've hear this parser doesn't suport EntityResolver. Is that the real problem? If so, what else parser could I use and how can I configure it?

Thanks

Fabio


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 4:36 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
put xerces in your CP

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 8:56 am 
Newbie

Joined: Tue Apr 20, 2004 11:12 am
Posts: 5
Location: Sao Paulo / Brazil
In fact, I've already put xerces in my CP.

Take a look at which libraries I've put in CP (that comes with Hibernate):

    dom4j.jar
    cglib2.jar
    commons-collections.jar
    commons-lang.jar
    commons-loggin.jar
    odmg.jar
    hibernate2.jar
    xalan.jar
    xerces.jar
    xml-apis.jar


Fabio


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 4:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Show you cfg file

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 5:38 pm 
Newbie

Joined: Tue Apr 20, 2004 11:12 am
Posts: 5
Location: Sao Paulo / Brazil
Here it is:

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
    PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>

    <session-factory>

        <property name="query.substitutions">true 'S', false 'N', yes 'S', no 'N'</property>
        <property name="show_sql">false</property>
        <property name="dialect">net.sf.hibernate.dialect.OracleDialect</property>
        <property name="cache.provider_class">net.sf.hibernate.cache.HashtableCacheProvider</property>
        <property name="cglib.use_reflection_optimizer">false</property>

        <!-- mapping files -->
        <mapping resource="/com/arteinfo/to/user/UserPSistTO.hbm.xml"/>

    </session-factory>

</hibernate-configuration>

_________________
________
Fabio


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 24, 2004 6:43 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
hum should work. Works for me actually.
Are you sure your not in a broken environement that load another perser on a parent classpath

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 24, 2004 11:39 am 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
I have this problem too, and xerces.jar is on classpath.

http://forum.hibernate.org/viewtopic.php?t=928164

It

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 8:12 am 
Newbie

Joined: Fri Jun 03, 2005 3:40 pm
Posts: 7
i had this problem today, and it happened when i added some libs(jfreechart-1.0.1.jar,gnujaxp.jar and jcommon-1.0.0.jar). After i removed it, it worked fine again. So, just check your libs.

* i still don´t know how i´m going to use those libs, since i need them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.