• 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 of running an ejb client on Solaris

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I try to run a client on Solaris, it gives me an error

ERROR! Shared library ioser12 could not be found.

The Client Code is:


import java.util.*;
import java.rmi.*;
import javax.naming.*;
import sales.*;
import javax.ejb.*;
import javax.rmi.*;
import org.omg.CORBA.*;
public class SalesChannelClient{

public static void main(String args[]){

//Hashtable env=new Hashtable();
try {
Properties env = new Properties();
System.out.println("1");
env.put(javax.naming.Context.PROVIDER_URL,"iiop://192.9.44.28");
System.out.println("2");
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
System.out.println("3");
javax.naming.InitialContext ctx = new javax.naming.InitialContext(env);
System.out.println("4");
java.lang.Object obj = ctx.lookup("SalesChannel");
System.out.println("5");
sales.SalesChannelHome home = (sales.SalesChannelHome)PortableRemoteObject.narrow((org.omg.CORBA.Object)obj,sales.SalesChannelHome.class);
System.out.println("6");
sales.SalesChannel rem = home.create("0","1");
System.out.println("7");

}

catch(Exception e){
//System.out.println(e);
e.printStackTrace();
}

}
}


Can anyone help please!!!

Thanks and Regards
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic