- This topic has 8 replies, 3 voices, and was last updated 20 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
jrogersMemberI created a project in Beta 3.8 with hibernate support and it worked fine. I updated per the instructions to 3.8.1. I get an error regarding the validity of the hibernate.cfg.xml file. I also did another install but downloaded the 3.8.1 GA release and added hibernate support. I’m still getting an invalid hibernate.cfg.xml file and it is in a different location from the beta version.
I have my project in cvs and would like to not rebuild it. How do I fix the issue with the hibernate.cfg.xml and where is the proper location for it?
Thanks
Riyad KallaMemberWhat is the error? What is the Build ID of Eclipse that you are using?
jrogersMemberI am using GA 3.8.1 along with the quick fix patch.
The error is:
The content of element type “session-factory” is incomplete, it must match “(property*,mapping+,(class-cache|collection-cache|jcs-class-cache|jcs-collection-cache)*)”.
snpeMembersend us hibernate.cfg.xml
Riyad KallaMemberI am using GA 3.8.1 along with the quick fix patch.
Actually I wanted the Help > About > Eclipse Build ID number.
The content of element type “session-factory” is incomplete, it must match “(property*,mapping+,(class-cache|collection-cache|jcs-class-cache|jcs-collection-cache)*)”.
Does the content of session-factory match this rule? This seems to be a straight validation error… maybe you were editing the file and accidentally forgot a close tag or misquoted attribute somewhere?
jrogersMemberHere is the build information:
Eclipse Platform
Version: 3.0.0
Build id: 200406251208
Riyad KallaMemberThat looks to be the correct build ID, what about the other question? Have you tried using another piece of software to validate this file and see if it is infact valid?
jrogersMemberI think I found the answer. When I first add hibernate support to the project, the hibernate.cfg.xml fails validation because it contains no tags called mapping. Once I map an table to an entity, the errors disappear. Evidently, in earlier version, the validation of the xml file was not occuring or turned off. I’m good to go for now.
Riyad KallaMemberGlad to hear it’s working now.
-
AuthorPosts