I'm generating some mapping files for my domain objects using the xdoclet-maven-plugin , which is configured as :
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xdoclet-maven-plugin</artifactId> <executions> <execution> <id>hbm-generation-with-xdoclet</id> <phase>generate-sources</phase> <configuration> <tasks> <hibernatedoclet destdir="src" force="false" excludedtags="@version,@author,@todo"> <fileset dir="src"> <include name="**/portal/**/*.java" /> <include name="**/reference/**/*.java" /> <include name="**/b2bassurance/**/*.java" /> </fileset> <hibernate version="2.0"/> </hibernatedoclet> </tasks> <generatedSourcesDirectory>target/classes</generatedSourcesDirectory> </configuration> <goals> <goal>xdoclet</goal> </goals> </execution> </executions> </plugin> However when I deploy and run the application , I'm getting the following error message: 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 file databaseContext.xml does not even have 198 lines and since the error is a MappingException , the problem could in one of the generated *.hbm.xml files. Has anyone experienced this? "Don't take the name of root in vain." Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype : ejbengine Registered Linux user number 366042 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]