Hi,
Thanks for your answer.

Castro, David wrote:

> well - I believe currently the only other way is to run them in separate
> VMs.
But then i won't be able to deploy any EAR file ? right ?

 
> What you are trying to do is non-optimized in-VM operation, and there is
> currently a problem where exceptions do not get serialized.

  I understand somehow what you mean by non-optimized, but then how can 
I make it to be optimized ? Would that solve the exception problem ?



thanks again,

Elouan.

 
>> -----Original Message-----
>> From: elouan [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, February 26, 2001 11:35 AM
>> To: [EMAIL PROTECTED]
>> Subject: [jBoss-User] java.lang.reflect.UndeclaredThrowableException
>> 
>> 
>> Hi everyone,
>> 
>> I am dealing with a topic that has been debated couple of 
>> times on this 
>> mailing list, it's the infamous 
>> java.lang.reflect.UndeclaredThrowableException.
>> 
>> I am using the latest bundled version of 
>> jboss2.1-tomcat.3.2.1 ( the one 
>> Rickard has been advertising lately on this mailing list), on jdk1.3 
>> winnt4.
>> 
>> - I am using two stateless session beans A and B.
>> - A has a method Client getclient() that can throw a 
>> ClientNotFoundException.
>> - B calls A.getclient()
>> - sometime it is wise that A throws the ClientNotfoundException when 
>> called by B and that B catches it.
>> - A and B are well packed in an A.jar and B.jar and both include the 
>> Client.class and ClientNotfoundException.class.
>> 
>> - now, if A.jar and B.jar are packed in the same EAR file , 
>> everything 
>> works fine.
>> 
>> - If A.jar is packed in webapp1.ear and B.jar is packed in 
>> webapp2.ear, 
>> it works fine as well ( they can exchange Client objects). But if the 
>> ClientNotfoundException is thrown by A,  B can't catch it 
>> because it gets
>> the java.lang.reflect.UndeclaredThrowableException with nested 
>> ClientNotfoundException.
>> 
>> - If i don't pack A.jar and B.jar in any EAR file, ie: deploy them 
>> directly, i have the same error.
>> 
>> I know that this is some Classloader issue, and i was 
>> wondering if there 
>> was some other way to solve this than  :
>> a) put both beans in the same EAR file
>> b) put all the shared classes in the Jboss Classpath instead 
>> of packed 
>> with the bean?
>> 
>> thanks in advance,
>> Elouan.
>> 
>> 
>> 
>> --
>> --------------------------------------------------------------
>> To subscribe:        [EMAIL PROTECTED]
>> To unsubscribe:      [EMAIL PROTECTED]
>> List Help?:          [EMAIL PROTECTED]
>> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> This message (including any attachments) contains confidential, proprietary
> or privileged information intended for a specific purpose and individual(s),
> and is protected by law.  If you receive this message in error, please
> immediately delete it and all copies of it from your system, destroy any
> hard copies of it and notify the sender.  Any unauthorized disclosure,
> copying or distribution of any part of this message, or the taking of any
> unauthorized action based on it, is strictly prohibited.
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to