高分请教Intra-mart问题
请问大虾:在Intra-mart中,如何配置jndi?
我现在在 (web.xml中) <jndi-link>
<jndi-name>java:comp/com/myname</jndi-name>
<jndi-factory>com.caucho.hessian.HessianContextFactory</jndi-factory>
<init-param>
<param-name>java.naming.provider.url</param-name>
<param-value>http://10.4.0.227:8080/imart/ejb</param-value>
</init-param>
运行出现下面异常:java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at _sample._ejb._hello._hello__jsp._jspService(_hello__jsp.java:46)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
请问如何解决!
谢谢