java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory [英] java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
本文介绍了java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用此类
错误导致我在httpclient
中出现错误,这是我的代码...
I am trying to send a notification using this class FCMHelper and im getting errors errors leading me to an error in httpclient this is my code ...
public void send() throws IOException{
JsonObject notificationObject = new JsonObject();
notificationObject.addProperty("data", "hello");
notificationObject.addProperty("to", "dSvX_cWo5iY:A......QQT-bkb8x0VO");
FireBase firebase = FireBase.getInstance();
firebase.sendNotification("to", "condition", notificationObject);
}
我收到此错误
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
... 58 more
这里的问题是什么或者有人可以通过其他方式解决问题
what the problem here or if someone could give any other way to do it
..谢谢您的帮助
推荐答案
似乎缺少 org / apache / commons / logging / LogFactory。
您导入了库吗?
It seems "org/apache/commons/logging/LogFactory" is missed. Have you imported the library?
这篇关于java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文