NullPointerException while deploying project on Weblogic 12.2.1

我只是一个虾纸丫 提交于 2019-12-04 09:22:27

I finally got the solution from Oracle :

Cause
The InvalidPointcutException was raised because of java.lang.ClassCastException message: "antlr.CommonToken cannot be cast to antlr.Token". The reason being the jar antlr-2.7.6.jar packaged with the ear file conflicting with the default class loader

Solution

  1. Add the parameter -DANTLR_USE_DIRECT_CLASS_LOADING=true to last occurence of JAVA_OPTIONS in setDomainEnv.cmd file
  2. Stop all the servers
  3. rename tmp and cache folders under each server directory.
  4. Restart the servers.
  5. Deploy the application
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!