Problem Statement:
1.I write HelloWorld
EJB and deploy it on my WebLogic Server successful.
2.Open the resin.conf file in the directory of %RESIN_HOME%/conf/resin.conf and add those codes
<jndi-link>
<jndi-name>
java:comp/env/ejb/HelloSession</jndi-name>
<jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
<init-param java.naming.provider.url="t3://10.132.4.230:7001"/>
<jndi-lookup>HelloSession</jndi-lookup>
</jndi-link>
3.Write two same WebApp which has a
servlet(named helloservlet) to invoke the ejb on the WebLogic Server, then put them in the directory of %RESIN_HOME%/webapps/
4.As the result, I can invoke the servlet successful in one WebApp, but if I invoke another one the resin will prompt "ClassCastException" error
Who can tell me how to resovle it and which one invoke the error WebLogic Server or Resin?
If you can understand what I said I will email the codes to you.
Thanks