我需要一些幫助,我嘗試使用谷歌Analytics(分析)API,使一個控制器,但使用:Grails的ClassNotFoundException的com.google.common.collect.Maps
statsController.groovy
/**************************************************************/
import com.google.gdata.client.analytics.AnalyticsService
class StatsController {
def myService
def stats(){
myService = new AnalyticsService("example-App");
}
}
/************************************************************/
錯誤消息:
ClassNotFoundException的處理請求時發生:[...] com.google.common.collect.Maps
我已經tryed添加到構建路徑的「gdata.an alytics * .jar「,」google-collect-1.0.jar「,」guava.jar「和」jsr305.jar「,但沒有結果,錯誤總是說處理請求時,我描述或NotDefClassError發生:[...] com.google.gdata.client.analytics.AnalyticsService。
我需要解決。
您是否在部署的war/ear文件中發現了您的JAR? –
我的WAR文件,沒有mys JAR文件,im在WARFILE/WEB-INF/lib中搜索,我認爲它是libs將會在的網站。爲什麼沒有?感謝您迴應hims056使用STS – user1734199