-->
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.  [ 10 posts ] 
Author Message
 Post subject: Warning parsing XML
PostPosted: Thu Feb 19, 2004 3:03 pm 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
Hi,

when I inicialize Hibernate, the following warning is happening, can I ignore this warning or this may be an error?

thanks

Code:
15:58:06,802  INFO Environment:462 - Hibernate 2.1.2
15:58:06,812  INFO Environment:491 - hibernate.properties not found
15:58:06,822  INFO Environment:519 - using CGLIB reflection optimizer
15:58:06,842  INFO Configuration:854 - configuring from resource: /hibernate.cfg.xml
15:58:06,842  INFO Configuration:826 - Configuration resource: /hibernate.cfg.xml
15:58:07,082  WARN XMLHelper:55 - Warning parsing XML: /hibernate.cfg.xml(1) URI was not reported to parser for entity [document]
15:58:07,122  WARN XMLHelper:55 - Warning parsing XML: /hibernate.cfg.xml(5) No base URI; hope URI is absolute: http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd
15:58:07,132  WARN XMLHelper:55 - Warning parsing XML: /hibernate.cfg.xml(5) No base URI; hope this SYSTEM id is absolute: http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd
15:58:07,282  INFO Configuration:311 - Mapping resource: net/wasys/crea/model/VotoVO.hbm.xml


Code:
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
   
<hibernate-mapping>

<class
    name="net.wasys.crea.model.VotoVO"
    table="VOTO"
    proxy="net.wasys.crea.model.VotoVO"
>
    <id
        name="id"
        type="java.lang.Long"
        column="VOTOID"
    >
        <generator class="sequence">
           <param name="sequence">Voto_serial</param>
        </generator>
    </id>

    <property
        name="dataVoto"
        type="java.sql.Timestamp"
        column="DATAVOTO"
        not-null="true"
        length="7"
    />

</class>
</hibernate-mapping>

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 7:29 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
<?xml version='1.0'>
?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 7:46 am 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
emmanuel wrote:
<?xml version='1.0'>
?


I put the following code, but the error continues:

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
    PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 8:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Which parser do you use ?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 9:19 am 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
emmanuel wrote:
Which parser do you use ?


I don't know, I didn't configure anything...

I suppose that I'm using dom4j, because if I remove dom4j of the classpath, I have a ClassNotFound exception.

Code:
10:14:00,654 DEBUG Configuration:971 - null<-org.dom4j.tree.DefaultAttribute@2ce908 [Attribute: name resource value "net/wasys/crea/model/VotoVO.hbm.xml"]


thank you

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 10:48 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
do you use the embedded version of dom4j in Hibernate distro ?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 10:55 am 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
emmanuel wrote:
do you use the embedded version of dom4j in Hibernate distro ?


yes, I use the dom4j-1.4.jar file in /hibernate-2.1.2/lib/ distro...

Can I change the parser? How do I do it?

thanks by the help.

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 11:14 am 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
Emmanuel, any idea?

I coundn't solve this warning...

thank you

_________________
Ricardo Lecheta


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 12:11 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
are you using eclipse?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 1:15 pm 
Regular
Regular

Joined: Tue Oct 14, 2003 11:11 pm
Posts: 62
Location: Brasil/Curitiba
delpouve wrote:
are you using eclipse?


yes.

_________________
Ricardo Lecheta


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