在新WebLogic服务器上部署war时出现意外错误

在新WebLogic服务器上部署war时出现意外错误,weblogic,weblogic12c,Weblogic,Weblogic12c,我试图在OSX 10.9.4上的新WebLogic 12c服务器上部署一个简单的war文件 我通过wls1213_devzip_update1.zip安装,并按照自述文件中的说明配置新安装 WebLogic通过./startWebLogic.sh启动时没有错误,我可以登录到管理控制台 在管理控制台中执行以下步骤后: 部署>安装>上载文件>选择文件>选择文件系统上的war>下一步 单击“下一步”后,浏览器中出现以下错误: 检测到意外的错误情况。详细信息已记录在管理服务器日志中 以及日志中的以下错误

我试图在OSX 10.9.4上的新WebLogic 12c服务器上部署一个简单的war文件

我通过wls1213_devzip_update1.zip安装,并按照自述文件中的说明配置新安装

WebLogic通过./startWebLogic.sh启动时没有错误,我可以登录到管理控制台

在管理控制台中执行以下步骤后: 部署>安装>上载文件>选择文件>选择文件系统上的war>下一步

单击“下一步”后,浏览器中出现以下错误:

检测到意外的错误情况。详细信息已记录在管理服务器日志中

以及日志中的以下错误:

<Feb 1, 2015 6:50:49 AM MST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <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].> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423137> <There was an error loading the requested URI null.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <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].> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /com/bea/console/actions/app/install/Flow.jpf.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423137> <There was an error loading the requested URI null.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423405> <An exception [java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils] was thrown while rendering the content at [null].> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423137> <There was an error loading the requested URI null.> 
<Feb 1, 2015 6:51:43 AM MST> <Error> <netuix> <BEA-423223> <There was an error while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control :: null ::.> 


让我知道,如果有更多的信息,我可以提供帮助解决问题。谢谢

日志实际上告诉您出了什么问题-缺少org/apache/commons/io/IOUtils类。我不知道为什么WebLogic中没有包含这个类,但是您可以从ApacheCommons项目()获得包含这个类的包


我也遇到了同样的问题,但通过将包中的commons-io-2.4.jar复制到$MW_HOME/wlserver/server/lib/consoleapp/APP-INF/lib(它似乎包含了所有其他commons jar)来修复它。

感谢您的发现。我们最近更新了WLS管理控制台使用的apache fileupload版本,作为安全补丁的一部分,并引入了对commons io的新依赖,该依赖在过程中的某个地方丢失了。我们会找到的。在此期间,将jar复制到consoleapp/APP-INF/lib是一个合适的解决方法(这就是我们的修复程序将要做的)


我相信这个问题只会在部署期间影响控制台的上传功能。所有其他功能都应该按预期工作。

我猜是war文件有问题,而不是weblogic本身。发生这种情况时,你正在上传什么战争?这会发生在另一场战争中吗?你可以在
wlserver\u 10.3/samples/server/examples
文件夹中尝试weblogic附带的一款。这不是战争。在控制台中选择要上载的.war后,单击“下一步”时出现错误。在完成和部署战争之前还有几个步骤。无论如何,我只是安装了wls12120,并没有遇到问题。我同意日志告诉我们出了什么问题。看起来像是WebLogic wls1213中的一个bug,因为它在wls12120上运行时没有错误,并且实际上不需要将jar复制到类路径中,只是为了在新的WebLogic安装上使用控制台。嗯……是的,WebLogic在WL_HOME/wlserver/modules/com.bea.core.apache.commons.io_1.2.0.0_1-4.jar中包含了它自己的包。看起来FilteringClassLoader正在阻止加载它。如果我在WL_HOME/server/lib/consoleapp/META-INF/weblogic-applocation.xml中的首选应用程序包下注释掉“org.apache.commons.*”条目,即使我删除了consoleapp/APP-INF/lib文件夹中的commons io jar,它也能工作。谢谢。我已经接受了答案,因为你提供了一个可行的解决办法