Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange service=DataSourceBinding issue in JBoss

 
Arijit Datta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, this is my first JPA, hello world project and I have already run into a wall

I am using JBoss 5.0.0.GA and EclipseLink 1.4

This is my persistence.xml ::

This is my oracle-ds.xml. I have kept it at jboss-5.0.0.GA\server\default\deploy. The ojdbc14.jar driver is also there.

The following is the server start up log



I cant seem to figure out why cant JBoss see that the DataSourceBinding has been done. Why is it looking for it again?

Thanks in advance people.

Best regards,
Arijit Datta
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jta-data-source value in the persistence.xml should match the JNDI name of your datasource. In your case, it should be:



Also, I would recommend that you move to 5.1.0 instead of 5.0.0. There have been numerous bugs fixed after 5.0.0.
 
Arijit Datta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

Thanks to you i atleast got my EJB deployed. THe server started without any problems. Also as per your suggestion I have upgraded to JBoss 5.1. However now I am facing a different kind of problem.

When the remote client hits the Jboss server. The following exception is thrown:

I have also changed my persistence.xml in the following way:

And following is the oracle-ds.xml:
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the entire exception stacktrace. That exception looks a bit weird, as if the code isn't using JBoss naming server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic