-
1. Re: A problem about invoke ejb from servlet
darranl Jan 16, 2004 6:53 AM (in response to mystzhm)You probably forgot to say the magic words during your installation.
-
2. Re: A problem about invoke ejb from servlet
mystzhm Jan 16, 2004 7:07 AM (in response to mystzhm)"mystzhm" wrote:
I'm sorry , I don't know "magic words" means what.
When I installa jdk ,there is no err,but when the servlet run to the home.create() ,I can catch a err
java.lang.reflect.UndeclaredThrowableException -
3. Re: A problem about invoke ejb from servlet
juha Jan 17, 2004 2:52 AM (in response to mystzhm)You need to post full error description and stack traces when requesting help for your problems.
-
4. Re: A problem about invoke ejb from servlet
mystzhm Jan 17, 2004 10:02 AM (in response to mystzhm)I apologize, maybe I didn't express clearly.
I use tomcat4.1+jboss2.2.1+jdk1.4.1 before, when I update my jdk to jdk1.4.2 , I can't call my ejb componts from tomcat4.1 anymore , the code is like this
try {
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
JbossServer);
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("PtlEjb");
PtlEjbHome home = (PtlEjbHome)
PortableRemoteObject.narrow (ref, PtlEjbHome.class);
ejb = home.create();
ejb.PTLCdromConv(PTLFile,CSVFile,SelectItem);
} catch(Exception e) {System.out.println("Connect Jboss server error");
}
when it run to "ejb = home.create();" I catch an exception . "java.lang.reflect.UndeclaredThrowableException"
if I turn back to jdk1.4.1, there is none err
Please help , thanks -
5. Re: A problem about invoke ejb from servlet
juha Jan 17, 2004 10:06 AM (in response to mystzhm)Still need the full stack trace. The exception name itself gives little to no information.