こんにちは。Javaの勉強を始めた初心者です。
Struts2を使うことになったのでStruts2の環境を導入しましたが、
以下のようなエラーがでてWebページが表示されません。
(WebContent下の簡単なHTMLファイルやJSPファイルを試してみて表示されません。)
色々なサイトで調べて格闘しましたが中々解決しないのでご教授頂けると助かります。。
<実施環境>
現在JDK8 u74,Tomcat8.0.32,Struts2.3.28、
Pleiades パースペクティブJavaEE(動的Webプロジェクト作成)の環境で行っています。
<エラー>
情報: サービス Catalina を起動します [火 3 29 02:39:38 JST 2016]
情報: Starting Servlet Engine: Apache Tomcat/8.0.32 [火 3 29 02:39:38 JST 2016]
情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 3 29 02:39:40 JST 2016]
情報: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [271] milliseconds. [火 3 29 02:39:40 JST 2016]
情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 3 29 02:39:41 JST 2016]
重大: フィルタ struts2 の起動中の例外です [火 3 29 02:39:41 JST 2016]
重大: One or more Filters failed to start. Full details will be found in the appropriate container log file [火 3 29 02:39:41 JST 2016]
重大: 以前のエラーのためにコンテキストの起動が失敗しました [/CompanyDirectly] [火 3 29 02:39:41 JST 2016]
情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 3 29 02:39:42 JST 2016]
導入した方法は、
まず
WebContent/libフォルダ下に、
ask-3.3.jar
ask-commons-3.3.jar
ask-tree-3.3.jar
commons-fileupload-1.3.1.jar
commons-io-2.2.jar
commons-lang3-3.2.jar
commons-logging-1.1.3.jar
freemaker-2.3.22.jar
javassist-3.11.0.GA.jar
ognl-3.0.13.jar
slf4j-api-1.7.12.jar
struts2-codebehind-plugin-2.3.28.jar
struts2-core-2.3.28.jar
xwork-core-2.3.28.jar
をコピーし使用するビルドパスを通しました。
ZeroConfiguration機能を使うということですので、Struts.xmlの設定は飛ばし、
web.xmlに以下の内容を追記しました。
<display-name>CompanyDirectly</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>action</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/29 02:07
2016/03/29 02:24
2016/03/29 02:48
2016/03/29 03:09
2016/03/29 03:42