This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate main Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate main" java.lang.NullPointerException" Watch "Hibernate main" java.lang.NullPointerException" New topic
Author

Hibernate main" java.lang.NullPointerException

Manojkr Jadhav
Greenhorn

Joined: Sep 05, 2009
Posts: 7
I am new in hibernate, i want to run simple hibernate program but some following error,
please help me, How to solve following error.


log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NullPointerException
at roseindia.tutorial.hibernate.FirstExample.main(FirstExample.java:42)

JDBC Driver class not found: com.microsoft.jdbc.sqlserver.SQLServerDriver
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate main" java.lang.NullPointerException
 
Similar Threads
hibernate.cfg.xml not found
Problem with the sample hibernate program
hibernate.cfg.xml
where is the error
Hibernate Query