0

私のJAVA EEアプリを移行した後。(Spring Web model-view-controller (MVC) フレームワーク) Ant から Maven へ WebLogic Server バージョン: 12.1.2.0.0 でアプリを起動しているときに、このメッセージが表示されます。

Error 403--Forbidden         

From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.4.4 403 Forbidden

The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable

機能していない新しい耳で機能している耳を抽出しましたが、違いは見られません。新しい ear に存在しないフォルダー (jsp_servlet) のみ

..\myApp\myAppWeb\WEB-INF\classes\jsp_servlet

コンソールhttp://localhost:7001/consoleにアクセスしてログインしました。コンソールを使用してアプリケーションのテスト ページを呼び出したところ、同じ結果が得られました

/wls-cat/index.jsp (Classloader Analysis Tool on server myserver)

サーバーログにこのエラーが表示されます

 javax.security.auth.callback.UnsupportedCallbackException: Unrecognized Callback
    at weblogic.management.mbeanservers.internal.JMXAuthenticator$JMXCallbackHandler.handle(JMXAuthenticator.java:135)
    at com.bea.common.security.internal.service.CallbackHandlerWrapper.handle(CallbackHandlerWrapper.java:76)
    at weblogic.security.service.internal.WLSJAASLoginServiceImpl$CallbackHandlerWrapper.handle(WLSJAASLoginServiceImpl.java:154)
    at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:947)
    at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:944)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:943)
4

1 に答える 1

0

ant conf ファイル以外を mvn pom に変更していない場合は、プロジェクトをクリーンアップして、mvn コマンドからもう一度ビルドしてください。mvn と ant は少し異なるため、移行には gradle を使用することをお勧めします。gradle では、両方の機能を組み合わせることができます。

于 2016-10-06T09:55:41.407 に答える