• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate configuration help please  RSS feed

 
Mohammed Sardar.
Ranch Hand
Posts: 193
1
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Greetings. This is my first Hibernate application and trying to connect to Oracle db 10g XE. I tried till I struck with use of many articles on net but brain does not provide any ideas. Please give me your help hands.

I'm using Java, Hibernate, Eclipse Environment and hibernate.cfg.xml has been set up. The relevant Java classes to implement session factory and sessions have been done. When I run the application I get the below error. I tried below to resolve but still seeking help from genius.

1. I looked at the driver class, connection url, sid, localhost and its fine. I'm connecting connecting to Oracle by SQLDev.
2. xml configuration each and every line and they are fine. Not sure why the hibernate produce the Unmarshalling so please help.
3. I'm trying to debug at the point where we are creating SessionFactory but getting the below as


Exception in thread "main" org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:

Why I'm able to attach a txt file,xml files in the attachment. What can we do as a work around for that ? Please tell me to learn here. Thanks

Could some body please show me a helping hand ?

Thanks.
 
Mohammed Sardar.
Ranch Hand
Posts: 193
1
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Greetings. This is my first Hibernate application and trying to connect to Oracle db 10g XE. I tried till I struck with use of many articles on net but brain does not provide any ideas. Please give me your help hands.

I'm using Java, Hibernate, Eclipse Environment and hibernate.cfg.xml has been set up. The relevant Java classes to implement session factory and sessions have been done. When I run the application I get the below error. I tried below to resolve but still seeking help from genius.

1. I looked at the driver class, connection url, sid, localhost and its fine. I'm connecting connecting to Oracle by SQLDev.
2. xml configuration each and every line and they are fine. Not sure why the hibernate produce the Unmarshalling so please help.
3. I'm trying to debug at the point where we are creating SessionFactory but getting the below as



Why I'm able to attach a txt file,xml files in the attachment. What can we do as a work around for that ? Please tell me to learn here. Thanks

Could some body please show me a helping hand ?

Thanks.







 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!