Getting java.rmi.RemoteException: EJB Exception Eventhough classpath, XMLs, Beans are correctly defined and deployed -
i having bad time debugging problem. migrating codes java 1.4 jdk 6 , weblogic 8.1.5 weblogic 10.3. have converted deployment descriptors of ejbs using ddconverver utility of weblogic. beans consists of stateless session , entity beans (2.1). application made of jsp front-end , ejbs middle ware. while logging calling 1 session bean internally called entity beans , loads same. getting following exception when session bean calls entity bean. session call successful, issue entity call session bean.
i using development environment this. jsps stored @ c:\misasiaappln10.3_dev\misasia\autodeploy\misasia ejbs deployed @ c:\misasiaappln10.3_dev\misasia\servers\adminserver\upload
exception details:
java.rmi.remoteexception: ejb exception: ; nested exception is: java.lang.noclassdeffounderror: com/misasia/admin/setupmaster/setupmasterhome @ weblogic.rmi.internal.serverrequest.sendreceive(serverrequest.java:205) @ weblogic.rmi.internal.basicremoteref.invoke(basicremoteref.java:222) @ com.misasia.admin.ctrlsession.controlsession_ho24d0_eoimpl_1030_wlstub.login(unknown source) @ jsp_servlet.__index._jspservice(__index.java:197) @ weblogic.servlet.jsp.jspbase.service(jspbase.java:34) @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227) @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:292) @ weblogic.servlet.internal.servletstubimpl.onaddtomapexception(servletstubimpl.java:408) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:318) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:175) @ weblogic.servlet.internal.webappservletcontext$servletinvocationaction.run(webappservletcontext.java:3498) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:321) @ weblogic.security.service.securitymanager.runas(unknown source) @ weblogic.servlet.internal.webappservletcontext.securedexecute(webappservletcontext.java:2180) @ weblogic.servlet.internal.webappservletcontext.execute(webappservletcontext.java:2086) @ weblogic.servlet.internal.servletrequestimpl.run(servletrequestimpl.java:1406) @ weblogic.work.executethread.execute(executethread.java:201) @ weblogic.work.executethread.run(executethread.java:173) caused by: java.lang.noclassdeffounderror: com/misasia/admin/setupmaster/setupmasterhome @ com.misasia.admin.ctrlsession.controlbean.loadsetupmaster(controlbean.java:149) @ com.misasia.admin.ctrlsession.controlbean.login(controlbean.java:119) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ com.bea.core.repackaged.springframework.aop.support.aoputils.invokejoinpointusingreflection(aoputils.java:281) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.invokejoinpoint(reflectivemethodinvocation.java:187) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:154) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.doproceed(delegatingintroductioninterceptor.java:126) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.invoke(delegatingintroductioninterceptor.java:114) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:176) @ com.bea.core.repackaged.springframework.jee.spi.methodinvocationvisitorimpl.visit(methodinvocationvisitorimpl.java:15) @ weblogic.ejb.container.injection.environmentinterceptorcallbackimpl.callback(environmentinterceptorcallbackimpl.java:54) @ com.bea.core.repackaged.springframework.jee.spi.environmentinterceptor.invoke(environmentinterceptor.java:30) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:176) @ com.bea.core.repackaged.springframework.aop.interceptor.exposeinvocationinterceptor.invoke(exposeinvocationinterceptor.java:89) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:176) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.doproceed(delegatingintroductioninterceptor.java:126) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.invoke(delegatingintroductioninterceptor.java:114) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:176) @ com.bea.core.repackaged.springframework.aop.framework.jdkdynamicaopproxy.invoke(jdkdynamicaopproxy.java:210) @ $proxy60.login(unknown source) @ com.misasia.admin.ctrlsession.controlsession_ho24d0_eoimpl.login(controlsession_ho24d0_eoimpl.java:840) @ com.misasia.admin.ctrlsession.controlsession_ho24d0_eoimpl_wlskel.invoke(unknown source) @ weblogic.rmi.internal.serverrequest.sendreceive(serverrequest.java:172) ... 18 more caused by: java.lang.classnotfoundexception: com.misasia.admin.setupmaster.setupmasterhome @ weblogic.utils.classloaders.genericclassloader.findlocalclass(genericclassloader.java:283) @ weblogic.utils.classloaders.genericclassloader.findclass(genericclassloader.java:256) @ java.lang.classloader.loadclass(classloader.java:306) @ java.lang.classloader.loadclass(classloader.java:251) @ weblogic.utils.classloaders.genericclassloader.loadclass(genericclassloader.java:176) @ java.lang.classloader.loadclassinternal(classloader.java:319) ... 44 more
sample codes:
call of session jsp (this works fine)
env.put(context.initial_context_factory,"weblogic.jndi.wlinitialcontextfactory"); env.put(context.provider_url, "t3://localhost:7001"); ic = new initialcontext(env); ctrlhome = (controlhome)ic.lookup("controlsessionejb"); ctrl = (control)ctrlhome.create();
call of entity session (this fails)
object refsetup = ic.lookup("java:comp/env/ejb/setupmasterejb"); // line gives error setupmasterhome setuph = (setupmasterhome)portableremoteobject.narrow(refsetup, setupmasterhome.class);
java.lang.noclassdeffounderror: com/misasia/admin/setupmaster/setupmasterhome
means setupmasterhome.class
missing in server/module
classpath while executing controlbean's loadsetupmaster
method. adding appropriate jar solve problem.
Comments
Post a Comment