Glassfish GeoIP2和玻璃鱼。可能吗?
是否可以将GeoIP2与Glassfish服务器一起使用?我使用maven来表示GeoIP2Glassfish GeoIP2和玻璃鱼。可能吗?,glassfish,geoip,java-ee-7,Glassfish,Geoip,Java Ee 7,是否可以将GeoIP2与Glassfish服务器一起使用?我使用maven来表示GeoIP2 <dependency> <groupId>com.maxmind.geoip2</groupId> <artifactId>geoip2</artifactId> <version>0.5.0</version> </dependency> com.maxmind.geoip2
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>0.5.0</version>
</dependency>
com.maxmind.geoip2
geoip2
0.5.0
我得到以下错误:
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>)]"
严重:加载应用程序时出现异常
严重:上下文的取消部署失败
严重:加载应用程序时出现异常:CDI部署失败:WELD-001408在注入点[@Default]处带有限定符[@Default]的类型[Set]的未满足依赖项[@BackedAnnotatedParameter]参数1(属于[BackedAnnotatedConstructor]@Injectcom.google.common.util.concurrent.ServiceManager(Set)]”
当我尝试部署应用程序时
更新
我必须补充一点
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
</dependency>
番石榴
番石榴
15
我不确定,但这看起来像是谷歌番石榴库的问题(看看)
您是否正在部署到GlassFish 4?如果是这样,您可以尝试在GlassFish 3上部署您的应用程序,看看这是否有帮助
您还可以尝试通过以下方式排除番石榴酱:
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>0.5.0</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
com.maxmind.geoip2
geoip2
0.5.0
番石榴
番石榴
com.google.guava guava 15.0
我不得不添加这个