• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Strange service=DataSourceBinding issue in JBoss

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic