• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic