• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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");
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");
 
Nick Stone
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pressed the button while editing :-(

Please look at the other topic.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UnsatisfiedLinkErrors are usually caused when a native library has already been loaded by one ClassLoader and a different ClassLoader attempts to load it again. When we moved from WAS 4.x to 5.x we went thru a long pain period with ClassLoader issues. Try adjusting your ClassLoader policies until it works and then you should get a rough idea of which ClassLoader is causing the problem.

Mike
 
reply
    Bookmark Topic Watch Topic
  • New Topic