jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sathiyamurthy_Ramachand...@i2.com
Subject Hello Mr Vincent..Ur Attn. pl.....
Date Wed, 26 Jun 2002 14:19:20 GMT
Hi Vincent,

I am trying to run a testclient to test EJBLocalObject interface. 

Lookup is fine but when I get a home interface refernce, an exceptionis 
thrown as " Class cast exception..................." . Once This is 
solved, my  EJB LocalObjectTesting  get successfully over Using the Cactus 
( which  is  only  tools supporintg my reqment....).

Any idea why this happens. : can u pl.  send a code samplet  how to code a 
client for EJBLocalObject ( incae mine is wrong)
My client code is as below:



......
        Context ctx = new InitialContext();
        home = (TestSSBLocalHome)ctx.lookup("TestSSB.Test");
        tLocal = home.create();
        output= tLocal.printSomething("IQUOTE");
        expected = "IQUOTEIQUOTE";
        System.out.println("Expceted / outpur from BEAN Client is 
.........V: " + output);
.......
My exception is as below :



19:44:44,585 [main] DEBUG mysample.TestingSSBClient       - ------------- 
Test: testRunme 
19:44:44,741 [main] DEBUG mysample.TestingSSBClient       - Exception in 
test 
java.lang.ClassCastException: mysample.TestSSBBean_406vao_LocalHomeImpl
        at mysample.TestSSBClient.runme(TestSSBClient.java:67)
        at mysample.TestingSSBClient.testRunme(TestingSSBClient.java:50)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:524)
        at 
org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:490)
        at 
org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.java:148)
        at 
org.apache.cactus.server.AbstractTestController.dispatch79_handleRequest(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):123)
        at 
org.apache.cactus.server.AbstractTestController.around79_handleRequest(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):1147)
        at 
org.apache.cactus.server.AbstractTestController.handleRequest(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
        at 
org.apache.cactus.server.ServletTestRedirector.dispatch88_doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):132)
        at 
org.apache.cactus.server.ServletTestRedirector.around88_doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):1147)
        at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):118)
        at 
org.apache.cactus.server.ServletTestRedirector.dispatch87_doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):105)
        at 
org.apache.cactus.server.ServletTestRedirector.around87_doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):1147)
        at 
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
        at 
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
        at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
        at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2501)
        at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



Thanks Vincent,
sathiya

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message