dcsimg
URGENT : SOAP & EJB
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   bharani_iyer
Posted On:   Friday, November 16, 2001 04:11 AM

Hi , I have a SOAP Service which forwards requests to an Stateful Session EJB deployed on WAS AE 4.0. I have a single .ear file which contains both the soap service facility(rpcrouter et all) in .war and EJB's in a .jar file. The Service object fails everytime with the following error : javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial The Service object code is as follows : InitialContext context = new InitialContext(); Object obj = context.lookup(SERVER_HOME); home = (TalkxmlServerHome) javax.rmi.Portab   More>>

Hi ,

I have a SOAP Service which forwards requests to an Stateful Session EJB deployed on WAS AE 4.0.

I have a single .ear file which contains both the soap service facility(rpcrouter et all) in .war and EJB's in a .jar file.

The Service object fails everytime with the following error :

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

The Service object code is as follows :

InitialContext context = new InitialContext();

Object obj = context.lookup(SERVER_HOME);
home = (TalkxmlServerHome) javax.rmi.PortableRemoteObject.narrow(obj,TalkxmlServerHome.class);

It appears to me as if the jndi properties/configuration are not being picked up! However, these properties are already set correctly in the App server/lib/ns.jar which contains jndi.properties.


Has anyone encountered this problem before ? Any suggestions in this regard would be welcome.


Thanks in advance,
bharani.

   <<Less
About | Sitemap | Contact