Posted By:
Alfred_Leung
Posted On:
Friday, November 9, 2001 01:53 PM
In VAJ 4.0 EJB development environment, I have the following error when I get the home interface of a session bean and try to call the create() method: Exception in calling QuerySessionEJB(create()): CORBA COMM_FAILURE 3 No; nested exception is: org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No I create the bean by using codes inside a Javabean for JSP, the codes is as follows: ErrMsg = ""; if (querySessEJB != null) return ""; // EJB already created from previous call. // try { Context ctx = getInitialContext(); ErrSource = "lookup()"; QuerySessEJBHome querySessHome = (QuerySes
More>>
In VAJ 4.0 EJB development environment, I have the following error when I get the home interface of a session bean and try to call the create() method:
Exception in calling QuerySessionEJB(create()): CORBA COMM_FAILURE 3 No; nested exception is: org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No
I create the bean by using codes inside a Javabean for JSP, the codes is as follows:
ErrMsg = "";
if (querySessEJB != null) return ""; // EJB already created from previous call. //
try {
Context ctx = getInitialContext();
ErrSource = "lookup()";
QuerySessEJBHome querySessHome = (QuerySessEJBHome)ctx.lookup("utility.QuerySessEJBHome");
ErrSource = "create()";
System.out.println("Create QuerySessEJB for UserId: " + UserId);
querySessEJB = querySessHome.create(UserId);
} catch (NamingException ex) {
ErrMsg = "Naming Exception in calling QuerySessEJB(" + ErrSource + "): " + ex.getMessage();
} catch (Exception ex) {
ErrMsg = "Exception in calling QuerySessionEJB(" + ErrSource + "): " + ex.getMessage();
}
The above error message is from the ErrMsg variable. I try to test the bean by using VAJ "Tun Test Client" tool and it is alright.
Thank for any hints.
Alfred.
<<Less