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

UnsatisfiedLinkError Applet --> EJB

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I�m using WSAD 5 for Developing an Application which consists of an EJB-Module and a Web-Module. The whole Application is deployed to the WSAD-internal Server WAS 5.1.

The Web-Modul consists of a HTML-File which calls an Applet. The Applet trys to connect to an EJB on the Server. The problem: an UnsatisfiedLinkError appears in the Client console.

java.lang.UnsatisfiedLinkError: registerNatives
at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method)
at com.ibm.jvm.ExtendedSystem.<clinit>(ExtendedSystem.java:163)
at com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:224)
at com.ibm.rmi.util.JDKBridge.<clinit>(JDKBridge.java:203)
at com.ibm.rmi.util.RepositoryId.<clinit>(RepositoryId.java:107)
at com.ibm.rmi.iiop.CDROutputStream.<clinit>(CDROutputStream.java:1003)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1228)
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(Unknown Source)
at com.ibm.CORBA.iiop.GlobalORBFactory.init(GlobalORBFactory.java:45)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:198)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:260)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:166)
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:137)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source) ....

The code:
Properties props = new Properties();
props.put(Context.PROVIDER_URL,"iiop://localhost:2809");
props.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
System.out.println("Factory gesetzt!");
props.put(InitialContext.URL_PKG_PREFIXES,
"com.ibm.ws.naming");
InitialContext initCtx = new InitialContext(props);
Object objref = initCtx.lookup
("ejb/com/testag/beans/session/TestingHome");
TestingHome testingHome = (TestingHome)PortableRemoteObject.narrow
(objref,TestingHome.class);

The environment:
Application-Server: WAS 5.1 (also tested on WAS 6.0 - same Problem)
local JRE + Browser-Plugin: SUN 1.3.1_09
JARS delivered with Applet:
ejbcontainer.jar
ibmorb.jar
idl.jar
j2ee.jar
ns.jar
ras.jar
rt.jar
utils.jar
websphere.jar
+ EJB-JAR because of the Stubs
+ Applet in a futher JAR-File
All JARS are Signed.

It�s very important that the Client doesn�t have to install IBM-specific Client-Software to run the Applet.

Under this conditions, is it possible to make this Application work?
 
Are you okay? You look a little big. Maybe this tiny ad will help:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic