将ear(myapp.ear)部署到weblogic 12.1.3时出现部署错误。错误:
NoClassDefFoundError:org / apache / commons / io / IOUtils
注意:
实际错误:
####<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 ::.>
答案 0 :(得分:0)
请参阅<prefer-web-inf-classes>
和<prefer-application-packages>
。
http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP602
类似的问题如下:
How to set order of jars in WebLogic?
我会首先尝试<prefer-application-packages>
解决方案。
然而,NoClassDef意味着该字体确实找不到。你编译它但它不再在类路径上(所以也检查你的耳朵的结构)。请参阅:What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?