2012-04-10 46 views
0

単純なRichface4プロジェクトを作成しようとしています。続い iがRichFace-4.2ドキュメントの通りすべてのJARが追加されRichFace4.2 Webプロジェクトの設定中に発生する問題

enter image description here

enter image description here

を使用ジャーです。

今のサーバー上でそれを公開するには、私が取得しています次のエラー

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> 
    <display-name>RF4Test</display-name> 
    <welcome-file-list> 
    <welcome-file>index.html</welcome-file> 
    <welcome-file>index.htm</welcome-file> 
    <welcome-file>index.jsp</welcome-file> 
    <welcome-file>default.html</welcome-file> 
    <welcome-file>default.htm</welcome-file> 
    <welcome-file>default.jsp</welcome-file> 
    </welcome-file-list> 
    <servlet> 
    <servlet-name>Faces Servlet</servlet-name> 
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
    <load-on-startup>1</load-on-startup> 
    </servlet> 
    <servlet-mapping> 
    <servlet-name>Faces Servlet</servlet-name> 
    <url-pattern>/faces/*</url-pattern> 
    </servlet-mapping> 
</web-app> 

使用ServerはのOracle WebLogicです:

Apr 10, 2012 7:41:39 PM com.sun.faces.config.ConfigureListener contextInitialized 
INFO: Initializing Mojarra 2.0.4 (FCS b05) for context '/RF4Test' 
Apr 10, 2012 7:41:40 PM org.richfaces.javascript.ClientServiceConfigParser parse 
WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented 
Apr 10, 2012 7:41:40 PM org.richfaces.cache.CacheManager getCacheFactory 
INFO: Selected fallback cache factory 
Apr 10, 2012 7:41:40 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache 
INFO: Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=com.bea.faces.WeblogicInjectionProvider} 
Apr 10, 2012 7:41:40 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache 
INFO: Creating LRUMap cache instance of 512 items capacity 
Apr 10, 2012 7:41:40 PM org.richfaces.application.InitializationListener onStart 
INFO: RichFaces Core Implementation by JBoss by Red Hat, version v.4.2.0.Final 
Apr 10, 2012 7:41:40 PM org.richfaces.application.InitializationListener logWarningWhenConnectionFactoryPresent 
WARNING: JMS API was found on the classpath; if you want to enable RichFaces Push JMS integration, set context-param 'org.richfaces.push.jms.enabled' in web.xml 
<Apr 10, 2012 7:41:40 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listener org.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClassDefFoundError: javax/faces/view/facelets/FaceletCacheFactory. 
java.lang.NoClassDefFoundError: javax/faces/view/facelets/FaceletCacheFactory 
    at java.lang.ClassLoader.defineClass1(Native Method) 
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630) 
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614) 
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) 
- 
- 
- 
Apr 10, 2012 7:41:41 PM 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:800) 
    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302) 
    at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104) 
- 
- 
- 
Apr 10, 2012 7:41:41 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1334067099535' for task '8'. Error is: 'weblogic.application.ModuleException: ' 
weblogic.application.ModuleException: 
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510) 
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482) 
- 
- 
- 
<Apr 10, 2012 7:41:41 PM IST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application '_auto_generated_ear_'.> 
<Apr 10, 2012 7:41:41 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application '_auto_generated_ear_'.> 
<Apr 10, 2012 7:41:41 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 
weblogic.application.ModuleException: 
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510) 

web.xmlのは日食によってデフォルト生成されますサーバー11gR1 PatchSet 4. 問題の発見に手伝ってください。

おかげ

答えて

2

削除 "のMyFaces-IMPL" と "共有ライブラリ[JSF]" からのビルド・パス。彼らはそこに属しません。 WeblogicにはJSFがバンドルされて出荷されています。

+0

こんにちは、私はmyfaces-implと共有jsfのlibを削除した後でも試してみましたが、まだ問題があります: <ユーザ定義のリスナorg.apache.myfaces.webapp.StartupServletContextListenerが失敗しました:java.lang.NoClassDefFoundError:javax/faces/view/Faceletsの/ FaceletCacheFactory ます。java.lang.NoClassDefFoundError:javaxの/顔/ビュー/ Faceletsを/ FaceletCacheFactory com.sun.faces.config.ConfigureListener contextDestroyed :クロサギ科ランタイム java.lang.IllegalStateExceptionを取り壊すしようとすると予期しない例外:アプリケーションではありません起動時に適切に初期化され、Factory:javax.faces.application.ApplicationFactory – user811602

+0

こんにちはBalusC、 が見つかりませんでした。それは瓶の衝突です。今私は、プロジェクトのためだけにユーザー定義のjarを使用しています。それは今働いている。 – user811602

関連する問題