aspose file tools*
The moose likes JBoss/WildFly and the fly likes Question about: javax.naming.NameNotFoundException: FooBean/remote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Question about: javax.naming.NameNotFoundException: FooBean/remote" Watch "Question about: javax.naming.NameNotFoundException: FooBean/remote" New topic
Author

Question about: javax.naming.NameNotFoundException: FooBean/remote

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61
I create an ejb3 running on Jboss according to (http://javahowto.blogspot.com/2007/11/simple-ejb-3-on-jboss-application.html)

First I start the Jboss AS locally on my PC and I run the Client also successful.

Later I deployed the ejb-jar to a remote Jboss AS on a LINUX machine. And I can find the jndi in the JNDIView of jmx-console as follow.



This means the deployment is successful.

Though I've changed the IP in the jndi.properties, I got exception as I start the Client.



What could be the problem?

The jndi.properties looks as follow:
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

What version of JBoss AS are you using? That tutorial is a really old one and things have changed greatly since 5.0.0.Beta2! Here is the latest tutorial: http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/index.html


JBoss In Action
Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61
Peter Johnson wrote:What version of JBoss AS are you using? That tutorial is a really old one and things have changed greatly since 5.0.0.Beta2! Here is the latest tutorial: http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/index.html


Many thanks.

I solved the problem. It was the problem of firewall, i.e. the firewall block the communication between the two machines.


But I am still looking for example for testing the clustering of Web Application. The example in your book is about testing or playing clustering with EJB.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about: javax.naming.NameNotFoundException: FooBean/remote