invalid configuration

invalid configuration

hello I create hibernate.cfg.xml file Like below:

postgres jdbc:postgresql://localhost:5432/hossein net.sf.hibernate.dialect.PostgreSQLDialect postgres org.postgresql.Driver

</session-factory>

but when I excute project show this error:

log4j:WARN No appenders could be found for logger (org.hibernate.type.BasicTypeRegistry). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. **ERROR***org.hibernate.MappingException: invalid configuration Exception in thread "main" java.lang.ExceptionInInitializerError at student.HibernateUtil.(HibernateUtil.java:16) at student.CreateStudent.main(CreateStudent.java:13) Caused by: org.hibernate.MappingException: invalid configuration at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2241) at org.hibernate.cfg.Configuration.configure(Configuration.java:2158) at org.hibernate.cfg.Configuration.configure(Configuration.java:2137) at student.HibernateUtil.(HibernateUtil.java:13) ... 1 more Caused by: org.xml.sax.SAXParseException: The content of element type "session-factory" is incomplete, it must match "(property,mapping+,(class-cache|collection-cache|jcs-class-cache|jcs-collection-cache))". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.dom4j.io.SAXReader.read(SAXReader.java:334) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238) ... 4 more

PLESE HELP ME.THANKS

View Answers









Related Tutorials/Questions & Answers:
invalid configuration
invalid configuration  hello I create hibernate.cfg.xml file Like...#noconfig for more info. **ERROR***org.hibernate.MappingException: invalid configuration Exception in thread "main" java.lang.ExceptionInInitializerError
invalid class exception
invalid class exception  Wondering why invalid class exception occurs
Advertisements
hibernate session invalid in jpa
hibernate session invalid in jpa  hibernate session invalid in jpa
chown error invalid user
chown error invalid user  I'm getting the following error on buliding the app in XCode. Can anyone explain me why this error occurred?   Error chown: MYDOMAIN\domain users: Invalid argument Command /usr/sbin/chown
ModuleNotFoundError: No module named 'invalid-scraper'
ModuleNotFoundError: No module named 'invalid-scraper'  Hi, My... named 'invalid-scraper' How to remove the ModuleNotFoundError: No module named 'invalid-scraper' error? Thanks   Hi, In your python
Invalid console appender in JBoss console
Invalid console appender in JBoss console  "ERROR: invalid console appender config detected, console stream is looping" The above is the error i am getting while starting the server after deploying the ear file into the jboss. I
invalid cursor state - JSP-Servlet
invalid cursor state  Dear sir here my query is executing properly but i can't able to get the value of strUserid1 in while loop.when I am running...] Invalid cursor state   Hi friend, Please give Database
invalid cursor state - JSP-Servlet
invalid cursor state  what is Invalid cursor state in java and how to solve this my code is below   hai frnd. u look at your query and ur while loop code... dont u feel a typing mismatch? u r selecting
runtime error:Invalid column name
runtime error:Invalid column name  Hello, Can anyone please help me on this query? Programatically it is showing run time error. But in sql query...; } } Console Output: Getting Results! java.sql.SQLException: Invalid column name
ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab'
ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab'  ...: No module named 'odoo8-addon-web-invalid-tab' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab' error? Thanks
ModuleNotFoundError: No module named 'invalid-pic-detector'
ModuleNotFoundError: No module named 'invalid-pic-detector'  Hi...: No module named 'invalid-pic-detector' How to remove the ModuleNotFoundError: No module named 'invalid-pic-detector' error? Thanks   Hi
File Upload in struts2 - Invalid field value for field
File Upload in struts2 - Invalid field value for field   Hi I am... : Invalid field value for field "upload". My webContents->Web-Inf->lib...) { this.uploadFileName = uploadFileName; } } As i click submit .. i get Invalid field
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http... configuration file names. There can be several comma separated file names
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http... configuration file names. There can be several comma separated file names
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http... configuration file names. There can be several comma separated file names
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds... file. - definitions-config: (optional) Specify configuration file
Attribute dojoType invalid for tag iterate according to TLD - Ajax
Attribute dojoType invalid for tag iterate according to TLD   Attribute dojoType invalid for tag iterate according to TLD what should i do if i want to implement it on previously developed Struts application
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)  HI, I am getting following error in the outlook while sending the email: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) What to solve this? Thanks
if there is an invalid entry in html:file control then form is not submitting. - Struts
if there is an invalid entry in html:file control then form is not submitting.  Hi, I have used html:file to upload the files. this is working..." and submit - form will submit without any problem Problem is here -- 4)enter invalid
MySQL Configuration
MySQL Configuration      ... . The mysql configuration is included with The mysql 5.0 server and mysql also available for only window users. Introduction of configuration wizard The MySQL
configuration files are used in Struts
configuration files are used in Struts  What configuration files are used in Struts
Configure the configuration file
Configure the configuration file  How do I configure the configuration file
Version of commons-configuration>commons-configuration dependency
List of Version of commons-configuration>commons-configuration dependency
Version of excalibur-configuration>excalibur-configuration dependency
List of Version of excalibur-configuration>excalibur-configuration dependency
ModuleNotFoundError: No module named 'configuration'
ModuleNotFoundError: No module named 'configuration'  Hi, My... 'configuration' How to remove the ModuleNotFoundError: No module named 'configuration' error? Thanks   Hi, In your python
Action Configuration - Struts
Action Configuration  I need a code for struts action configuration in XML
Form Tag library configuration
In this section, you will learn about Spring form tag library and its configuration
configuration files - Java Beginners
configuration files  i have to use configuration file in my program "listing of number of files and their modified time of directory",but problem... by user, tell me what exactly is this configuration file , what are its uses and how
Steps to log4j configuration in Struts2
Steps to log4j configuration in Struts2  Hi... any tel me each step for configure log4j in struts2 application
Hibernate dialect configuration
Hibernate dialect configuration  How to configure hibernate dialect in the Hibernate configuration file? Thanks
Connected Limited Device Configuration
Connected Limited Device Configuration  (Q) One of the most common... the J2ME, is the Connected Limited Device Configuration. What type of device is this most suitable for, what are main limitations of this configuration and what
xml configuration file - JDBC
xml configuration file  Hi, Could you please tell me how to write a xml configuration file . We have mysql database in some other system. I have to access the data from different system. For this jdbc connectivity how
@configuration annotation in Spring 3
@configuration annotation in Spring 3  doesn't make code tight coupling..? if we keep that in IOC in XML form, its deployment free for some kind of change management right?.   Please visit the following link: http
JDBC Configuration in Ubuntu 10.04
JDBC Configuration in Ubuntu 10.04  Hi everybody, Am using Linux Ubuntu 10.04, java jdk 1.6 and mysql 5.1 and I have trouble to load mysql connector and i have no such driver found for dbtest.java. pleas guide me to solve
MySQL Configuration
MySQL Configuration      ... . The MySQL server configuration normally started during  installation process .  MySQL server configuration wizard window ADS_TO_REPLACE_1 The MySQL
Could not parse configuration: hibernate.cfg.xml
Could not parse configuration: hibernate.cfg.xml  Hi, I am getting... configuration: hibernate.cfg.xml at org.hibernate.cfg.Configuration.doConfigure... version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration
ldap configuration for SVN on linux
ldap configuration for SVN on linux  I want to set up ldap and normal file authentication for my SVN in linux. I should i do that? Here basically i need to read file which contains several user name and passwd values and LDAP
Maven Repository/Dependency: excalibur-configuration | excalibur-configuration
Maven Repository/Dependency of Group ID excalibur-configuration and Artifact ID excalibur-configuration. Latest version of excalibur-configuration:excalibur-configuration dependencies. # Version Release Date
Maven Repository/Dependency: commons-configuration | commons-configuration
Maven Repository/Dependency of Group ID commons-configuration and Artifact ID commons-configuration. Latest version of commons-configuration:commons-configuration dependencies. # Version Release Date
Configuration issues with tomcat5
Configuration issues with tomcat5  i have copied a tomcat5 zip file and unzit it in my system C:/ drive....i am folowing every standard and my directory structure is given below:-               Demo(Project Name
Configuration issues with tomcat5
Configuration issues with tomcat5  i have copied a tomcat5 zip file and unzit it in my system C:/ drive....i am folowing every standard and my directory structure is given below:-               Demo(Project Name
Tomcat Configuration For Eclipse Server
Tomcat Configuration For Eclipse Server  How to configure Eclipse Tomcat Server? I am using Tomcat 6.0v Thanks In Advance   Install tomcat on eclipse 1)First download the tomcat and install it on your hard drive. 2
Version of com.cibuddy>configuration dependency
List of Version of com.cibuddy>configuration dependency
Hibernate configuration file
This tutorial helps you in understanding the configuration file of Hibernate
Artifacts of commons-configuration
List of Artifacts of commons-configuration maven depenency
Artifacts of excalibur-configuration
List of Artifacts of excalibur-configuration maven depenency
Maven Dependency commons-configuration >> 1.0
You should include the dependency code given in this page to add Maven Dependency of commons-configuration >> commons-configuration version1.0 in your project
Maven Dependency commons-configuration >> 1.0-dev-2.20021231.045254
You should include the dependency code given in this page to add Maven Dependency of commons-configuration >> commons-configuration version1.0-dev-2.20021231.045254 in your project
Maven Dependency commons-configuration >> 1.0-dev-3.20030603.101200
You should include the dependency code given in this page to add Maven Dependency of commons-configuration >> commons-configuration version1.0-dev-3.20030603.101200 in your project
Maven Dependency commons-configuration >> 1.0-dev-3.20030607.194155
You should include the dependency code given in this page to add Maven Dependency of commons-configuration >> commons-configuration version1.0-dev-3.20030607.194155 in your project

Ads