是否可以将 GeoIP2 与 Glassfish 服务器一起使用?我将 Maven 用于 GeoIP2
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>0.5.0</version>
</dependency>
我收到以下错误:
SEVERE: Exception while loading the app
SEVERE: Undeployment failed for context
SEVERE: Exception while loading the app : CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [Set<Service>] with qualifiers [@Default] at injection point [[BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject com.google.common.util.concurrent.ServiceManager(Set<Service>)]"
当我尝试部署应用程序时。
更新我不得不添加这个
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
</dependency>