File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Strange service=DataSourceBinding issue in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Strange service=DataSourceBinding issue in JBoss" Watch "Strange service=DataSourceBinding issue in JBoss" New topic
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: 10289
    
168

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: 10289
    
168

Please post the entire exception stacktrace. That exception looks a bit weird, as if the code isn't using JBoss naming server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange service=DataSourceBinding issue in JBoss