Hi ppl,
I have a stateless session bean ChannelManager. I wrote a test class
ChannelManagerTest to test the bean.
Line 12: ChannelManager channelManager = (ChannelManager)
JNDIHelper.getHome("akela.pesos.content.news.ChannelManager");
( JNDIHelper is tested and is working just fine )
I get the following exception when I execute it:
java akela.pesos.client.ChannelManagerTest
Exception in thread "main" java.lang.ClassCastException: __Proxy4
at
akela.pesos.client.ChannelManagerTest.main(ChannelManagerTest.java:12)
jndi.properties is:
#Orion JNDI properties
#Mon Jul 31 11:09:18 EEST 2000
java.naming.provider.url=ormi\://127.0.0.1\:23791/mall
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.security.principal=admin
java.naming.security.credentials=123
Any idea ?
Peter.