-->
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: Error in the file hbm.xml or mapping file
PostPosted: Mon Apr 17, 2006 6:36 pm 
Newbie

Joined: Mon Apr 10, 2006 3:32 pm
Posts: 13
I donĀ“t understant why i got this error. : (

I hope that somebody can help me

Thanks

Hibernate version: 3.0

Mapping documents:
This are the lines 34 to 37

<query name = "finduser"><! [CDATA[
from TUSUARIO WHERE SUSERNAME = :name AND SPASSWORD = :pass
]]>
</query>


Full stack trace of any exception that occurs:
Caused by: org.dom4j.DocumentException: Error on line 34 of document : <Line 34, Column 44>: XML-0201: (Fatal Error) Expected name instead of !. Nested exception: <Line 34, Column 44>: XML-0201: (Fatal Error) Expected name instead of !.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 3:31 am 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
You have a space between "<!" and "[CDATA[".

Try it without the space "<![CDATA[".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 9:40 am 
Newbie

Joined: Mon Apr 10, 2006 3:32 pm
Posts: 13
Yessssss....... It works now..... Thank you.... : )


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.