Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss initialcontext problem

 
Charith Fernando
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Fernando
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the problem was the http://localhost:1099 line

it should've been localhost:1099

thnaks
 
Vivek Gupta
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
Java Monad Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be

jnp://localhost:1099
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic