Thanks. Well please tell me how to put the STUB of the EJB HomeInterace in web application which is running in Tomcat.whether I have to put it as JAR file or as
JAVA file. My present directory structure is
EJB in WEBLOGIC
com.ingo.ejb
UserHome.class
UserRemote.class
UserBean.class
META-INF
ejb-jar.xml
weblogic-ejb-jar.xml
manifest
In Tomcat
webapp/web
src
com.ingo.struts.bd
UserDelegate.java
UserHome.java
UserRemote.java
com.ingo.struts.action
UserAction.java
class
com.ingo.struts.bd
UserDelegate.class
UserHome.class
UserRemote.class
My JNDI name is userHomeJNDI.
My lookup statement in UserDelegate.java is :
Properties p=new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ctx=new InitialContext(p);
UserHome uh=(UserHome)ctx.lookup("userHomeJNDI");
which is giving ClassCastException.Please help me.