GlassFish 4.1启动警告:javax.ejb.PostActivate&找不到javax.ejb.PrePassivate

时间:2014-12-15 05:17:55

标签: java-ee glassfish ejb weld glassfish-4.1

每当我启动GlassFish 4.1时,我在GlassFish日志中都会收到以下两个警告:

WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled

WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled

然而,两个引用的类都在glassfish/modules/javax.ejb-api.jar

有没有办法解决/阻止这些警告?

1 个答案:

答案 0 :(得分:0)

我认为你可以忽略警告。我从来没有问过这个问题,它们不仅存在于最后一个版本中。它只是一个警告:)

但是如果你想使用更加维护的玻璃鱼,那么看看这里: glassfish replacement with a few bugfixes