ejb - NoClassDefFoundError: Can't instantiate class on application server, works fine locally -
i have ear running on weblogic contains ejb. runs until ejb tries instantiate object of servicefactory - 1 of our own classes.
in unit tests, create object of class locally. it's on server error occurs.
i'm guessing either build/packaging issue or weblogic 10.3.6 quirk don't know proceed here given dependency exists in ear (in app-inf/lib). i've tried moving dependency contains class root of ear. "class-path: " blank in manifest.mf file ejb , ear, product has run fine until without them. i'm building maven.
javax.ejb.ejbexception: do: seems odd quirk of ejb spec. exception is:java.lang.noclassdeffounderror: not initialize class com.company.ts.management.icm.service.servicefactory @ com.oracle.pitchfork.intercept.methodinvocationinvocationcontext.proceed(methodinvocationinvocationcontext.java:110) @ com.company.it.techservices.aae.service.commonservice.bizlog(commonservice.java:37) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.bea.core.repackaged.springframework.aop.support.aoputils.invokejoinpointusingreflection(aoputils.java:310) @ com.oracle.pitchfork.intercept.jeeinterceptorinterceptor.invoke(jeeinterceptorinterceptor.java:68) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:171) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.doproceed(delegatingintroductioninterceptor.java:131) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.invoke(delegatingintroductioninterceptor.java:119) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:171) @ com.oracle.pitchfork.spi.methodinvocationvisitorimpl.visit(methodinvocationvisitorimpl.java:34) @ weblogic.ejb.container.injection.environmentinterceptorcallbackimpl.callback(environmentinterceptorcallbackimpl.java:54) @ com.oracle.pitchfork.spi.environmentinterceptor.invoke(environmentinterceptor.java:42) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:171) @ com.bea.core.repackaged.springframework.aop.interceptor.exposeinvocationinterceptor.invoke(exposeinvocationinterceptor.java:89) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:171) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.doproceed(delegatingintroductioninterceptor.java:131) @ com.bea.core.repackaged.springframework.aop.support.delegatingintroductioninterceptor.invoke(delegatingintroductioninterceptor.java:119) @ com.bea.core.repackaged.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:171) @ com.bea.core.repackaged.springframework.aop.framework.jdkdynamicaopproxy.invoke(jdkdynamicaopproxy.java:204) @ com.sun.proxy.$proxy476.calculateroles(unknown source) @ com.company.it.techservices.aae.autheng.authorizationenginebean_t79b4w_authorizationenginebeanremoteimpl.__wl_invoke(unknown source) @ weblogic.ejb.container.internal.sessionremotemethodinvoker.invoke(sessionremotemethodinvoker.java:40) @ com.company.it.techservices.aae.autheng.authorizationenginebean_t79b4w_authorizationenginebeanremoteimpl.calculateroles(unknown source) @ com.company.it.techservices.aae.autheng.authorizationenginebean_t79b4w_authorizationenginebeanremoteimpl_wlskel.invoke(unknown source) @ weblogic.rmi.internal.basicserverref.invoke(basicserverref.java:667) @ weblogic.rmi.cluster.clusterableserverref.invoke(clusterableserverref.java:230) @ weblogic.rmi.internal.basicserverref$1.run(basicserverref.java:522) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:363) @ weblogic.security.service.securitymanager.runas(securitymanager.java:146) @ weblogic.rmi.internal.basicserverref.handlerequest(basicserverref.java:518) @ weblogic.rmi.internal.wls.wlsexecuterequest.run(wlsexecuterequest.java:118) @ weblogic.work.executethread.execute(executethread.java:256) @ weblogic.work.executethread.run(executethread.java:221)
in general noclassdeffounderror
means class found not initialize. in code class throws error when instantiated (it mean different class entirely missing).
check code class. static blocks or members use class that's not found classloader.
Comments
Post a Comment