| Author |
Strange service=DataSourceBinding issue in JBoss
|
Arijit Datta
Greenhorn
Joined: Oct 25, 2010
Posts: 2
|
|
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
Joined: Jul 20, 2005
Posts: 8147
|
|
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.
|
[My Blog] [JavaRanch Journal]
|
 |
Arijit Datta
Greenhorn
Joined: Oct 25, 2010
Posts: 2
|
|
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
Joined: Jul 20, 2005
Posts: 8147
|
|
Please post the entire exception stacktrace. That exception looks a bit weird, as if the code isn't using JBoss naming server.
|
 |
 |
|
|
subject: Strange service=DataSourceBinding issue in JBoss
|
|
|