2016-03-22 34 views
-2

Libertyサーバーが正常に起動し、1秒以内にシャットダウンを開始します。起動後のIBM Libertyサーバーのシャットダウン

私のWindows開発システムでは、サーバーがEclipseのバージョンJunoで起動されています。アプリケーションは、ejbを含むWebアプリケーションです。以下のサーバー構成の詳細。

<server description="localWAS"> 

<!-- Enable features --> 
<featureManager> 
    <feature>jsp-2.2</feature> 
    <feature>localConnector-1.0</feature> 
    <feature>jndi-1.0</feature> 
    <feature>wmqJmsClient-1.1</feature> 
    <feature>jdbc-4.0</feature> 
    <feature>ejbLite-3.1</feature> 
    <!-- <feature>jpa-2.0</feature> --> 
    <feature>json-1.0</feature> 
    <feature>managedBeans-1.0</feature> 
    <feature>cdi-1.0</feature> 
    <feature>servlet-3.0</feature> 
</featureManager> 

<variable name="[commonlib]" value="/commonlib"/> 

<variable name="appLocation" value="[deployment ready app location]" /> 

<variable name="hostname" value="[host]" /> 

<httpEndpoint host="${hostname}" httpPort="[httpPort]" 
    httpsPort="[httpsPort]" id="defaultHttpEndpoint" /> 

<dataSource id="[oracledb]" jndiName="[oracledb-jndi]"> 
    <jdbcDriver javax.sql.ConnectionPoolDataSource="oracle.jdbc.pool.OracleConnectionPoolDataSource"> 
     <library> 
      <fileset dir="${[commonlib]}" includes="ojdbc6.jar" /> 
     </library> 
    </jdbcDriver> 
    <properties.oracle databaseName="[databaseName]" password="[password]" 
     portNumber="1521" serverName="[serverName]" user="[user]" /> 
</dataSource> 

more data sources 

<variable name="wmqJmsClient.rar.location" value="/servers/IBM/lib/WMQ/ra/wmq.jmsra.rar" /> 

<jmsQueueConnectionFactory 
    connectionManagerRef="AIXQCF" jndiName="jms/aixQCF"> 
    <properties.wmqJms channel="SYSTEM.ADMIN.SVRCONN" 
     hostName="jdawg.pharmacy.com" pollingInterval="5s" port="1416" 
     queueManager="JDAWG.QAS" rescanInterval="5s" transportType="CLIENT" /> 
</jmsQueueConnectionFactory> 

<connectionManager id="AIXQCF" maxPoolSize="2" /> 

<jmsQueue id="[jmsQueueId]" jndiName="jms/[jmsQueueName]"> 
    <properties.wmqJms baseQueueName="[baseQueueName]" /> 
</jmsQueue> 

more queues 

<jndiEntry id="[jndiEntryId]" jndiName="[jndiEntryName]" 
    value="[jndiEntryValue]" /> 

more jndi entries 

<logging 
    traceSpecification="*=info:com.ibm.ws.http.internal.*=all:com.ibm.ws.webcontainer.*=all:com.ibm.ws.http.channel.*=all:Naming=all:NamingService=all:com.ibm.ws.app*=all" /> 

<applicationMonitor updateTrigger="mbean" /> 

<application context-root="[application-context-root]" id="[application-id]" 
    location="${appLocation}" name="[application-name]" type="war" /></server> 

私がにあるトレースログファイルを見て[..liberty USR \サーバー[プロフィール] \ログ\]と役に立つかもしれないいくつかのログを抽出します。 はここ..

ApplicationStateCoordinator - com.ibm.ws.app.manager.ApplicationStateCoordinator 
ApplicationStateMachineImpl - com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl 

ApplicationConfigurator - com.ibm.ws.app.manager.internal.ApplicationConfigurator 
AppManagerActivator - com.ibm.ws.app.manager.ready.AppManagerActivator 
Util - com.ibm.ws.classloading.internal.Util 
VirtualHostImpl - com.ibm.ws.http.internal.VirtualHostImpl 
DynamicVirtualHostConfiguration - com.ibm.ws.webcontainer.osgi.DynamicVirtualHostConfiguration 

ログの行を短くするためにリストされたログにいくつかのクラスです:

[15:01:59:784] 0000001d id=   ApplicationStateCoordinator   > updateStartingAppStatus Entry 
                               com.ibm.ws.app.manager_101 
                               STARTED 

[15:01:59:784] 0000001d id=   ApplicationStateCoordinator   < updateStartingAppStatus Exit 

[15:01:59:784] 0000001d id=4150c9af internal.ApplicationConfigurator  < notifyAppStarted Exit 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl > setInterruptible Entry 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl > executeQueuedActions Entry 

[15:01:59:784] 0000001d id=   ApplicationStateMachineImpl 1 ASM[0]: [appName]: executeQueuedActions: interruptible=false 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl < executeQueuedActions Exit 
                               false 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl < setInterruptible Exit 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl < enterState Exit 

[15:01:59:784] 0000001d id=   ApplicationStateMachineImpl 1 ASM[0]: [appName]: run: called enterState STOPPED 

[15:01:59:784] 0000001d id=6be25de7 ApplicationStateMachineImpl < run Exit 

[15:01:59:784] 00000012 id=   ApplicationStateCoordinator   < getSlowlyStartingApps Exit 
                               null 

[15:01:59:784] 00000012 id=30ba9255 ready.AppManagerActivator    < start Exit 

[15:01:59:784] 00000012 id=b34dbc66 LogService-242-ready     1 BundleEvent STARTED 
                               Event:org.osgi.framework.BundleEvent[source=ready_1.0.3.cl50220140403-1858 [242]] 

[15:01:59:815] 00000018 id=   com.ibm.ws.kernel.feature.internal.FeatureManager   I CWWKF0008I: Feature update completed in 37.251 seconds. 

[15:01:59:815] 00000018 id=   com.ibm.ws.kernel.feature.internal.FeatureManager   A CWWKF0011I: The server defaultServer is ready to run a smarter planet. 

[15:02:01:501] 0000002a id=b34dbc66 LogService-242-ready     1 BundleEvent STOPPING 
                               Event:org.osgi.framework.BundleEvent[source=ready_1.0.3.cl50220140403-1858 [242]] 

[15:02:01:501] 0000002a id=30ba9255 ready.AppManagerActivator    > stop Entry 
                               [email protected]34d 

[15:02:01:501] 0000002a id=   ApplicationStateCoordinator   > getSlowlyStoppingApps Entry 
                               30 
                               SECONDS 

[15:02:01:501] 0000002a id=4150c9af internal.ApplicationConfigurator  > getStoppingAppPids Entry 

[15:02:01:501] 0000002a id=4150c9af internal.ApplicationConfigurator  < getStoppingAppPids Exit 
                               [com.ibm.ws.app.manager_101] 

[15:02:01:501] 0000002a id=4150c9af internal.ApplicationConfigurator  > stopRunningApps Entry 

[15:02:01:501] 0000002a id=6be25de7 ApplicationStateMachineImpl > uninstall Entry 
<br> 
[15:02:01:501] 0000002a id=   ApplicationStateMachineImpl 1 ASM[0]: [appName]: createDependency: created AppDep[7]: desc="resolves when the app [appName] finishes stopping, at which point it will be removed", [email protected]f28eb9 

[15:02:01:501] 0000002a id=   ApplicationStateMachineImpl 1 ASM[0]: [appName]: created SCA[1] action=REMOVE 

[15:02:01:516] 00000021 id=   ApplicationStateMachineImpl 1 ASM[0]: [appName]: run: executing SCA[1] action=REMOVE 
<br>. 
<br> 
[15:02:02:387] 00000021 id=   Util      > ensureNotNull Entry 
                               Parameter 'domain' must not be null 
                               Thread Context 

[15:02:02:387] 00000021 id=   Util      > ensure Entry 
                               Parameter 'domain' must not be null 
                               true 

[15:02:02:387] 00000021 id=   Util      < ensure Exit 

[15:02:02:387] 00000021 id=   Util      < ensureNotNull Exit 
                               Thread Context 

[15:02:02:387] 00000021 id=   Util      > ensureNotNull Entry 
                               Parameter 'id' must not be null 
                               WebModule:[appName]-[appName]-/[appName] 

[15:02:02:387] 00000021 id=   Util      > ensure Entry 
                               Parameter 'id' must not be null 
                               true 

[15:02:02:387] 00000021 id=   Util      < ensure Exit 
<br>. 
<br> 
[15:02:02:450] 00000021 id=   VirtualHostImpl      A CWWKT0017I: Web application removed (default_host): http://[host]:9080/[appName]/ 

[15:02:02:450] 00000021 id=a90f2905 DynamicVirtualHostConfiguration 1 Context root removed /[appName]/* 
+1

この質問には十分なコンテキストがありません。サーバーにはどのような機能が設定されていますか?稼働している場所(VM、スタンドアロンサーバー、ドッカーコンテナなど)?どのようなアプリケーションですか(Webアプリケーション?osgiアプリケーション?ejbアプリケーションですか?)dropinですか?それとも、関連するアプリケーション構成ですか?ログから抜粋された抜粋はここでは役に立たない。サーバーとアプリケーションの設定を理解することは、私たちがあなたを助けるのにもっと役立つでしょう。 – ebullient

+0

コメントありがとうございます。サーバーはWindows開発システムのEclipseバージョンJunoで起動されています。アプリケーションは、ejbを含むWebアプリケーションです。私は数分後にサーバー構成に関する情報を更新して質問をします。 – user2891264

+0

詳細なトレースはここでは役に立ちませんが、問題とは関係ありません。あなたはEclipseでサーバーを起動し、Eclipseを閉じますか? eclipseでサーバーを起動すると、フォアグラウンドで効果的に実行されます。管理者としてLIbertyを実行する理由は全くありませんが、実際には私が推奨するものではありません。ファイルのアクセス許可を最初に確認し(すべてのファイルを通常のユーザーが所有するようにする)、コマンドラインからサーバーを起動してみてください。あなたが使用しているLibertyのバージョンと使用しているWDT(Eclipseツール)のバージョンを知ることも役立ちます。 – ebullient

答えて

0

物事のカップルがチェックする - あなたがにSystem.exitを呼び出しているアプリケーション・コードを持っていますか? nohupを使用せずにシェルを終了してサーバーを起動していますか?

+0

ご回答いただきありがとうございます。 System.exit()を呼び出すアプリケーションコードはありません。私は管理者としてEclipseからサーバーを起動しています。私は質問のサーバー設定に関する情報を追加しました。 – user2891264

関連する問題