invalid configuration

Ads

 
 

Share on Google+Share on Google+

hossein
invalid configuration
0 Answer(s)      5 years and a month ago
Posted in : Hibernate

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

Ads
View Answers
Ads









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
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 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  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
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
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
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
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
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
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
Version of com.cibuddy>configuration dependency
List of Version of com.cibuddy>configuration dependency
MySQL Configuration
MySQL Configuration      ... . The MySQL server configuration normally started during  installation process .  MySQL server configuration wizard window  The MySQL configuration wizard
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
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
Hibernate configuration file
This tutorial helps you in understanding the configuration file of Hibernate