| 
					
						 When I am runnning the application , I am getting this error : 
 
 187  [main] INFO  org.hibernate.cfg.Configuration  - Configuration resource: hibernate.cfg.xml
 Warning: Caught exception attempting to use SAX to load a SAX XMLReader 
 org.xml.sax.SAXException: System property org.xml.sax.driver not specified
 	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
 	at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
 	at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
 	at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
 	at org.dom4j.io.SAXReader.read(SAXReader.java:435)
 	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1354)
 	at org.hibernate.cfg.Configuration.configure(Configuration.java:1298)
 	at HibernateSessionFactory.currentSession(HibernateSessionFactory.java:46)
 	at TestClient.createHoney(TestClient.java:42)Warning: Exception was: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
 Warning: I will print the stack trace then carry on using the default SAX parser
 
 	at TestClient.main(TestClient.java:21)
 %%%% Error Creating SessionFactory %%%%
 org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
 	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1364)
 	at org.hibernate.cfg.Configuration.configure(Configuration.java:1298)
 	at HibernateSessionFactory.currentSession(HibernateSessionFactory.java:46)
 	at TestClient.createHoney(TestClient.java:42)
 	at TestClient.main(TestClient.java:21)
 Caused by: org.dom4j.DocumentException: System property org.xml.sax.driver not specified Nested exception: System property org.xml.sax.driver not specified
 	at org.dom4j.io.SAXReader.read(SAXReader.java:484)
 	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1354)
 	... 4 more
 java.lang.NullPointerException
 	at HibernateSessionFactory.currentSession(HibernateSessionFactory.java:54)
 	at TestClient.createHoney(TestClient.java:42)
 	at TestClient.main(TestClient.java:21)
 Exception in thread "main" 
 
 Please help me in this regard.
 
 Qaiser 
					
  
						
					 |