WebLogic: Непризнанный Обратный Вызов

После миграции приложения JAVA EE. (Spring Web model-view-controller (MVC) framework) от 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

Я извлек ухо, которое работает с новым ухом, которое не работает, и я не вижу никаких различий. Только папка (jsp_servlet), которая отсутствует в новом ухе

..myAppmyAppWebWEB-INFclassesjsp_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

After migrating my JAVA EE app. (Spring Web model-view-controller (MVC) framework) from Ant to Maven I am getting this message while starting my app by WebLogic Server Version: 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

I've extracted an ear that is working with the new ear that is not working and I don't see any differences. Only a folder (jsp_servlet) that is not present in the new ear

..myAppmyAppWebWEB-INFclassesjsp_servlet

I went to the console http://localhost:7001/console and login.
I invokeed the test page for the application using the console with the same result

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

I see this error in the server logs

 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)

.run(LoginContext.java:947)
at javax.security.auth.login.LoginContext$SecureCallbackHandler

After migrating my JAVA EE app. (Spring Web model-view-controller (MVC) framework) from Ant to Maven I am getting this message while starting my app by WebLogic Server Version: 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

I've extracted an ear that is working with the new ear that is not working and I don't see any differences. Only a folder (jsp_servlet) that is not present in the new ear

..myAppmyAppWebWEB-INFclassesjsp_servlet

I went to the console http://localhost:7001/console and login.
I invokeed the test page for the application using the console with the same result

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

I see this error in the server logs

 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)

.run(LoginContext.java:944)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:943)

1 ответ

  1. Если вы не изменили ничего, кроме файла Ant conf на mvn pom, убедитесь, что вы очистили проект и построили его еще раз с помощью команды mvn. Я предложу использовать gradle для миграции, потому что mvn и ant немного отличаются. В gradle вы можете объединить обе функции.