• Post Reply Bookmark Topic Watch Topic
  • New Topic

initialcontext.lookup("java:portal/UserModule") jboss  RSS feed

ashwini vikas kalmutt
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I created one portlet and in that i am trying to lookup the user module of jboss. but its showing the portal not bound error.

code :

(UserModule) new InitialContext().lookup("java:portal/UserModule");

error :

15:54:43,110 ERROR [STDERR] javax.naming.NameNotFoundException: portal not bound
15:54:43,111 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
15:54:43,111 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
15:54:43,111 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
15:54:43,111 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
15:54:43,111 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
15:54:43,111 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
15:54:43,111 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source)

Should i do any configuration on jboss side, i added the identity jar in my project to use its interfaces.

please help me out.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!