0

組み込みバージョンのjetty7を使用して、別のスレッドからのアドバイスに基づいて、junit4テストクラスでApacheMyFaces1.2を使用してWebアプリケーションをロードしています。

テストの実行中に、このエラーが発生します。

java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;

<listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

このアプリケーションは、tomcat、weblogic、さらにはoc4jでも正常に動作します。

どうすればこれを桟橋で動作させることができますか?

4

1 に答える 1

0

これを解決するには、WEB-INF/libディレクトリ内に.tldファイルを含むmyfaces-impljarを追加しました。

于 2010-07-25T22:28:24.367 に答える