I am new in hibernate, just in the learning phase.
I am using eclipse indigo, hibernate, oracle 10g.
In my first programme got from internet during run the programme the below error I am getting -
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" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
... 2 more
Thanks for reply.
I have tried your suggested way, but not get resolved.
Actually I am trying to access a remote database to which I have to connect through VPN client. After get connected through VPN client my internet connection is not working. I think for run my code internet connection is needed.
Please corrrect, if it is not right.
I created a simple java project and added jar files in eclipse -
Hibernate will not load the DTD file from the web, but first look it up from the classpath of the application. The DTD file is included in hibernate-core.jar (it is also included in the hibernate3.jar, if using the distribution bundle).
The fact that it appears to be trying to go to the web means its not finding it in the JAR. It should be there. Are you still getting the same exception after applying the change I mentioned or is it a different one? You also did not post the full stack trace.
try to add all the six JAR files of required folder of Hibernate 3(as you are using that version), i think some JAR files are missing like "...\required\javassist-3.12.0.GA.jar" etc. I am not sure that this might be the solution but please try to add all six JAR files also copy and paste <!DOCTYPE..> element from predefined examples instead of manual typing according to the version you are using.
Joined: Sep 20, 2012
Could you please specify the six jar files I need to add.
It will be very helpful.
Also please add the following JAR file "..\hibernate-3.6.5.Final-src\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar" from "jpa" folder of Hibernate 3
.. please verify the "required"and "jpa" folder you can find all the above JAR files and try to add them.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com