We recently upgraded from Web Logic Server 6.1 to Web Logic 8.1 SP4. I did not encounter any errors during building of the webservice nor during deployment.
However, I am getting the following error:
javax.naming.NameNotFoundException: Unable to resolve 'EcasServices' Resolved ; remaining name 'EcasServices'
The code is as follows:
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
String url = ECWSurl+":80";
prop.put(Context.PROVIDER_URL,url);
Context initialContext = new InitialContext(prop);
EcasServices service = (EcasServices) initialContext.lookup("EcasServices");
Could anyone please throw light on what I am doing wrong? I am new to Web Logic and Web Services. Any help is greatly appreciated.