Tomcat にデプロイされた Web サービスを作成しています。クライアントが Web サービスを呼び出すと、情報が正常に送信されますが、応答を受け取るはずのときに、コンソールに次のようなエラー メッセージが表示されます。Tomcat がクラッシュすることに気付きました。クライアントを実行するたびに、Tomcatを再度起動する必要があります
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at ws.test.WebserviceSTSStub.certificate(WebserviceSTSStub.java:184)
at client.Client.main(Client.java:144)
Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
... 9 more
Failed at communicating methods
これは tomcat のログ ファイルです。
Nov 29, 2012 3:26:44 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-apr-8080"]
Nov 29, 2012 3:26:44 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-apr-8009"]
Nov 29, 2012 3:26:44 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Nov 29, 2012 3:26:44 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Nov 29, 2012 3:26:45 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Nov 29, 2012 3:26:46 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Nov 29, 2012 3:26:47 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/axis2] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Nov 29, 2012 3:26:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/axis2] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1b3cbc9]) and a value of type [org.apache.axis2.context.MessageContext] (value [[MessageContext: logID=urn:uuid:81669E5CA369177A451354188407165]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 29, 2012 3:26:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/axis2] created a ThreadLocal with key of type [org.apache.xmlbeans.XmlBeans$1] (value [org.apache.xmlbeans.XmlBeans$1@1080026]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@41ca9a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 29, 2012 3:26:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/axis2] created a ThreadLocal with key of type [org.apache.xmlbeans.impl.store.CharUtil$1] (value [org.apache.xmlbeans.impl.store.CharUtil$1@15c4bc6]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@72b4dc]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 29, 2012 3:26:47 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/axis2] created a ThreadLocal with key of type [org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl$1] (value [org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl$1@c001cd]) and a value of type [java.util.ArrayList] (value [[java.lang.ref.SoftReference@1b66f75]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 29, 2012 3:26:47 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-apr-8080"]
Nov 29, 2012 3:26:47 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-apr-8009"]
サービスのロジックが壊れているのか、設定が正しく行われていないのかわかりませんが、サービスがリクエストを送信したクライアントを見つけることができないという印象を受けます
これは外部ライブラリによって引き起こされる可能性がありますか? webapps\axis2\WEB-INF\lib フォルダーにドロップしたばかりの bouncycastle ライブラリを使用します
次のようにアクセスする webapps\axis2\WEB-INF\classes には、プロパティ ファイルと jaas 構成ファイルもあります。
プロパティファイル
Properties props = new Properties();
props.load( new FileInputStream( "C:\\apache\\apache-tomcat-7.0.29\\webapps\\axis2\\WEB-INF\\classes\\server.properties"));
JAAS 構成ファイル
System.setProperty( "java.security.auth.login.config", "C:\\apache\\apache-tomcat-7.0.29\\webapps\\axis2\\WEB-INF\\classes\\jaas.conf");