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]

Reply via email to