aspose file tools*
The moose likes JBoss/WildFly and the fly likes need help on log4j.properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "need help on log4j.properties" Watch "need help on log4j.properties" New topic
Author

need help on log4j.properties

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
i getting following error while running my Stateful Session Bean




my log4j.properties is as follows

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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 Blog]
All roads lead to JavaRanch
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
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

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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.


JBoss In Action
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: need help on log4j.properties