2015-03-25 5 views
7

के लिए हल करने योग्य नहीं है I Omnifaces 1.8.1 का उपयोग कर रहा हूं और जब भी मैं अपना आवेदन ग्लासफ़िश I पर तैनात करता हूं I निम्नलिखित चेतावनी प्राप्त करें जो तैनाती प्रक्रिया में कुछ देरी का कारण बनती है।चेतावनी: पैरामीटर 1 प्रकार की सूची <Bean<?>> सार्वजनिक शून्य से org.omnifaces.cdi.eager.EagerBeansRepository.setXxx एक ठोस प्रकार

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. 

मैं Omnifaces 2.0 और अब भी वही चेतावनी जो विकास की प्रक्रिया जहां तैनाती अक्सर लागू किया जाता है में काफी कष्टप्रद है हो रही करने के लिए उन्नत किया है। इन चेतावनियों का कारण क्या है?

पुनश्च: विकास पर्यावरण:

  • Glassfish 4.1
  • जावा 8
  • JSF 2.2.0 (Mojarra)
  • Primefaces 4.0
  • Netbeans 8

उत्तर

8

यह वह जगह है वेल्ड विशिष्ट। वे चेतावनियां निर्दोष हैं और वास्तव में तैनाती में देरी नहीं करती हैं।

अनचाहे पैरामीटर चेतावनी के रूप में, सीडीआई वास्तव में List<?> जैसे वाइल्डकार्ड-पैरामीटरयुक्त तर्कों के साथ प्रॉक्सीइंग विधियों का समर्थन नहीं करता है। हालांकि उन चेतावनियों की परेशानी को समझा जाता है। चूंकि वे विधियां पैकेज-प्राइवेट हैं, वैसे भी, मैंने this commit दृश्यता के अनुसार कम किया है ताकि वेल्ड उनका निरीक्षण करने का प्रयास न कर सके। फिक्स OmniFaces 2.1 SNAPSHOT में उपलब्ध है।

अमूर्त कक्षाओं पर WELD-001519 चेतावनी के रूप में, यह वास्तव में पूरी तरह से अनावश्यक है। वेल्ड 2.1.1/2.2.0 में यह पहले से ही fixed है। डुप्लिकेट प्रश्न भी देखें: WELD-001519 An InjectionTarget implementation is created for an abstract class 'xxx'. It will not be possible to produce instances of this type

+0

धन्यवाद! वह सहायक था। – fareed

+0

आपका स्वागत है। – BalusC

संबंधित मुद्दे