HI Vincent,
I am developeing a full pledged framework based on Cactus since this
suits our Archtecture. Ur co-operation would be highly appreciable.
If I have to test EJB Local Object in Weblogic6.1, there r some issues
related to some configuration as below.
(1) For EJBLocalObject, is there any requirement of URL , so what
to do with the
#cactus.contextURL = http://localhost:7001/test .......... in
Cactus.Properties file
This will become remote if i use the above in cactus .properties
file. or should it need any changes ???????
(2) Whiule running the Testclient, they should run in same JVM as the
Weblogic server. But as per the ANT script in Build-share.xml, its
configured for an URL. How to configure for a running the client in same JVM as the
Weblogic
server .
How to configure the Build-share.xml, and Build-tests-weblogic-61.xml
files
...??????????/
Waiting for ur favourable response.
RThanks with regards,
Sathiya
----- Forwarded by Sathiyamurthy Ramachandran/APAC/i2Tech on 06/24/2002
08:44 PM -----
Sathiyamurthy Ramachandran
06/24/2002 05:47 PM
To: Sathiyamurthy Ramachandran/APAC/i2Tech@i2Tech
cc:
Subject: RE: Reg Supprt of EJBLocalObjects.
Hi Vincent,
I have alredy mailed reg. the exception in runnin the Client for EJBLocal
Object.
1.) Can u pl. send me a sample code for a Client prog. -> for testing
the EJBLocalObject.
2.) Also can u specify what r the changes to be made in ejb_jar.xml ,
weblogic-ejb-jar.xml, .
3) another doubt.... is there any confirguration to be done in web.xml related to
EJBLocalObject (beocs my Bean - having Remote calls works
fine only.
LocalEJB is a problem)
Hope to receive ur reply ASAP.
Thanks with regards,
sathiay
Sathiyamurthy Ramachandran
06/24/2002 05:09 PM
To: "Cactus Users List" <[EMAIL PROTECTED]>
cc:
Subject: RE: Reg Supprt of EJBLocalObjects.
Hi,
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: " +
ctx.lookup("TestSSB.Test").getClass().getClassLoader());
System.out.println("Directly printing name: " +
mysample.TestSSBLocalHome.class.getClassLoader());
TestSSBLocalHome home =
(TestSSBLocalHome)ctx.lookup("TestSSB.Test");
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:
weblogic.utils.classloaders.MultiClassFinder@11f64b
[java] Directly printing name:
weblogic.utils.classloaders.ChangeAwareClassLoader@591824 finder:
weblogic.utils.classloaders.MultiClassFinder@f3a9c
mysample.TestSSBBean_406vao_LocalHomeImpl
[junit] java.lang.ClassCastException:
mysample.TestSSBBean_406vao_LocalHomeImpl
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 Object
Thanks,
sathiya
"Vincent Massol" <[EMAIL PROTECTED]>
06/21/2002 08:36 PM
Please respond to "Cactus Users List"
To: "'Cactus Users List'" <[EMAIL PROTECTED]>
cc:
Subject: RE: Reg Supprt of EJBLocalObjects.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> 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
cactus
> 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.
-Vincent
>
> Its working fine with EJB Remote object..
>
> Very urgent..pl
>
> Thanks,
> Sathiya
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>