0

迁移我的 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)
4

1 回答 1

0

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

于 2016-10-06T09:55:41.407 回答