Mika Riekkinen

Greenhorn
+ Follow
since Jun 12, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mika Riekkinen

I had the same problem and got it solved.

1) hibernate.cfg.xml into WEB-INF/classes/
2) obtain an URL to this file
URL url = MyClass.class.getResource("/hibernate.cfg.xml");
Make sure MyClass is part of your web-app
3) Configure hibernate
new Configuration().configure(url);
I had the same problem with Linux/SuSE8.0.
There was a problem in my /etc/hosts file. I think Windows also has a similar file, so this could help you as well:
I changed the line:
my.ip.add.ress linux.localhost linux
to:
127.0.0.1 linux.localhost linux
21 years ago