[英]java.lang.NoSuchMethodError: org/jboss/logging/Logger.debug
While my application is being deployed to websphere 9 i get this error 将我的应用程序部署到Websphere 9时,出现此错误
Caused by: java.lang.NoSuchMethodError: org/jboss/logging/Logger.debugf(Ljava/lang/String;I)V (loaded from file:/C:/server/IBM/WebSphere90/AppServer/plugins/com.ibm.ws.cdi.logging.jar
引起原因:java.lang.NoSuchMethodError:org / jboss / logging / Logger.debugf(Ljava / lang / String; I)V(从文件C:/server/IBM/WebSphere90/AppServer/plugins/com.ibm加载.ws.cdi.logging.jar
It seems that the above jar is being loaded before jboss-logging-3.3.0.Final.jar used by hibernate. 看来上面的jar正在hibernate使用的jboss-logging-3.3.0.Final.jar之前加载。 At the same time i have a different machine on which this issue is not present.
同时,我有一台不存在此问题的机器。
com.ibm.ws.cdi.logging.jar
is missing from the path and the error no longer occurs. 路径中缺少
com.ibm.ws.cdi.logging.jar
,并且不再发生错误。 How to fix the error and why in one installation the cdi.logging.jar
is present and in the not? 如何解决该错误?为什么在一个安装中存在
cdi.logging.jar
而在不存在的情况下?
You could add jboss-logging-3.3.0.Final.jar as an isolated shared library and associate it with your application. 您可以将jboss-logging-3.3.0.Final.jar添加为隔离的共享库,并将其与您的应用程序关联。 That will cause it to be preferred over anything provided by the application server.
这将导致它比应用程序服务器提供的任何东西都更受青睐。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.