File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes JBoss initialcontext problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JBoss initialcontext problem" Watch "JBoss initialcontext problem" New topic

JBoss initialcontext problem

Charith Fernando
Ranch Hand

Joined: Sep 12, 2005
Posts: 67
hi all,

i'm a bit new to jboss application server. i have deployed my bean on jboss and i'm trying to access the bean through a client which i developed... but i seem to not have done some stuff related to getting the initialcontext correctly.. please review the code..

the exception which i get when this is executed is as follows...


Charith I Fernando<br />SCJP5, SCWCD, SCBCD, BSc(Hons) IS<br />+94 773 263 222 (mobile)
Charith Fernando
Ranch Hand

Joined: Sep 12, 2005
Posts: 67
the problem was the http://localhost:1099 line

it should've been localhost:1099

Vivek Gupta

Joined: May 02, 2005
Posts: 23
I used the localhost:1099, but get the following exception- Any clue

javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Permission denied: Datagram send failed [Root exception is
SocketException: Permission denied: Datagram send failed] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is Permission den
ied: connect]]]
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

It should be


- Marimuthu Madasamy
I agree. Here's the link:
subject: JBoss initialcontext problem
It's not a secret anymore!