• 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

problem accessing ejb remotely - help

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i am trying to access ejb deployed in a websphere server through my workstation i am getting the following error
Exception in thread "P=979808 =0:CT" java.lang.VerifyError: (class: com/ibm/ejs/ras/RasContextSupp
ort, method: client_unmarshalled_request signature: (Lcom/ibm/CORBA/iiop/RequestHolder V) Incompat
ible object argument for method call
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:262)
at com.ibm.rmi.pi.InterceptorManager.runPreInit(InterceptorManager.java:146)
at com.ibm.rmi.corba.ORB.initializeInterceptors(ORB.java:416)
at com.ibm.CORBA.iiop.ORB.initializeInterceptors(ORB.java:885)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1247)
at com.ibm.CORBA.iiop.ORB.orbParameters(ORB.java:1151)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1178)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1704)
at org.omg.CORBA.ORB.init(ORB.java:406)
at com.ibm.CORBA.iiop.GlobalORBFactory.init(GlobalORBFactory.java:43)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:239)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.jav
a:164)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:135)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFac
tory.java:80)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at Test.main(Test.java:17)
//Here is the client code
Hashtable env = new Hashtable();
env.putContext.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://consulttemp41:900");
try {
Context initialContext = new InitialContext(env);
System.out.println("After Initial Context"+ initialContext);
}catch(Exception exp){
System.out.println("Exception " + exp);
}
waiting for favourable response
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
If your client his standalone client, check whether the stubs are in the path.
 
jaya jaya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this
java.util.Properties sp = System.getProperties();
sp.put("org.omg.CORBA.ORBClass","com.ibm.rmi.iiop.ORB");
sp.put("org.omg.CORBA.ORBSingletonClass","com.ibm.rmi.corba.ORBSingleton");
sp.put("javax.rmi.CORBA.UtilClass","com.ibm.rmi.javax.rmi.CORBA.Util");
sp.put("javax.rmi.CORBA.StubClass",
"com.ibm.rmi.javax.rmi.CORBA.StubDelegateImpl");
sp.put("javax.rmi.CORBA.PortableRemoteObjectClass",
"com.ibm.rmi.javax.rmi.PortableRemoteObject");
sp.put("java.naming.factory.initial",
"com.ibm.websphere.naming.WsnInitialContextFactory");
sp.put("java.naming.factory.url.pkgs","com.ibm.ws.naming");
System.setProperties(sp);


Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,factory);
env.put(Context.PROVIDER_URL,url);
env.put(Context.URL_PKG_PREFIXES,packages);
Context ctx = new InitialContext(env);
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sultan, please take a moment to change your display name to comply with our naming policy.
Thanks.
 
crispy bacon. crispy tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic