Hi All,
it is the second day now i spend searching on the internet for the same problem and now I hope someone here can help me.
I have a small H2 database running on my Windows machine and for the Data Access Layer I use hibernate and Java. Everything works
fine when I start the application from Eclipse, but when I export the project as a jar file I get following error massage:
The environment:
It runs on is a JWebSocket which is responsible for the communication an Android phone is sending Tokens and the java
tool is analyzing the Token and starting a transaction over hibernate.
As mentioned before everything works fine when I start the project from Eclipse.
The files:
hibernate.cfg.xml:
Code :
as a example the Position.hbm.xml:
Code:
HibernateUtil.java
Thank you very much
Youza
it is the second day now i spend searching on the internet for the same problem and now I hope someone here can help me.
I have a small H2 database running on my Windows machine and for the Data Access Layer I use hibernate and Java. Everything works
fine when I start the application from Eclipse, but when I export the project as a jar file I get following error massage:
Failed to create sessionFactory object.org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
The environment:
It runs on is a JWebSocket which is responsible for the communication an Android phone is sending Tokens and the java
tool is analyzing the Token and starting a transaction over hibernate.
As mentioned before everything works fine when I start the project from Eclipse.
The files:
hibernate.cfg.xml:
Code :
as a example the Position.hbm.xml:
Code:
HibernateUtil.java
Thank you very much
Youza