2011-05-13 16 views
6

पर रिचफेस जोड़ना मैं इस jboss guide का उपयोग कर अपने जेएसएफ 2 प्रोजेक्ट में समृद्ध जोड़ों को जोड़ने की कोशिश कर रहा हूं। मैंने बिंदु 2.6 में जो कहा है, मैंने किया है, लेकिन मेरे टॉमकैट सर्वर को पुनरारंभ करने के बाद, HTTP स्थिति 404 की सूचना दी गई है।मौजूदा जेएसएफ 2 प्रोजेक्ट

क्या मुझे कुछ याद आया ??

अद्यतन: जब मैं richfaces घटकों-ui-4.0.0.Final.jar और richfaces कोर-impl-4.0.0.Final.jar, जोड़ सकते हैं और बिल्ला सर्वर को पुनः आरंभ, यह रिपोर्ट:

INFO: Unsanitized stacktrace from failed start... 
com.sun.faces.config.ConfigurationException: 
Source Document: jar:file:/D:/WORKSPACE/BC/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PORTAL/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml 
Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException 
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:293) 
.... 

13.5.2011 8:41:52 com.sun.faces.config.ConfigureListener contextInitialized 
SEVERE: Critical error during deployment: 
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function 
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379) 
.... 

13.5.2011 8:41:52 org.apache.catalina.core.StandardContext listenerStart 
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener 
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function 
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) 
.... 
13.5.2011 8:41:52 org.apache.catalina.core.StandardContext startInternal 
SEVERE: Error listenerStart 
13.5.2011 8:41:52 org.apache.catalina.core.StandardContext startInternal 
SEVERE: Context [/PORTAL] startup failed due to previous errors 
13.5.2011 8:41:52 com.sun.faces.config.ConfigureListener contextDestroyed 
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime 
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory 
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:894) 
.... 

और अब मुझे यकीन है कि जो पुस्तकालयों JSF2 के लिए आवश्यक होते हैं और नहीं कर रहा हूँ जो RICHFACES के लिए ..

उत्तर

11

RichFaces 4 की readme.txt के लिए निम्न जार आवश्यक हैं अनुसार:

रिचफेस जार के अतिरिक्त, फ्रेमवर्क को सही तरीके से कॉन्फ़िगर करने के लिए कई निर्भरताओं की आवश्यकता होती है।

ए। sac-1.3, cssparser-0.9.5 - घटक सीएसएस काम के लिए आवश्यक है।

बी। google-guava-r08 - कोर रनटाइम निर्भरता।

सी। annotations.jar - org.richfaces.cdk से।

  • यह वैकल्पिक है और केवल आपके ऐप्स क्रियाओं/श्रोताओं में RichFaces घटकों को बनाए/उपयोग किए जाने पर ही जोड़ा जाना चाहिए।

डी। validation-api.jar और हाइबरनेट-validators.jar की तरह किसी भी कार्यान्वयन

  • यह वैकल्पिक है और यदि आप क्लाइंट के प्रयोग या ग्राफ़ मान्यता जोड़ा जाना चाहिए। केवल तभी जोड़ा जाना चाहिए जब यह सर्वर (जावा ईई 6 सर्वर) द्वारा प्रदान नहीं किया गया हो।

आपके अपवाद से पता चलता है कि आपके पास Google Guava लाइब्रेरी नहीं है।

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