World Map
Java Service Wrapperは、御社Javaアプリケーション製品の安定した信頼性を高める最短最善の方法です。
  • Free Trial
  • Buy Now
wrapper.java.mainclass プロパティ

wrapper.java.mainclass プロパティ

対応バージョン : 1.0.0
対応エディション :プロフェッショナル版スタンダード版コミュニティー版
対応プラットフォーム :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

このプロパティには、Wrapperがアプリケーションを起動するときに実行するクラスを指定します。 このプロパティ値は、選択したインテグレーション方法に依存します。 ほとんどのケースでは、これはアプリケーションのメイン・クラスではありません。

設定例:(インテグレーション方法1[WrapperSimpleApp])
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
設定例:(インテグレーション方法2[WrapperStartStopApp])
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp
設定例:(インテグレーション方法4[WrapperJarApp])
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp

WrapperManager]クラスを正しく初期化できないメイン・クラスを指定している場合、 Wrapperはタイムアウトになり、スタートアップ・タイムアウトの時間切れの後にJVMを終了します。 さらに詳しくは[wrapper.startup.timeout]プロパティをご覧ください。 これが起きると、次のメッセージが表示されます:

------------------------------------------------------------------------
Advice:
The Wrapper consists of a native component as well as a set of classes
which run within the JVM that it launches.  The Java component of the
Wrapper must be initialized promptly after the JVM is launched or the
Wrapper will timeout, as just happened.  Most likely the main class
specified in the Wrapper configuration file is not correctly initializing
the Wrapper classes:
    com.myapp.Main
While it is possible to do so manually, the Wrapper ships with helper
classes to make this initialization processes automatic.
Please review the integration section of the Wrapper's documentation
for the various methods which can be employed to launch an application
within the Wrapper:
    http://wrapper.tanukisoftware.org/doc/english/integrate.html
------------------------------------------------------------------------