Hello! Does your application contain dom4j jar file? If not, you should add it.
Usually, NoClassDefFoundError occures if some required jar is not present in the application.
Every first times after starting the server is first error and every second times is the last error. Why are the two errors different?
What will I do now? Do I need more libraries?
Yes I did. But I can't solve.
Actually, I think the problem is not with hibernate.cfg.xml file and .hbm.xml files. It might be because of lib files.
As for the first error, it said " java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder ".
When I take a look inside slf4j.jar, I don't see any such package "org/slf4j/impl/....". Something wrong?
This is how I write in my servlet