far*_*eed 8 jsf glassfish cdi omnifaces weld
我正在使用Omnifaces 1.8.1,每当我将我的应用程序部署到Glassfish时,我都会收到以下警告,这会导致部署过程出现延迟.
Warning: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultHttpSessionListener. It will not be possible to produce instances of this type!
Warning: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultServletContextListener. It will not be possible to produce instances of this type!
Warning: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultServletRequestListener. It will not be possible to produce instances of this type!
Warning: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.filter.HttpFilter. It will not be possible to produce instances of this type!
Warning: The following warnings have been detected:
WARNING: Parameter 1 of type java.util.List<javax.enterprise.inject.spi.Bean<?>> from public void org.omnifaces.cdi.eager.EagerBeansRepository.setApplicationScopedBeans(java.util.List<javax.enterprise.inject.spi.Bean<?>>) is not resolvable to a concrete type.
WARNING: Parameter 1 of type java.util.Map<java.lang.String, java.util.List<javax.enterprise.inject.spi.Bean<?>>> from public void org.omnifaces.cdi.eager.EagerBeansRepository.setRequestScopedBeansViewId(java.util.Map<java.lang.String, java.util.List<javax.enterprise.inject.spi.Bean<?>>>) is not resolvable to a concrete type.
WARNING: Parameter 1 of type java.util.Map<java.lang.String, java.util.List<javax.enterprise.inject.spi.Bean<?>>> from public void org.omnifaces.cdi.eager.EagerBeansRepository.setRequestScopedBeansRequestURI(java.util.Map<java.lang.String, java.util.List<javax.enterprise.inject.spi.Bean<?>>>) is not resolvable to a concrete type.
WARNING: Parameter 1 of type java.util.List<javax.enterprise.inject.spi.Bean<?>> from public void org.omnifaces.cdi.eager.EagerBeansRepository.setSessionScopedBeans(java.util.List<javax.enterprise.inject.spi.Bean<?>>) is not resolvable to a concrete type.
Run Code Online (Sandbox Code Playgroud)
我已经升级到Omnifaces 2.0并且仍然得到相同的警告,这在经常应用部署的开发过程中非常烦人.是什么导致了这些警告?
PS:开发环境:
Bal*_*usC 10
这是焊接具体的.这些警告是无辜的,实际上并没有显着延迟部署.
至于无法解析的参数警告,CDI确实不支持使用通配符参数化参数的代理方法List<?>.然而,这些警告的烦恼是可以理解的.因为这些方法是包私有的,所以我根据这个提交减少了可见性,以便Weld不会尝试检查它们.该修复程序在OmniFaces 2.1 SNAPSHOT中可用.
至于抽象类的WELD-001519警告,这确实是完全没必要的.这已在Weld 2.1.1/2.2.0中修复.另请参阅重复的问题:WELD-001519为抽象类'xxx'创建了一个InjectionTarget实现.不可能生成这种类型的实例.
| 归档时间: |
|
| 查看次数: |
2872 次 |
| 最近记录: |