Help coderanch get a
new server
by contributing to the fundraiser
  • 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

local interfaces --- PLEASE HELP !!!!

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
when I tried to deploy my CMP 2.0 Entity Bean I deployed it with local interfaces only. In my Session Bean I try to lookup the Entity Bean (with "local:ejb/org/dipl/PersonHome") but I fail with the following exception:
WSCL0100E: Es wurde eine Ausnahmebedingung empfangen:
java.lang.reflect.InvocationTargetException:
javax.naming.ConfigurationException: Nami
ngManager.getURLContext can not find the factory for this scheme: local
at
com.ibm.ws.naming.jndicos.CNContextImpl.checkForUrlContext(CNContextImpl.java:2574)
at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1162)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at PersonClient.runClient(PersonClient.java:55)
at PersonClient.main(PersonClient.java:86)
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

Any1 out there who knows what is wrong here ?
Where do I get a local scheme from ?
Why didn't I find my entity Bean in the JNDI tree when running the dumpNameSpace.bat utility ?

Many thanx for your answers,
Max
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, you need to define the local reference in your ejb-jar.xml file, and then use "java:comp/env/LocalRefName" to locate the local entity EJB.
Hope it helps!
 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did define a local refence from my Session bean to the Entity bean. But why doesn't it show up in the JNDI tree ? Are local jndi entries stored somewhere else or isn't JNDI here used at all ?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to this document for an explanation as to why you can't see local reference bindings using dumpNameSpace, and a nice workaround.
http://publib7b.boulder.ibm.com/wasinfo1/en/info/ae/ae/rnam_dump_utility_java_local.html
[ June 17, 2003: Message edited by: Alan S. ]
 
Maximilian Trenks
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Alan.
 
What are your superhero powers? Go ahead and try them on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic