This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JBoss initialcontext problem" Watch "JBoss initialcontext problem" New topic
Author

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...



thanks


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

thnaks
Vivek Gupta
Greenhorn

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 java.net.
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 java.net.SocketException: Permission den
ied: connect]]]
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

It should be

jnp://localhost:1099


- Marimuthu Madasamy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss initialcontext problem