This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

need help on log4j.properties

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i getting following error while running my Stateful Session Bean




my log4j.properties is as follows

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The two warnings at the top of your log have nothing to do with the error happening at line 03. So log4j has nothing to do with a "javax.naming.NameNotFoundException: FooBean not bound". You have a problem in foo.Client.main(). The bean name you are using is not found.
 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christophe Verré wrote:The two warnings at the top of your log have nothing to do with the error happening at line 03. So log4j has nothing to do with a "javax.naming.NameNotFoundException: FooBean not bound". You have a problem in foo.Client.main(). The bean name you are using is not found.


My client program is as follows


my ejb-jar.xml is as follows


my jboss.xml is as follows

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See if this helps with debugging: http://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole
Once you know the correct JNDI name for you EJB you can fix the client code.
 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:See if this helps with debugging: http://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole
Once you know the correct JNDI name for you EJB you can fix the client code.



while running the server it shows different jndi name.when i used that jndi name, it works.thanks.

 
I think she's lovely. It's this tiny ad that called her crazy:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic