[英]WebLogic - Jar is there but NoClassDefFoundError: org/apache/commons/io/IOUtils
Getting a deployment error when deploying an ear (myapp.ear) to weblogic 12.1.3. 将耳朵(myapp.ear)部署到weblogic 12.1.3时遇到部署错误。 Error: 错误:
NoClassDefFoundError: org/apache/commons/io/IOUtils NoClassDefFoundError:org / apache / commons / io / IOUtils
Notes: 笔记:
Actual Error: 实际错误:
####<Apr 7, 2015 8:12:01 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451921167> <BEA-423147> <Exception [com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] thrown while trying to do task [handlePostbackData] in class [com.bea.netuix.servlets.controls.content.PageFlowContent].>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922415> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922415> <BEA-423137> <There was an error loading the requested URI null.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922431> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [/com/bea/console/actions/app/install/Flow.jpf].>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423137> <There was an error loading the requested URI /com/bea/console/actions/app/install/Flow.jpf.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423137> <There was an error loading the requested URI null.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922446> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922477> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922477> <BEA-423137> <There was an error loading the requested URI null.>
####<Apr 7, 2015 8:12:02 PM EDT> <Error> <netuix> <IBMADM-BL787D> <myserver> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1428451922477> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.>
See <prefer-web-inf-classes>
and <prefer-application-packages>
. 请参阅<prefer-web-inf-classes>
和<prefer-application-packages>
。
http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP602 http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP602
And similar questions like: 以及类似的问题:
How to set order of jars in WebLogic? 如何在WebLogic中设置jar的顺序?
I would try a <prefer-application-packages>
solution first. 我会先尝试<prefer-application-packages>
解决方案。
However, NoClassDef means the class was literally not found. 但是,NoClassDef意味着实际上找不到该类。 You compiled it but it's no longer on the classpath (so also check the structure of your ear). 您已经对其进行了编译,但是它不再位于类路径中(因此还要检查您的耳朵的结构)。 See: What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException? 请参阅: 什么原因以及NoClassDefFoundError和ClassNotFoundException之间有什么区别?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.