-->
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.  [ 2 posts ] 
Author Message
 Post subject: problem parsing configuration/hibernate.cfg.xml
PostPosted: Mon Aug 29, 2005 4:58 am 
Beginner
Beginner

Joined: Tue Feb 15, 2005 8:14 am
Posts: 32
I am getting this error :

org.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1173)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)
at com.tietoenator.dk.lub.utility.Factory.<clinit>(Factory.java:26)

when I use this hibernate.cfg.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.username">lub</property>
<property name="hibernate.connection.password">lub</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/lub?autoReconnect=true&amp;relaxAutoCommit=true</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">false</property>
<property name="hibernate.jdbc.batch_size">20</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
<property name="hibernate.query.substitutions">true=1, false=0</property>
<mapping resource="com/tietoenator/dk/lub/integration/auditlog/AuditLogRecord.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/auditlog/AuditType.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/DatabaseRevisionBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/EducationTypeBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/HelpPageBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/MenuItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/RequestLogBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/UploadedFileBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/organisationunit/OrgUnitOrgUnitBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/organisationunit/OrganisationTypeBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/organisationunit/OrganisationUnitBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/user/JobPositionBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/user/MessageBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/user/StaffBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/user/TutorStudentBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/basic/user/UserBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/EvaluationQuestionBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/competence/ChecklistBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/competence/ChecklistItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/competence/CompetenceBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/competence/CompetenceCategoryBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/competence/CompetenceChecklistBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/course/CourseBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/course/CourseCategoryBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/pathway/PathWayTemplateItemCompetenceBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/pathway/PathWayTemplateItemCourseBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/pathway/PathwayTemplateBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/pathway/PathwayTemplateItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/pathway/RelationTypeBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/program/ProgramBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/program/ProgramItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/program/ProgramItemProgramStatusBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/specialty/GoalDescriptionBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/specialty/OperationCategoryBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/maintenance/specialty/SpecialtyBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/CheckListItemStatusBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/CheckListStatusBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/DiaryItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/EvaluationAnswerBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/ProgramStatusBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/ProgramStatusCheckListStatusBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/CompetenceLevelBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/ConferenceParticipationItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/IncidentItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/LiteratureCategoryBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/LiteratureItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/OperationItemBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/registration/documentation/ParticipationBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/report/ReportBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/report/ReportParameterBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/security/AuthorizationBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/security/PrivilegeBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/security/PrivilegeOrganisationTypeBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/security/RoleBean.hbm.xml"/>
<mapping resource="com/tietoenator/dk/lub/integration/security/RolePrivilegeBean.hbm.xml"/>
</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject: Re: problem parsing configuration/hibernate.cfg.xml
PostPosted: Mon Aug 29, 2005 5:43 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 4:03 am
Posts: 34
Location: Aberdeen, UK
Not much to get out of the error log, but why not try to remove all but one of your mapping resources, to se if it is some of those that causes the Configuration to fail.

You can also set the log level to DEBUG when running Hibernate and then try to se if you get any more information why it’s failing.


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