4月 7th, 2008at 12:15
Tags: Apache
Axis1.4
「アクシス」らしいけど、「アクシズ」と読んでしまうことに注意。
Axis は本質的には SOAP エンジン — クライアント、サーバ、ゲートウェイなどの
SOAP 処理装置を構築するためのフレームワークです。
(Apache WebServiceプロジェクトJaより)
Axis1.x系とAxis2系にわかれているらしい。
とりあえずインストールまでを
インストール
WebアプリケーションサーバとしてTomcat5.5を使った。
「AXIS_HOME\webapp\axis\WEB-INF\lib」にある、「saaj.jar」と「jaxrpc.jar」を「TOMCAT_HOME\common\lib」にコピー。
これで終わり。
サンプルアプリで動作確認
「AXIS_HOME\webapps\axis」を「TOMCAT_HOME\webapps」にコピーして、ブラウザから以下のURLにアクセス。
http://localhost:ポート番号/axis/
トラブルシューティング
AxisのサンプルWSDLを使ったときに以下のエラーが発生。
WSDLException:faultCode=OTHER_ERROR:Unable to resolve imported document at 'http://localhost:9999/axis/services/Version?wsdl'.:Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '9999':java.net.ConnectException:Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '9999'
URLの場所にアクセスできててないみたい。
調べてみるとWindowsのファイアウォールが問題になっていたらしい。ポート8080(HTTP)を使わずに「9999」にしたので、ファイアウォールの設定でポートを空けてあげるとうまくいった。
WebLogic8.1での問題
WLのwebservices.jarとAxisのsaaj.jarが衝突するらしい。ので、weblogic.xmlでAxisのJarを優先的にロードしてもらうことが必要。
<weblogic-web-app> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>
I'm a software engineer who like travel to island in Japanese. Recently I am enjoying agile manager, coach, product owner for my work. The person grows like that.











