[Seasar-user:15320] Re: 【S2Chronos】タスクが起動しない

Junichi Kato [E-MAIL ADDRESS DELETED]
2008年 8月 8日 (金) 12:20:36 JST


黒川様
加藤(j5ik2o)です。

おそらく、web.xmlに以下がないからだと思います。
ご確認いただけますでしょうか?よろしくお願いします。

<!-- for S2Chronos -->
<servlet>
<servlet-name>chronosServlet</servlet-name>
<servlet-class>org.seasar.chronos.extension.servlet.S2ChronosServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>





黒川博之 さんは書きました:
> 黒川です。
>
> S2Chronosについて質問させて下さい。
>
> 以下のセットアップ手順に従ってセットアップしたのですが
> CronTriggerで1分ごとに起動するアノテーション指定を
> しましたが、いつまで経っても起動しません。
> http://s2chronos.sandbox.seasar.org/ja/install.html
>
>
> 試しに、自分で作成したタスククラスをSAStruts用のサンプルに
> コピーしたところ、問題なく起動したので設定の問題と思われますが
> どこが悪いのかが見えません。
>
> サンプルと、自分で作成したプロジェクトのtomcat起動時のログを見比べると
> 以下のログが自分のプロジェクトログには出力されないので、ここらへんが
> キーになるのかなという見当はついております。
>
> 【サンプルでは出るが、自分で作成したプロジェクトには出ないログ】
> DEBUG 2008-08-08 08:54:28,156 [main] BEGIN
> org.seasar.chronos.core.impl.SchedulerImpl#start()
> DEBUG 2008-08-08 08:54:28,156 [main] スケジューラ を 開始します.
> DEBUG 2008-08-08 08:54:28,171 [main] スケジューラ を 開始しました.
> DEBUG 2008-08-08 08:54:28,171 [main] END
> org.seasar.chronos.core.impl.SchedulerImpl#start() : null
> DEBUG 2008-08-08 08:54:28,265 [chronos-pool-1-daemonthread-1]
> cronExpression = 0 */1 * * * ?
> DEBUG 2008-08-08 08:54:28,281 [chronos-pool-1-daemonthread-1]
> cronExpression = 0 */1 * * * ?
>
> 自分で作成したプロジェクトの起動時ログを添付します。
>
> 何かお分かりでしたら、お教え下さいますでしょうか。
> よろしくお願いします。 2008/08/08 8:52:28
> org.apache.catalina.core.AprLifecycleListener init
> 情報: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> C:\jdk1.5.0_13\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\jdk1.5.0_13\jre\bin;C:\jdk1.5.0_13\bin\..\jre\bin\client;C:\jdk1.5.0_13\bin\..\jre\bin;C:\jdk1.5.0_13\bin;C:\oracle\ora92\bin;C:\PROGRA~1\JUSTSY~1\JSLIB32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Intel\DMIX;C:\Program Files\IBM\Personal
> Communications\;C:\Program Files\IBM\Trace Facility\
> 2008/08/08 8:52:28 org.apache.coyote.http11.Http11Protocol init
> 情報: Coyote HTTP/1.1を http-8080 で初期化します
> 2008/08/08 8:52:28 org.apache.catalina.startup.Catalina load
> 情報: Initialization processed in 543 ms
> 2008/08/08 8:52:28 org.apache.catalina.core.StandardService start
> 情報: サービス Catalina を起動します
> 2008/08/08 8:52:28 org.apache.catalina.core.StandardEngine start
> 情報: Starting Servlet Engine: Apache Tomcat/6.0.16
> 2008/08/08 8:52:28 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> 情報:
> validateJarFile(D:\eclipse-jee-europa-winter-win32\workspace\EDIManagementSystem_SAStruts\webapp\WEB-INF\lib\geronimo-servlet_2.4_spec-1.0.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class
> INFO 2008-08-08 08:52:30,234 [main] Loading validation rules file from
> '/WEB-INF/validator-rules.xml'
> DEBUG 2008-08-08 08:52:30,609 [main] 環境変数#Envにファイル(env.txt)か
> ら値(ct)が設定されました
> DEBUG 2008-08-08 08:52:30,718 [main] S2Containerを作成します。path=
> hotdeploy.dicon
> DEBUG 2008-08-08 08:52:30,718 [main] S2Containerを作成します。path=
> convention.dicon
> DEBUG 2008-08-08 08:52:30,968 [main] S2Containerを作成しました。path=
> convention.dicon
> DEBUG 2008-08-08 08:52:30,968 [main] S2Containerを作成します。path=
> customizer.dicon
> DEBUG 2008-08-08 08:52:30,968 [main] S2Containerを作成します。path=
> default-customizer.dicon
> DEBUG 2008-08-08 08:52:30,968 [main] S2Containerを作成します。path=std
> -customizer.dicon
> DEBUG 2008-08-08 08:52:30,984 [main] S2Containerを作成します。path=std
> -customizer-tiger.dicon
> DEBUG 2008-08-08 08:52:31,031 [main] S2Containerを作成しました。path=
> std-customizer-tiger.dicon
> DEBUG 2008-08-08 08:52:31,062 [main] S2Containerを作成しました。path=
> std-customizer.dicon
> DEBUG 2008-08-08 08:52:31,078 [main] S2Containerを作成しました。path=
> default-customizer.dicon
> DEBUG 2008-08-08 08:52:31,109 [main] S2Containerを作成しました。path=
> customizer.dicon
> DEBUG 2008-08-08 08:52:31,109 [main] S2Containerを作成します。path=
> creator.dicon
> DEBUG 2008-08-08 08:52:31,140 [main] S2Containerを作成しました。path=
> creator.dicon
> DEBUG 2008-08-08 08:52:31,156 [main] S2Containerを作成しました。path=
> hotdeploy.dicon
> DEBUG 2008-08-08 08:52:31,265 [main] S2Containerを作成します。path=
> app.dicon
> DEBUG 2008-08-08 08:52:31,296 [main] S2Containerを作成します。path=
> convention.dicon
> DEBUG 2008-08-08 08:52:31,296 [main] S2Containerを作成しました。path=
> convention.dicon
> DEBUG 2008-08-08 08:52:31,296 [main] S2Containerを作成します。path=
> aop.dicon
> DEBUG 2008-08-08 08:52:31,359 [main] S2Containerを作成しました。path=
> aop.dicon
> DEBUG 2008-08-08 08:52:31,359 [main] S2Containerを作成します。path=
> j2ee.dicon
> DEBUG 2008-08-08 08:52:31,359 [main] S2Containerを作成します。path=
> jta.dicon
> DEBUG 2008-08-08 08:52:31,421 [main] S2Containerを作成しました。path=
> jta.dicon
> DEBUG 2008-08-08 08:52:31,421 [main] S2Containerを作成します。path=
> jdbc.dicon
> DEBUG 2008-08-08 08:52:31,421 [main] S2Containerを作成します。path=
> jdbc-as400.dicon
> DEBUG 2008-08-08 08:52:31,453 [main] S2Containerを作成しました。path=
> jdbc-as400.dicon
> DEBUG 2008-08-08 08:52:31,453 [main] S2Containerを作成します。path=
> jdbc-oracle.dicon
> DEBUG 2008-08-08 08:52:31,484 [main] S2Containerを作成しました。path=
> jdbc-oracle.dicon
> DEBUG 2008-08-08 08:52:31,484 [main] S2Containerを作成しました。path=
> jdbc.dicon
> DEBUG 2008-08-08 08:52:31,500 [main] S2Containerを作成しました。path=
> j2ee.dicon
> DEBUG 2008-08-08 08:52:31,500 [main] S2Containerを作成します。path=
> s2jdbc.dicon
> DEBUG 2008-08-08 08:52:31,515 [main] S2Containerを作成します。path=
> s2jdbc-as400.dicon
> DEBUG 2008-08-08 08:52:31,515 [main] S2Containerを作成します。path=
> s2jdbc-internal.dicon
> DEBUG 2008-08-08 08:52:31,546 [main] S2Containerを作成しました。path=
> s2jdbc-internal.dicon
> DEBUG 2008-08-08 08:52:31,609 [main] S2Containerを作成しました。path=
> s2jdbc-as400.dicon
> DEBUG 2008-08-08 08:52:31,609 [main] S2Containerを作成します。path=
> s2jdbc-oracle.dicon
> DEBUG 2008-08-08 08:52:31,625 [main] S2Containerを作成しました。path=
> s2jdbc-oracle.dicon
> DEBUG 2008-08-08 08:52:31,625 [main] S2Containerを作成しました。path=
> s2jdbc.dicon
> DEBUG 2008-08-08 08:52:31,625 [main] S2Containerを作成します。path=
> ediMailSettingFlags.dicon
> DEBUG 2008-08-08 08:52:31,656 [main] S2Containerを作成しました。path=
> ediMailSettingFlags.dicon
> DEBUG 2008-08-08 08:52:31,656 [main] S2Containerを作成します。path=
> chronos-extension.dicon
> DEBUG 2008-08-08 08:52:31,656 [main] S2Containerを作成します。path=
> chronos-core.dicon
> DEBUG 2008-08-08 08:52:31,671 [main] S2Containerを作成します。path=
> chronos-base.dicon
> DEBUG 2008-08-08 08:52:31,687 [main] S2Containerを作成します。path=
> chronosCustomize.dicon
> DEBUG 2008-08-08 08:52:31,687 [main] S2Containerを作成しました。path=
> chronosCustomize.dicon
> DEBUG 2008-08-08 08:52:31,921 [main] S2Containerを作成しました。path=
> chronos-base.dicon
> DEBUG 2008-08-08 08:52:32,031 [main] S2Containerを作成しました。path=
> chronos-core.dicon
> DEBUG 2008-08-08 08:52:32,031 [main] S2Containerを作成しました。path=
> chronos-extension.dicon
> DEBUG 2008-08-08 08:52:32,046 [main] S2Containerを作成しました。path=
> app.dicon
> DEBUG 2008-08-08 08:52:32,937 [main] BEGIN
> org.seasar.chronos.core.impl.SchedulerImpl#setSchedulerConfiguration([E-MAIL ADDRESS DELETED])
>
> DEBUG 2008-08-08 08:52:32,937 [main] END
> org.seasar.chronos.core.impl.SchedulerImpl#setSchedulerConfiguration([E-MAIL ADDRESS DELETED])
> : null
> INFO 2008-08-08 08:52:32,937 [main] Running on [ENV]ct, [DEPLOY
> MODE]Hot Deploy
> 2008/08/08 8:52:33 org.apache.coyote.http11.Http11Protocol start
> 情報: Coyote HTTP/1.1を http-8080 で起動します
> 2008/08/08 8:52:33 org.apache.jk.common.ChannelSocket init
> 情報: JK: ajp13 listening on /0.0.0.0:8009
> 2008/08/08 8:52:33 org.apache.jk.server.JkMain start
> 情報: Jk running ID=0 time=0/16 config=null
> 2008/08/08 8:52:33 org.apache.catalina.startup.Catalina start
> 情報: Server startup in 4906 ms
> 2008/08/08 8:54:23 org.apache.catalina.core.AprLifecycleListener init
> 情報: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> C:\jdk1.5.0_13\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\jdk1.5.0_13\jre\bin;C:\jdk1.5.0_13\bin\..\jre\bin\client;C:\jdk1.5.0_13\bin\..\jre\bin;C:\jdk1.5.0_13\bin;C:\oracle\ora92\bin;C:\PROGRA~1\JUSTSY~1\JSLIB32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Intel\DMIX;C:\Program Files\IBM\Personal
> Communications\;C:\Program Files\IBM\Trace Facility\
> 2008/08/08 8:54:23 org.apache.coyote.http11.Http11Protocol init
> 情報: Coyote HTTP/1.1を http-8080 で初期化します
> 2008/08/08 8:54:23 org.apache.catalina.startup.Catalina load
> 情報: Initialization processed in 518 ms
> 2008/08/08 8:54:23 org.apache.catalina.core.StandardService start
> 情報: サービス Catalina を起動します
> 2008/08/08 8:54:23 org.apache.catalina.core.StandardEngine start
> 情報: Starting Servlet Engine: Apache Tomcat/6.0.16
> 2008/08/08 8:54:23 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> 情報:
> validateJarFile(D:\eclipse-jee-europa-winter-win32\workspace\s2chronos-sastruts-example\src\main\webapp\WEB-INF\lib\geronimo-servlet_2.4_spec-1.0.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class
> DEBUG 2008-08-08 08:54:24,421 [main]
> ContextRealPath=D:\eclipse-jee-europa-winter-win32\workspace\s2chronos-sastruts-example\src\main\webapp\
>
> SERVER_SOFTWARE=Apache Tomcat/6.0.16, ServletContextName=null,
> MajorVersion=2, MinorVersion=5
> INFO 2008-08-08 08:54:25,156 [main] Loading validation rules file from
> '/WEB-INF/validator-rules.xml'
> DEBUG 2008-08-08 08:54:25,609 [main] 環境変数#Envにファイル(env.txt)か
> ら値(product)が設定されました
> DEBUG 2008-08-08 08:54:25,734 [main] S2Containerを作成します。path=
> cooldeploy.dicon
> DEBUG 2008-08-08 08:54:25,890 [main] S2Containerを作成しました。path=
> cooldeploy.dicon
> DEBUG 2008-08-08 08:54:25,937 [main] S2Containerを作成します。path=
> app.dicon
> DEBUG 2008-08-08 08:54:25,953 [main] S2Containerを作成します。path=
> convention.dicon
> DEBUG 2008-08-08 08:54:26,015 [main] S2Containerを作成しました。path=
> convention.dicon
> DEBUG 2008-08-08 08:54:26,015 [main] S2Containerを作成します。path=
> aop.dicon
> DEBUG 2008-08-08 08:54:26,109 [main] S2Containerを作成しました。path=
> aop.dicon
> DEBUG 2008-08-08 08:54:26,109 [main] S2Containerを作成します。path=
> j2ee.dicon
> DEBUG 2008-08-08 08:54:26,109 [main] S2Containerを作成します。path=
> jta.dicon
> DEBUG 2008-08-08 08:54:26,156 [main] S2Containerを作成しました。path=
> jta.dicon
> DEBUG 2008-08-08 08:54:26,156 [main] S2Containerを作成します。path=
> jdbc.dicon
> DEBUG 2008-08-08 08:54:26,234 [main] S2Containerを作成しました。path=
> jdbc.dicon
> DEBUG 2008-08-08 08:54:26,250 [main] S2Containerを作成しました。path=
> j2ee.dicon
> DEBUG 2008-08-08 08:54:26,250 [main] S2Containerを作成します。path=
> s2jdbc.dicon
> DEBUG 2008-08-08 08:54:26,250 [main] S2Containerを作成します。path=
> s2jdbc-internal.dicon
> DEBUG 2008-08-08 08:54:26,281 [main] S2Containerを作成しました。path=
> s2jdbc-internal.dicon
> DEBUG 2008-08-08 08:54:26,343 [main] S2Containerを作成しました。path=
> s2jdbc.dicon
> DEBUG 2008-08-08 08:54:26,343 [main] S2Containerを作成します。path=
> chronos-extension.dicon
> DEBUG 2008-08-08 08:54:26,343 [main] S2Containerを作成します。path=
> chronos-core.dicon
> DEBUG 2008-08-08 08:54:26,359 [main] S2Containerを作成します。path=
> chronos-base.dicon
> DEBUG 2008-08-08 08:54:26,375 [main] S2Containerを作成します。path=
> chronosCustomize.dicon
> DEBUG 2008-08-08 08:54:26,390 [main] S2Containerを作成しました。path=
> chronosCustomize.dicon
> DEBUG 2008-08-08 08:54:26,687 [main] S2Containerを作成しました。path=
> chronos-base.dicon
> DEBUG 2008-08-08 08:54:26,828 [main] S2Containerを作成しました。path=
> chronos-core.dicon
> DEBUG 2008-08-08 08:54:26,828 [main] S2Containerを作成しました。path=
> chronos-extension.dicon
> DEBUG 2008-08-08 08:54:26,828 [main] S2Containerを作成します。path=
> dbsession.dicon
> DEBUG 2008-08-08 08:54:26,843 [main] S2Containerを作成しました。path=
> dbsession.dicon
> DEBUG 2008-08-08 08:54:26,843 [main] S2Containerを作成しました。path=
> app.dicon
> DEBUG 2008-08-08 08:54:26,843 [main] S2Containerを作成します。path=
> cooldeploy-autoregister.dicon
> DEBUG 2008-08-08 08:54:26,859 [main] S2Containerを作成します。path=
> customizer.dicon
> DEBUG 2008-08-08 08:54:26,859 [main] S2Containerを作成します。path=
> default-customizer.dicon
> DEBUG 2008-08-08 08:54:26,875 [main] S2Containerを作成します。path=std
> -customizer.dicon
> DEBUG 2008-08-08 08:54:26,875 [main] S2Containerを作成します。path=std
> -customizer-tiger.dicon
> DEBUG 2008-08-08 08:54:26,906 [main] S2Containerを作成しました。path=
> std-customizer-tiger.dicon
> DEBUG 2008-08-08 08:54:26,937 [main] S2Containerを作成しました。path=
> std-customizer.dicon
> DEBUG 2008-08-08 08:54:26,937 [main] S2Containerを作成しました。path=
> default-customizer.dicon
> DEBUG 2008-08-08 08:54:26,968 [main] S2Containerを作成しました。path=
> customizer.dicon
> DEBUG 2008-08-08 08:54:26,968 [main] S2Containerを作成します。path=
> creator.dicon
> DEBUG 2008-08-08 08:54:27,000 [main] S2Containerを作成しました。path=
> creator.dicon
> DEBUG 2008-08-08 08:54:27,015 [main] S2Containerを作成しました。path=
> cooldeploy-autoregister.dicon
> DEBUG 2008-08-08 08:54:27,875 [main] BEGIN
> org.seasar.chronos.core.impl.SchedulerImpl#setSchedulerConfiguration([E-MAIL ADDRESS DELETED])
>
> DEBUG 2008-08-08 08:54:27,875 [main] END
> org.seasar.chronos.core.impl.SchedulerImpl#setSchedulerConfiguration([E-MAIL ADDRESS DELETED])
> : null
> DEBUG 2008-08-08 08:54:28,046 [main] クラス
> (org.seasar.chronos.sastruts.example.action.AddAction[addAction])のコ
> ンポーネント定義を登録します
> DEBUG 2008-08-08 08:54:28,046 [main] クラス
> (org.seasar.chronos.sastruts.example.dto.UserAuthDto[userAuthDto])のコ
> ンポーネント定義を登録します
> DEBUG 2008-08-08 08:54:28,078 [main] クラス
> (org.seasar.chronos.sastruts.example.task.SessionTimerTask
> [sessionTimerTask])のコンポーネント定義を登録します
> DEBUG 2008-08-08 08:54:28,093 [main] クラス
> (org.seasar.chronos.sastruts.example.task.TestTask[testTask])のコン
> ポーネント定義を登録します
> INFO 2008-08-08 08:54:28,156 [main] Running on [ENV]product, [DEPLOY
> MODE]Cool Deploy
> DEBUG 2008-08-08 08:54:28,156 [main] BEGIN
> org.seasar.chronos.core.impl.SchedulerImpl#start()
> DEBUG 2008-08-08 08:54:28,156 [main] スケジューラ を 開始します.
> DEBUG 2008-08-08 08:54:28,171 [main] スケジューラ を 開始しました.
> DEBUG 2008-08-08 08:54:28,171 [main] END
> org.seasar.chronos.core.impl.SchedulerImpl#start() : null
> DEBUG 2008-08-08 08:54:28,265 [chronos-pool-1-daemonthread-1]
> cronExpression = 0 */1 * * * ?
> DEBUG 2008-08-08 08:54:28,281 [chronos-pool-1-daemonthread-1]
> cronExpression = 0 */1 * * * ?
> 2008/08/08 8:54:28 org.apache.coyote.http11.Http11Protocol start
> 情報: Coyote HTTP/1.1を http-8080 で起動します
> 2008/08/08 8:54:28 org.apache.jk.common.ChannelSocket init
> 情報: JK: ajp13 listening on /0.0.0.0:8009
> 2008/08/08 8:54:28 org.apache.jk.server.JkMain start
> 情報: Jk running ID=0 time=0/32 config=null
> 2008/08/08 8:54:28 org.apache.catalina.startup.Catalina start
> 情報: Server startup in 5456 ms
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>   



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