のendpoint.publish()経由でWebサービスをデプロイできません。SSLなしで内部ネットワークにWeblogicサーバーがあります。アプリケーションにアクセスするには、apacheサーバーがリバースプロキシとしてインストールされ、SSLも構成されている必要があります。エンドポイント.publish(アドレス)経由でWebサービスを配備しても問題ありません。アクセスURLが内部の場合、アドレスはhttpservletrequest.getRequestURL()から取得されます。しかし、失敗し、アクセスURLがプロキシURLである場合は以下の例外をスローします。どのアイデアをプロキシURL経由で公開するのですか?は、apacheリバースプロキシenv
weblogic.wsee.server.ServerURLNotFoundException: Cannot resolve URL for protocol http/https
at weblogic.wsee.server.ServerUtil.getHTTPServerURL(ServerUtil.java:211)
at weblogic.wsee.server.ServerUtil.getServerURL(ServerUtil.java:150)
at weblogic.wsee.server.ServerUtil.getServerURL(ServerUtil.java:137)
at weblogic.wsee.jaxws.spi.WLSEndpoint.calculatePublicAddressFromEndpointAddress(WLSEndpoint.java:335)
at weblogic.wsee.jaxws.spi.WLSEndpoint.publish(WLSEndpoint.java:207)
コードをデバッグし、endpoint.publish(address)を実行しているときにアドレスが 'https:// proxy/app/ws?wsdl'であることに気付きました。次に、URLを変更してhttpsの代わりにhttpを使用しようとしました。できます。プロキシサーバとweblogicサーバが別々のマシンにあっても、それでも動作します。どういう理由ですか? – shentang