• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic