首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

项目由Tomcat迁移到Websphere时报java.lang.NoClassDefFoundError错误

2013-09-11 
项目由Tomcat迁移到Websphere时报java.lang.NoClassDefFoundError异常我的一个 .war 包布署在 Tomcat 时能

项目由Tomcat迁移到Websphere时报java.lang.NoClassDefFoundError异常
我的一个 .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)


at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


[解决办法]
进was控制台,安全性->安全管理、应用程序和基础结构,去掉“使用 Java 2 安全性来限制应用程序访问本地资源 ”前台的勾,保存,重启服务器
我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.myexception.cn/j2ee/10759.html

热点排行