Hi all,

I've embedded Axis2 in an EAR file and implemented a message driven bean(MDB) 
as transport receiver which delegates the incoming message to the actual 
service. When my message passed into Axis2 service skeleton, I need to call a 
remote EJB which is deployed in another EAR file. But, I constantly get 
"java.lang.ClassCastException: Cannot narrow remote object to ..." exception 
while calling remote EJB. It doesn't occur when I call it from within MDB. 

To be more clear;
- MDB 
  - initializes Axis2
   - retrieves incoming message
  - passes the message to the Axis2 service
- Axis2 service skeleton
  - retrieves message sent through MDB
  - calls remote EJB

I create initial context without passing environment map and hoping it to be 
passed automaticaly by the server. But, I don't understand why this solution 
works in MDB but not in service skeleton.

I've put remote interfaces' jar;
- under lib folder of service .aar file - didn't work
- under ear file and addressing it in MANIFEST.MF file - didn't work
- into system classpath - *worked* but smells like a work around and I don't 
know how it worked, actually :)

I am using;
- Windows XP professional
- Java 1.4.2_12
- WebLogic 8.1 SP3
- axis2.ear which comprises axis2 libraries, MDB, definitions for remote EJB
- myapp.ear which comprises EJB called by service skeleton loaded by axis2.ear

Thanks for any suggestions anyways.

Ali Sadik Kumlali



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to