[Seasar-user:10300] 【 S2Struts 】 Servlet2.3 での HotDeploy について

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2007年 9月 4日 (火) 17:53:40 JST


お世話になります。
宮本 京子と申します。
   
  現在、S2StrutsBlank-V1.3.0-RC1を使用して
無設定Strutsを勉強中なのですが、Servlet2.3のweb.xmlで
HotDeployで登録したActionを「*.do」呼び出しで実行しようとすると、
以下のエラーとなります。
   
  ●エラー内容 --------------------------------------------------------
javax.servlet.ServletException: Cannot find catalog 's2struts'
 org.apache.struts.chain.ComposableRequestProcessor.init(ComposableRequestProcessor.java:161)
 org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:620)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1910)
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62)
 org.seasar.struts.filter.S2StrutsFilter.doFilter(S2StrutsFilter.java:42)
 org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
 org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63)
---------------------------------------------------------------------
   
  S2StrutsBlank-V1.3.0-RC1に同梱されているweb_2_3.xmlを
下記のように修正しておりますが、Servlet2.4のweb.xmlや
[DEPLOY MODE]を「Normal Mode」で起動した場合は、同じURL
で正常に実行できます。
([DEPLOY MODE]の切替はenv.txtで判断させております。)
   
  HotDeployの機能はServlet2.3では動作しないのでしょうか?
また、何か特殊な設定が必要なのでしょうか?
   
  ご教授お願い致します。
   
  
●web.xml -----------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
  <web-app>
  <display-name>Struts Blank</display-name>
    <filter>
    <filter-name>s2filter</filter-name>
    <filter-class>org.seasar.framework.container.filter.S2ContainerFilter</filter-class>
  </filter>
    <filter>
    <filter-name>hotdeployfilter</filter-name>
    <filter-class>org.seasar.framework.container.hotdeploy.HotdeployFilter</filter-class>
  </filter>
    <filter>
    <filter-name>s2strutsfilter</filter-name>
    <filter-class>org.seasar.struts.filter.S2StrutsFilter</filter-class>
  </filter>
    <filter>
    <filter-name>encodingfilter</filter-name>
    <filter-class>org.seasar.extension.filter.EncodingFilter</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>Windows-31j</param-value>
    </init-param>
  </filter>
    <filter-mapping>
    <filter-name>s2filter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
    <filter-mapping>
    <filter-name>hotdeployfilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
    <filter-mapping>
    <filter-name>s2strutsfilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
    <filter-mapping>
    <filter-name>encodingfilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
    <servlet>
    <servlet-name>s2container</servlet-name>
    <servlet-class>org.seasar.framework.container.servlet.S2ContainerServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  
  <!-- Standard Action Servlet Configuration (with debugging) -->
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>chainConfig</param-name>
      <param-value>s2struts-chain-config.xml, org/apache/struts/chain/chain-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>
    <servlet>
    <servlet-name>MayaaServlet</servlet-name>
    <servlet-class>org.seasar.mayaa.impl.MayaaServlet</servlet-class>
    <load-on-startup>3</load-on-startup>
  </servlet>
    <servlet-mapping>
    <servlet-name>s2container</servlet-name>
    <url-pattern>/s2container</url-pattern>
  </servlet-mapping>
    <!-- Standard Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MayaaServlet</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MayaaServlet</servlet-name>
    <url-pattern>*.xml</url-pattern>
  </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MayaaServlet</servlet-name>
    <url-pattern>*.maya</url-pattern>
  </servlet-mapping>
    <!-- The Usual Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  </web-app>
---------------------------------------------------------------------
   
 

 
---------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20070904/1557cd64/attachment.html 


Seasar-user メーリングリストの案内