Nick Stone

Greenhorn
+ Follow
since Jun 29, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nick Stone

Pressed the button while editing :-(

Please look at the other topic.
19 years ago
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?
19 years ago
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");
System.out.println("Provider URL gesetzt");
System.out.println("Context Provider URL:" +props.getProperty(Context.PROVIDER_URL));
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");
19 years ago