【问题标题】:unexpected error condition deploying war on new WebLogic server在新的 WebLogic 服务器上部署战争时出现意外错误情况
【发布时间】:2023-03-28 19:24:01
【问题描述】:

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

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

WebLogic 通过 ./startWebLogic.sh 正常启动,我能够登录到管理控制台。

在管理控制台中执行这些步骤后: 部署 > 安装 > 上传文件 > 选择文件 > 选择文件系统上的战争 > 下一步

点击下一步后,浏览器出现如下错误:

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

并且日志中出现以下错误:

<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 ::.> 

如果我可以提供更多信息来帮助解决问题,请告诉我。谢谢!

【问题讨论】:

  • 我猜是war文件有问题,而不是weblogic本身。发生这种情况时,您要上传什么战争?会发生在不同的战争中吗?你可以试试wlserver_10.3/samples/server/examples文件夹中weblogic自带的一个。
  • 这不是战争。在控制台中选择要上传的 .war 后单击下一步时出现错误。在完成和部署战争之前还有几个步骤。无论如何,我只是安装了 wls12120 并没有遇到这个问题

标签: weblogic weblogic12c


【解决方案1】:

日志实际上告诉您出了什么问题 - org/apache/commons/io/IOUtils 类丢失了。我不确定为什么它不包含在 WebLogic 中,但您可以从 Apache Commons 项目 (http://commons.apache.org/proper/commons-io/download_io.cgi) 中获取包含此类的包。

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

【讨论】:

  • 我同意日志告诉我们出了什么问题。似乎是 WebLogic wls1213 中的一个错误,因为它在 wls12120 上正常工作,并且真的不需要将 jar 复制到类路径中,只是为了在全新的 WebLogic 安装上使用控制台。
  • hmm...是的,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 中的 prefer-application-packages 下注释掉“org.apache.commons.*”的条目,即使我删除了 commons,它也可以工作-io jar 在 consoleapp/APP-INF/lib 文件夹中。
  • 谢谢。我已经接受了答案,因为您提供了可行的解决方法
【解决方案2】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-10
    • 2019-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-23
    • 1970-01-01
    相关资源
    最近更新 更多