Weblogic Error 403--Forbidden

前端 未结 7 1201
名媛妹妹
名媛妹妹 2020-12-28 18:42

I am trying to run a Java EE application on weblogic. The application works fine on Tomcat. I have customized the war file to include weblogic.xml. This file includes the fo

7条回答
  •  盖世英雄少女心
    2020-12-28 19:40

    If you miss adding corresponding security configuration in weblogic.xml you will get "403 Forbidden. The server understood the request, but is refusing to fulfill it." error.

    Thus make sure that besides having configured your web.xml with "security-constraint", "login-config" and "security-role" settings, you have also "security-role-assignment" configuration in weblogic.xml, like the following:

    
    
         12.2.1
         SomeApp
         ***************
         ***************
         
             someGroupeDefinedInWebLogicServer
             someUserDefinedInWebLogicServer
         
         ***************
         ***************
    
    

    Hope, this hepls.

提交回复
热议问题