Open all the files pertaining to hibernate in XML SPY and you should easily
find out which file its failing on....
- H
From: "Jeff Mutonho" <[EMAIL PROTECTED]>
To: dom4j-user@lists.sourceforge.net
Subject: [dom4j-user]
net.sf.hibernate.MappingException:org.dom4j.DocumentException:
Date: Thu, 31 May 2007 15:18:32 +0200
I'm getting the following error message during startup of a web
application file :
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'mySessionFactory' defined in ServletContext
resource
[/WEB-INF/appcontext/databaseContext.xml]: Initialization of bean
failed; nested exception is net.sf.hibernate.MappingException:
org.dom4j.DocumentException:
Error on line 198 of document : <Line 198, Column 11>: XML-20124:
(Fatal Error) An attribute cannot appear more than once in the same
start tag. Nested exception: <Line 198, Column 11>: XML-20124:
(Fatal Error) An attribute cannot appear more than once in the same
start
tag.
The document databaseContext.xml only ends at line 186, which suggests
the error is coming from elsewhere...most likely a hibernate a hbm.xml file
Any ideas? Is there a way that I could configure dom4j to tell me
which file/document its failing on , rather than just saying " Error
on line 198 of document : <Line 198, Column 11>:"
--
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user
_________________________________________________________________
PC Magazines 2007 editors choice for best Web mailaward-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user