<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS ゴシック";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"MS ゴシック";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"MS Pゴシック";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS ゴシック";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS Pゴシック";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"MS Pゴシック";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.17
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Arial","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026">
<v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=JA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>米林 様</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>お世話になっております。</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>加藤です。</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>ご回答ありがとうございます。ご提案頂いた通り一旦、</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Apache</span><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>を外して</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Tomcat</span><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>だけで動作させてみたのですが</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>同じ課題が発生しています。</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>継続調査し、何か新しい情報がありましたら当MLに</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"MS ゴシック";color:#1F497D'>共有致します。</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> seasar-user-bounces@ml.seasar.org [mailto:seasar-user-bounces@ml.seasar.org] <b>On Behalf Of </b>Masaaki Yonebayashi<br><b>Sent:</b> Saturday, October 25, 2014 6:50 PM<br><b>To:</b> seasar-user@ml.seasar.org<br><b>Subject:</b> [Seasar-user:21988] Re: Teeda</span><span style='font-size:10.0pt'>、</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>S2Dao</span><span style='font-size:10.0pt'>の本番環境構築方法</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>米林です。<span lang=EN-US><o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>apache</span>との連携が問題じゃないでしょうか?<span lang=EN-US><o:p></o:p></span></p></div><div><p class=MsoNormal>一旦<span lang=EN-US>apache</span>を外して動かしてみて下さい。<span lang=EN-US><o:p></o:p></span></p></div><div><p class=MsoNormal>正常に動くのであれば<span lang=EN-US>apache</span>の設定を確認下さい。<span lang=EN-US><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal>もしくは、開発環境でも<span lang=EN-US>apache</span>を入れて正常に動作確認したうえで<span lang=EN-US><o:p></o:p></span></p></div><div><p class=MsoNormal>本番で試した方が良いと思います。<span lang=EN-US><br><br>2014</span>年<span lang=EN-US>10</span>月<span lang=EN-US>25</span>日土曜日、<span lang=EN-US><<a href="mailto:ryooji.k@gmail.com">ryooji.k@gmail.com</a>></span>さんは書きました<span lang=EN-US>:<o:p></o:p></span></p><p class=MsoNormal>どなた様か、<span lang=EN-US>Teeda</span>、<span lang=EN-US>S2Dao</span>の本番環境構築でご苦労をされた方はいらっしゃらないで<span lang=EN-US><br></span>しょうか?<span lang=EN-US><br></span>もし、いらっしゃったら知見を共有して頂ければと思います。<span lang=EN-US><br><br></span>【状況】<span lang=EN-US><br></span>本番環境で<span lang=EN-US>login.html </span>と<span lang=EN-US> LoginPage.java</span>の連携が出来ておらず行き詰まっておりま<span lang=EN-US><br></span>す。<span lang=EN-US><br></span>例えば、本番環境で<span lang=EN-US><div id="is******"></span>AAA<span lang=EN-US></div> </span>部分が常に表示された状態<span lang=EN-US><br></span>なっており、<span lang=EN-US><br>login.html </span>と<span lang=EN-US> LoginPage.java</span>の連携が出来ていないように見えます。<span lang=EN-US><br></span>*開発環境では「ひが」氏の本の通り行い問題ない状態です。<span lang=EN-US><br><br></span>【構成】<span lang=EN-US><br></span>開発環境:<span lang=EN-US>Windows7</span>、<span lang=EN-US>Tomcat7.0.53<br></span>本番環境:<span lang=EN-US>CentOS 6.5</span>、<span lang=EN-US>Tomcat7.0.56 </span>、<span lang=EN-US>Apache2.2.26<br><br></span>【実施内容】<span lang=EN-US><br></span>開発環境で<span lang=EN-US>war</span>ファイルを作成し、本番環境の<span lang=EN-US><br></span>「<span lang=EN-US>Tomcat</span>の<span lang=EN-US>install</span>ディレクトリ<span lang=EN-US>/webapp</span>」配下に配置。<span lang=EN-US><br><br><br></span>【推測】<span lang=EN-US><br></span>開発環境と本番環境のバージョン違いが原因とも考えられるのですが、<span lang=EN-US><br></span>そもそも本番環境では<span lang=EN-US>Tomcat</span>起動時に、何かしら必要なファイルが読み込まれて<span lang=EN-US><br></span>いないのではと考えています。なぜなら、開発環境と比べて本番環境では<span lang=EN-US>Tomcat</span>起動<span lang=EN-US><br></span>時に<span lang=EN-US><br></span>以下のように表示されないログがあります。<span lang=EN-US><br><br>10 25, 2014 5:30:31 </span>午後<span lang=EN-US> org.apache.catalina.core.AprLifecycleListener init<br></span>情報<span lang=EN-US>: The APR based Apache Tomcat Native library which allows optimal<br>performance in production environments was not found on the<br>java.library.path:<br>10 25, 2014 5:30:31 </span>午後<span lang=EN-US> org.apache.tomcat.util.digester.SetPropertiesRule<br>begin<br>WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting<br>property 'source' to 'org.eclipse.jst.jee.server:chura-tutorial' did not<br>find a matching property.<br>10 25, 2014 5:30:31 </span>午後<span lang=EN-US> org.apache.tomcat.util.digester.SetPropertiesRule<br>begin<br>WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting<br>property 'source' to 'org.eclipse.jst.jee.server:mi_server' did not find a<br>matching property.<br>10 25, 2014 5:30:32 </span>午後<span lang=EN-US> org.apache.coyote.AbstractProtocol init<br></span>情報<span lang=EN-US>: Initializing ProtocolHandler ["http-bio-8080"]<br>10 25, 2014 5:30:32 </span>午後<span lang=EN-US> org.apache.coyote.AbstractProtocol init<br></span>情報<span lang=EN-US>: Initializing ProtocolHandler ["ajp-bio-8009"]<br>10 25, 2014 5:30:32 </span>午後<span lang=EN-US> org.apache.catalina.startup.Catalina load<br></span>情報<span lang=EN-US>: Initialization processed in 1543 ms<br>10 25, 2014 5:30:32 </span>午後<span lang=EN-US> org.apache.catalina.core.StandardService<br>startInternal<br></span>情報<span lang=EN-US>: </span>サービス<span lang=EN-US> Catalina </span>を起動します<span lang=EN-US><br>10 25, 2014 5:30:32 </span>午後<span lang=EN-US> org.apache.catalina.core.StandardEngine<br>startInternal<br></span>情報<span lang=EN-US>: Starting Servlet Engine: Apache Tomcat/7.0.53<br><br>★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★<br>★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★<br>★★★↓↓↓↓↓</span>以下のログは本番環境では表示されない。<span lang=EN-US>★★★<br>★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★<br>★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★<br><br>2014-10-25 17:30:38,800 [localhost-startStop-1] INFO<br>org.seasar.framework.container.factory.SingletonS2ContainerFactory -<br>s2-framework</span>のバージョンは<span lang=EN-US>2.4.46</span>です。<span lang=EN-US><br>2014-10-25 17:30:38,800 [localhost-startStop-1] INFO<br>org.seasar.framework.container.factory.SingletonS2ContainerFactory -<br>s2-extension</span>のバージョンは<span lang=EN-US>2.4.46</span>です。<span lang=EN-US><br>2014-10-25 17:30:38,800 [localhost-startStop-1] INFO<br>org.seasar.framework.container.factory.SingletonS2ContainerFactory -<br>s2-tiger</span>のバージョンは<span lang=EN-US>2.4.46</span>です。<span lang=EN-US><br>2014-10-25 17:30:39,129 [localhost-startStop-1] DEBUG<br>org.seasar.framework.env.Env - </span>環境変数<span lang=EN-US>#Env</span>にファイル<span lang=EN-US>(env.txt)</span>から値<span lang=EN-US>(ct)</span>が設<span lang=EN-US><br></span>定されました<span lang=EN-US><br>2014-10-25 17:30:39,253 [localhost-startStop-1] DEBUG<br>org.seasar.framework.container.factory.S2ContainerFactory - S2Container</span>を作<span lang=EN-US><br></span>成します。<span lang=EN-US>path=hotdeploy.dicon<br>2014-10-25 17:30:39,253 [localhost-startStop-1] DEBUG<br>org.seasar.framework.container.factory.S2ContainerFactory - S2Container</span>を作<span lang=EN-US><br></span>成します。<span lang=EN-US>path=convention.dicon<br>2014-10-25 17:30:39,394 [localhost-startStop-1] DEBUG<br>org.seasar.framework.container.factory.S2ContainerFactory - S2Container</span>を作<span lang=EN-US><br></span>成しました。<span lang=EN-US>path=convention.dicon<br>2014-10-25 17:30:39,394 [localhost-startStop-1] DEBUG<br>org.seasar.framework.container.factory.S2ContainerFactory - S2Container</span>を作<span lang=EN-US><br></span>成します。<span lang=EN-US>path=customizer.dicon<br></span>・・・・・・<span lang=EN-US><br></span>・・・・・・<span lang=EN-US><br></span>・・・・・・<span lang=EN-US><br>_______________________________________________<br>Seasar-user mailing list<br><a href="javascript:;">Seasar-user@ml.seasar.org</a><br><a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><br><br>-- <br></span>米 林<span lang=EN-US> </span>正 明<span lang=EN-US><br></span>株式会社<span lang=EN-US>Abby(</span>エビイ<span lang=EN-US>)<br><a href="http://abby.co.jp" target="_blank">http://abby.co.jp</a><o:p></o:p></span></p></div></body></html>