cache.ccf javastravav3api 未获取文件

cache.ccf file not picked up by javastravav3api

cache.ccf 文件的位置

stk

-应用 -bin
-build.sbt
-cache.ccf
-conf
-lib
-libexec
-许可证
-日志
-项目
-public
-自述文件
-目标
-测试

堆栈跟踪:

play.api.http.HttpErrorHandlerExceptions$$anon: Execution exception[[CompletionException: org.apache.commons.jcs.access.exception.CacheException: Failed to read configuration file [/cache.ccf]]]
    at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:280)
    at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:206)
    at play.api.GlobalSettings$class.onError(GlobalSettings.scala:160)
    at play.api.DefaultGlobal$.onError(GlobalSettings.scala:188)
    at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:98)
    at play.core.server.netty.PlayRequestHandler$$anonfun$$anonfun$apply.applyOrElse(PlayRequestHandler.scala:100)
    at play.core.server.netty.PlayRequestHandler$$anonfun$$anonfun$apply.applyOrElse(PlayRequestHandler.scala:99)
    at scala.concurrent.Future$$anonfun$recoverWith.apply(Future.scala:344)
    at scala.concurrent.Future$$anonfun$recoverWith.apply(Future.scala:343)
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
Caused by: java.util.concurrent.CompletionException: org.apache.commons.jcs.access.exception.CacheException: Failed to read configuration file [/cache.ccf]
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
    at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
    at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
    at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
    at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
    at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:21)
    at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18)
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
    at scala.concurrent.BatchingExecutor$Batch$$anonfun$run.processBatch(BatchingExecutor.scala:63)
Caused by: org.apache.commons.jcs.access.exception.CacheException: Failed to read configuration file [/cache.ccf]
    at org.apache.commons.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:359)
    at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:190)
    at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:161)
    at org.apache.commons.jcs.JCS.getCacheManager(JCS.java:156)
    at org.apache.commons.jcs.JCS.getGroupCacheInstance(JCS.java:219)
    at javastrava.cache.impl.StravaCacheImpl.<init>(StravaCacheImpl.java:40)
    at javastrava.api.v3.service.impl.ActivityServiceImpl.<init>(ActivityServiceImpl.java:93)
    at javastrava.api.v3.service.impl.ActivityServiceImpl.instance(ActivityServiceImpl.java:58)
    at javastrava.api.v3.auth.model.Token.<init>(Token.java:114)
    at javastrava.api.v3.auth.impl.retrofit.AuthorisationServiceImpl.tokenExchange(AuthorisationServiceImpl.java:40)

播放应用程序中 cache.ccf 的默认位置是 conf

conf 目录被视为资源目录。