我的一个 .war 包布署在 Tomcat 时能正常运行,但将其布署到 Websphere 下后,登录时竟然报了一个 java.lang.NoClassDefFoundError 异常,在网上找了半天都没找到答案,希望在此能得到大侠们的解答!
异常的详细信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bottomLeftPane' defined in class path resource [com/bjnkd/main/config/explorer-plug.xml]: Cannot resolve reference to bean 'leftPane' while setting bean property 'relativePlug'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'leftPane' defined in class path resource [com/bjnkd/main/config/explorer-plug.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bjnkd.main.plug.FuncList]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/bjnkd/auth/filter/SingleAuthFilter
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'leftPane' defined in class path resource [com/bjnkd/main/config/explorer-plug.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bjnkd.main.plug.FuncList]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/bjnkd/auth/filter/SingleAuthFilter
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bjnkd.main.plug.FuncList]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/bjnkd/auth/filter/SingleAuthFilter
Caused by: java.lang.NoClassDefFoundError: com/bjnkd/auth/filter/SingleAuthFilter
at com.bjnkd.main.actionserver.servlet.ActionServer.doAction(ActionServer.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
at java.lang.reflect.Method.invoke(Method.java)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:157)
at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:365)
at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java)
at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java)
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java)
at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:248)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:965)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)