Hi,
I am trying to test a CMP EJB (local) with cactus. But I get
the following exception thrown by the SetUp() method of my
TestCase: Error: java.lang.reflect.UndeclaredThrowableException
My setUp() is really straigth-forward:
try
{
Context ctx = new InitialContext();
TelephoneLocalHome telephoneLocalHome =
(TelephoneLocalHome)ctx.lookup("java:comp/env/ejb/ciscoipphonenetworkweb/Telephone");
telephoneLocal = telephoneLocalHome.create("name",
"macaddress");
}
catch (Exception e)
{
fail( e.getMessage() );
}
I read it was possible to test local interface in the cactus
website but is it the case? I tested another setUp() method
this time with remote interface and I got no exception. What
else could cause this problem?
Thx in advance
Details about my tests:
-i use cactus 1.4 and a ServletTestRunner
-my app server is JBoss and the build-in Jetty service is my
webserver (and I think I read somewhere that they should be
running in the SAME jvm by default - or do they?)
_________________________________________________________
Envoyez des messages musicaux sur le portable de vos amis
http://mobile.lycos.fr/mobile/local/sms_musicaux/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>