jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sathiyamurthy_Ramachand...@i2.com
Subject RE: Reg Supprt of EJBLocalObjects.
Date Mon, 24 Jun 2002 11:39:54 GMT

I am trying to test EJB Local Object using cactus 1.3 on Weblogic6.1. 

My TestClient  is  as below :

        Context    ctx = new InitialContext( );

                System.out.println("Loader name of looked up home: " + 
                System.out.println("Directly printing name: " + 

            TestSSBLocalHome  home = 
        TestSSBLocal tLocal = home.create();

When I execute the client, I get the exception as below: 

[junit]     Caused an ERROR
[java] Loader name of looked up home: 
weblogic.utils.classloaders.GenericClassLoader@33fe5d finder:
[java] Directly printing name: 
weblogic.utils.classloaders.ChangeAwareClassLoader@591824 finder: 

[junit] java.lang.ClassCastException: 

As  above, I get class clast exception: Aslo Ithe class loader  are 
different for the same classs - " TestSSBLocalHome.class. "   which is looked up
( 1 )  Can u  figure  out thy this difference in class loaders . Also why 
I am getting the class cast exception.
(2)    Is there any changes to be made in my client code ???????????
(3) Becos I am not using any   : URL =" t3/localhost....." since   I am using a  EJBLocal



"Vincent Massol" <vmassol@octo.com>
06/21/2002 08:36 PM
Please respond to "Cactus Users List"

        To:     "'Cactus Users List'" <cactus-user@jakarta.apache.org>
        Subject:        RE: Reg Supprt of EJBLocalObjects.

> -----Original Message-----
> From: Sathiyamurthy_Ramachandran@i2.com
> [mailto:Sathiyamurthy_Ramachandran@i2.com]
> Sent: 21 June 2002 15:02
> To: Cactus Users List
> Subject: Reg Supprt of EJBLocalObjects.
> Hi,
> I have a doubt. I want to test EJB Local Object. Is ir supported in
> 1.3 ? Can i test beans with EJBLocalObject interface instead of Reote
> Objects????

Yes, it is supported (I am using it on my current work project). The way
to do it is to have a ServletTestCase which does the lookup of your
local ejb.


> Its working fine with EJB Remote object..
> Very urgent..pl
> Thanks,
> Sathiya

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

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