Hi, I've deployed a webservice (a simple java class) on weblogic7.1.
This java class tries to invoke a session ejb(which i've deplyed as a seperate jar), but it gives a runtime error :
Failed to invoke service:
javax.xml.rpc.soap.SOAPFaultException: com.sessiontest.TestWebServiceHome
my java class is :
try
{
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://localhost:7001");
InitialContext ctx=new InitialContext(p);
System.out.println("1");
Object objhome = ctx.lookup("TestWebService");
System.out.println("2");
TestWebServiceHome testwebhome =(TestWebServiceHome)PortableRemoteObject.narrow(objhome,TestWebServiceHome.class);
System.out.println("3");
TestWebServiceRemote testweb = (TestWebServiceRemote)PortableRemoteObject.narrow(testwebhome.create(),TestWebServiceRemote.class);
System.out.println("4");
int cnt = testweb.method1("FAST");
System.out.println("return from EJB :"+cnt);
}
catch(Exception ex)
{
System.out.println("XXX"+ex.getMessage());
}
String returnValue = "This message brought to you by the "+
"letter "+s+" and the number "+num;
return returnValue;
need uor help people,
Thanks
Ajay