Weblogic: How to prevent “A mismatch exists between the bean code and generated code” when deploying

北慕城南 提交于 2019-12-12 05:27:02

问题


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.

Sometimes I get this exception:

A mismatch exists between the bean code and generated code. ...

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?

I have seen this error being logged and reported numerous times even with older versions of Weblogic, but no possible solution in sight.


回答1:


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'")


来源:https://stackoverflow.com/questions/28174118/weblogic-how-to-prevent-a-mismatch-exists-between-the-bean-code-and-generated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!