[Seasar-user:14026] Re: s2chronosの起動方法について

Junichi Kato [E-MAIL ADDRESS DELETED]
2008年 5月 1日 (木) 07:56:28 JST


寺嶋様
はじめまして.

S2Chronosのコミッタの加藤(j5ik2o)です.

ウェブアプリ(Teeda)でないなら,小林さんのおっしゃる通りです.

ウェブアプリ上からの利用をお考えでしたら,

http://ml.seasar.org/archives/seasar-user/2008-April/013744.html
http://ml.seasar.org/archives/seasar-user/2008-April/013745.html

このあたりの過去ログを参考にされてください.
その他,ご不明点などあれば随時お問い合わせください.


Takashige Terashima さんは書きました:
> はじめまして寺嶋と申します。
> s2chronosの起動方法について教えていただきたいことがあります。
>
> 配布されているサンプルを参考に以下のクラスを作成しました。
>
> ===========================================================
> /*
> * 実行クラス
> */
> public class Batch {
> public static void main(String[] args) {
> SingletonS2ContainerFactory.init();
> S2Container container = SingletonS2ContainerFactory.getContainer();
> Scheduler scheduler = (Scheduler) container.getComponent(Scheduler.class);
> scheduler.start();
> try {
> scheduler.join();
> } catch (Exception e) {}
> SingletonS2ContainerFactory.destroy();
> }
> }
>
> /*
> * タスククラス
> */
> @Task
> @CronTrigger(expression = "*/1 * * * *")
> public class TestTask extends AbstractTask {
> @NextTask("doDeleteFailureFaq")
> public synchronized void initialize() {
> //
> }
>
> @JoinTask(JoinType.NoWait)
> public synchronized void doTest() {
> System.out.println("Test OK");
> }
> public synchronized void destroy() {
> //
> }
> }
> ===========================================================
>
> eclipse環境で上記を実行したのですがNullPointerがでてうまくいきません。
> 原因をご教授いただければ幸いです。
>
> ===========================================================
> 2008-05-01 02:09:33,498 [main] DEBUG org.seasar.framework.env.Env - 環
> 境変数#Envにファイル(env.txt)から値(ut)が設定されました
> 2008-05-01 02:09:33,592 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=warmdeploy.dicon
> 2008-05-01 02:09:33,608 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=convention.dicon
> 2008-05-01 02:09:33,733 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=convention.dicon
> 2008-05-01 02:09:33,733 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=customizer.dicon
> 2008-05-01 02:09:33,733 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=default-customizer.dicon
> 2008-05-01 02:09:33,748 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=std-customizer.dicon
> 2008-05-01 02:09:33,795 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=std-customizer.dicon
> 2008-05-01 02:09:33,795 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=default-customizer.dicon
> 2008-05-01 02:09:33,826 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=customizer.dicon
> 2008-05-01 02:09:33,826 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=creator.dicon
> 2008-05-01 02:09:33,920 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=creator.dicon
> 2008-05-01 02:09:33,920 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=warmdeploy.dicon
> 2008-05-01 02:09:33,967 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=app.dicon
> 2008-05-01 02:09:33,983 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=convention.dicon
> 2008-05-01 02:09:33,983 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=convention.dicon
> 2008-05-01 02:09:33,983 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=aop.dicon
> 2008-05-01 02:09:34,030 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=aop.dicon
> 2008-05-01 02:09:34,030 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=app_aop.dicon
> 2008-05-01 02:09:34,045 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=app_aop.dicon
> 2008-05-01 02:09:34,045 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=teedaExtension.dicon
> 2008-05-01 02:09:34,061 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=teeda.dicon
> 2008-05-01 02:09:34,076 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=teedaErrorPage.dicon
> 2008-05-01 02:09:34,108 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=teedaErrorPage.dicon
> 2008-05-01 02:09:34,108 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=teedaCustomize.dicon
> 2008-05-01 02:09:34,123 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=teedaCustomize.dicon
> 2008-05-01 02:09:34,342 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=teeda.dicon
> 2008-05-01 02:09:34,530 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=teedaExtension.dicon
> 2008-05-01 02:09:34,530 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=dao.dicon
> 2008-05-01 02:09:34,530 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=j2ee.dicon
> 2008-05-01 02:09:34,530 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=jta.dicon
> 2008-05-01 02:09:34,561 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=jta.dicon
> 2008-05-01 02:09:34,561 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=jdbc.dicon
> 2008-05-01 02:09:34,576 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=jdbc-extension.dicon
> 2008-05-01 02:09:34,592 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=jdbc-extension.dicon
> 2008-05-01 02:09:34,670 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=jdbc.dicon
> 2008-05-01 02:09:34,670 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=j2ee.dicon
> 2008-05-01 02:09:34,717 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=dao.dicon
> 2008-05-01 02:09:34,717 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=dxo.dicon
> 2008-05-01 02:09:34,717 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=dxo-builtin-converters.dicon
> 2008-05-01 02:09:34,764 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=dxo-builtin-converters.dicon
> 2008-05-01 02:09:34,764 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=dxo-tiger-converters.dicon
> 2008-05-01 02:09:34,764 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=dxo-tiger-converters.dicon
> 2008-05-01 02:09:34,780 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=dxo.dicon
> 2008-05-01 02:09:34,780 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=s2mai.dicon
> 2008-05-01 02:09:34,795 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=s2mai-core.dicon
> 2008-05-01 02:09:34,795 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=org/seasar/mai/transport/transport.dicon
> 2008-05-01 02:09:34,811 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=org/seasar/mai/transport/transport.dicon
> 2008-05-01 02:09:34,811 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=mailTemplate.dicon
> 2008-05-01 02:09:34,826 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=org/seasar/mai/template/velocity.dicon
> 2008-05-01 02:09:34,826 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成します。path=mailProperties.dicon
> 2008-05-01 02:09:34,842 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=mailProperties.dicon
> 2008-05-01 02:09:34,889 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=org/seasar/mai/template/velocity.dicon
> 2008-05-01 02:09:34,889 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=mailTemplate.dicon
> 2008-05-01 02:09:34,920 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=s2mai-core.dicon
> 2008-05-01 02:09:34,936 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=s2mai.dicon
> 2008-05-01 02:09:34,936 [main] DEBUG
> org.seasar.framework.container.factory.S2ContainerFactory -
> S2Containerを作成しました。path=app.dicon
> 2008-05-01 02:09:35,233 [main] WARN
> org.seasar.framework.container.assembler.BindingTypeShouldDef -
> org.seasar.teeda.extension.config.taglib.impl.ServletContextTaglibManagerImpl
> のプロパティ(servletContext)が見つからないので設定をスキップします
> Exception in thread "main" java.lang.NullPointerException
> at
> org.seasar.teeda.extension.config.taglib.impl.ServletContextTaglibManagerImpl.scanJars(ServletContextTaglibManagerImpl.java:47)
> at
> org.seasar.teeda.extension.config.taglib.impl.ServletContextTaglibManagerImpl.init(ServletContextTaglibManagerImpl.java:43)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:93)
> at
> org.seasar.framework.container.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:94)
> at
> org.seasar.framework.container.assembler.DefaultInitMethodAssembler.assemble(DefaultInitMethodAssembler.java:49)
> at
> org.seasar.framework.container.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:69)
> at
> org.seasar.framework.container.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:48)
> at
> org.seasar.framework.container.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:76)
> at
> org.seasar.framework.container.impl.ComponentDefImpl.init(ComponentDefImpl.java:236)
> at
> org.seasar.framework.container.impl.S2ContainerImpl.init(S2ContainerImpl.java:563)
> at
> org.seasar.framework.container.impl.ThreadSafeS2ContainerImpl.init(ThreadSafeS2ContainerImpl.java:172)
> at
> org.seasar.framework.container.impl.S2ContainerImpl.init(S2ContainerImpl.java:560)
> at
> org.seasar.framework.container.impl.ThreadSafeS2ContainerImpl.init(ThreadSafeS2ContainerImpl.java:172)
> at
> org.seasar.framework.container.factory.SingletonS2ContainerFactory.init(SingletonS2ContainerFactory.java:150)
> at com.e_taka.faqmaker.core.batch.main.Batch.main(Batch.java:24)
> ===========================================================
>
> 以上、よろしくお願いいたします。
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>   



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