• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

maybe related to my other problem, but also problem with Connection Pool

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
please also take a look at my other problem, maybe they are related.
I configured a Connection pool and a Datasource, as i believe correct. I get the following error on deploying my application:
<Error deploying application PersonEJB:
Unable to deploy EJB: PersonBean2 from PersonEJB.jar:
The DataSource with the JNDI name: PersonSource could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
I didnt find any entry in the log file that showed, that the Pool or the DataSource were created. Can you help me here too ?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe if you'll post the relevant parts of your config.xml and EJB deployment descriptors, someone would pick up a lead...?
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
max


The DataSource with the JNDI name: PersonSource could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.


You need to provide the Target to the DataSource.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
as Rahul Mahindrakar mention you probably forgot to provide a target server for your DataSource.
After that u can check the JNDI tree of your server to make sure you did it correctly, navigate under the admin console to:
%domain_name%>>servers>>%server_name%
right click on server name and choose view JNDI tree, you�re going to see the JNDI tree for that server and the JNDI name of your DataSource should be there.
regards.
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic