Weblogic:如何防止“bean代码与生成的代码之间存在不匹配”部署时 [英] Weblogic: How to prevent "A mismatch exists between the bean code and generated code" when deploying
问题描述
我在WebLogic 12c上使用WLST(脚本)自动部署(12.1.3 - 最新)。这会自动在受管服务器(而非管理服务器)上部署我的企业应用程序。
I use WLST (scripted) automatic deployment on WebLogic 12c (12.1.3 - latest). This automatically deploys my enterprise application on a managed server (not admin server).
注意:如果我手动执行部署,也会出现错误。
Note: The error also occurs if I execute the deployment manually.
有时我会收到此异常:
A mismatch exists between the bean code and generated code. ...
我的应用程序当时没有部署。这无法通过再次部署来解决,只有在AdminServer控制台的帮助下才能可靠地删除部署。
My application does not get deployed then. This cannot be fixed by deploying again, only deleting the deployment with the help of the AdminServer console works reliably.
任何想法如何触发和/或我可以修复(治愈)它可靠吗?
Any ideas how this is triggered and/or I can "fix" (heal) it reliably?
我已经看到这个错误被记录并报告了很多次,即使是旧版本的Weblogic,但看不到可能的解决方案。
I have seen this error being logged and reported numerous times even with older versions of Weblogic, but no possible solution in sight.
推荐答案
当您尝试重新部署现有应用时,有时weblogic会出现缓存问题。尝试取消部署并重新部署通常会纠正它:
Sometimes weblogic has caching issues when you try to redeploy over an existing app. Trying an undeploy and redeploy normally corrects it:
undeploy(appName=application_name);
save()
activate(300000, "block='true'")
deploy(appName=application_name, path=deployment_artifact, targets=target_names, planPath=deployment_plan);
save()
activate(300000, "block='true'")
这篇关于Weblogic:如何防止“bean代码与生成的代码之间存在不匹配”部署时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!