I am new to Hibernate.
<hibernate-configuration>
<session-factory>
...
...
</session-factory>
</hibernate-configuration>
as per the
http://hibernate.bluemars.net/hib_docs/reference/html/session-configuration.html doc
hibernate.connection.datasource is the only required element for <session-factory>
I have that in my hibernate.cfg
But when I run I get errors in the Borland App server. but my app works fine even after this error. The data is persisted in the DB. How can i fix this error?
org.xml.sax.SAXParseException: Element "session-factory" requires additional elements.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.done(ValidatingParser.java:361)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1519)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.dom4j.io.SAXReader.read(SAXReader.java:339)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:785)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:764)