I have a web application with <security-role-assignment>
nodes in weblogic.xml
Eg:
<security-role-assignment>
<role-name>Application Role 1</role-name>
<principal-name>Active Directory Group Principal</principal-name>
</security-role-assignment>
During the deployment in WebLogic the principal-name
are overwritten with a deployment plan to set the correct group principal name (this works).
I now have to access that role-name <-> principal-name mapping programatically from within the web application.
Reading the weblogic.xml
this way does not work, that results in the original (unmodified by the deployment plan) XML and values:
request.getServletContext().getResourceAsStream("/WEB-INF/weblogic.xml")
Question
How can I access entries in weblogic.xml
which are overwritten by a deployment plan?