【问题标题】:WebLogic: Unrecognized CallbackWebLogic:无法识别的回调
【发布时间】:2016-10-05 14:08:19
【问题描述】:

迁移我的 JAVA EE 应用后。 (Spring Web 模型-视图-控制器(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

我拔出了一个可以正常工作的耳朵,而新耳朵却不能正常工作,我看不出有任何区别。只有一个文件夹(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)

【问题讨论】:

    标签: java maven spring-mvc weblogic12c authenticator


    【解决方案1】:

    如果您除了将 ant conf 文件更改为 mvn pom 之外没有更改任何内容,请确保您清理项目并使用 mvn 命令再构建一次。我会建议使用 gradle 进行迁移,因为 mvn 和 ant 略有不同。在 gradle 中,您可以结合这两种功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-13
      • 1970-01-01
      • 2019-10-21
      • 1970-01-01
      • 1970-01-01
      • 2019-04-11
      • 1970-01-01
      相关资源
      最近更新 更多