[jboss-jira] [JBoss JIRA] (WFLY-9626) Defining security-domain in jboss-app.xml where EJB deployment does not have security settings results in IllegalStateException
Guido Jäkel (JIRA)
issues at jboss.org
Wed Dec 20 07:52:00 EST 2017
[ https://issues.jboss.org/browse/WFLY-9626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507445#comment-13507445 ]
Guido Jäkel commented on WFLY-9626:
-----------------------------------
For reference, here some declaration of the deployment where the problem was discovered
{code:title=jboss-app.xml}
<!-- generated 20171206-095642 by _genoverlayfiles for "api.nbn-resolving.org/ROOT.ear" -->
<jboss-app xmlns="http://java.sun.com/xml/ns/javaee" <<---- this NS is need to have access to the resource-ref tag
xmlns:jboss="http://www.jboss.com/xml/ns/javaee" <<---- this NS is need to have access to the security-domain tag
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-app_7_0.xsd"
version="7.0">
<module>
<web>
<web-uri>
urnadministration-api-impl-1.0.3-SNAPSHOT.war
</web-uri>
<context-root>
/
</context-root>
</web>
</module>
<resource-ref>
<res-ref-name>java:/jdbc/urn</res-ref-name>
<jndi-name>java:jboss/datasources/epicur</jndi-name>
</resource-ref>
<!-- jboss:security-domain> <<---- if enabled here, the applications throws the exception
api.nbn-resolving.org/ROOT
</jboss:security-domain -->
</jboss-app>
{code}
{code:title=urnadministration-api-impl-*.war/WEB-INF/jboss-web.xml}
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated 20171206-095642 by _genoverlayfiles for "api.nbn-resolving.org/ROOT.ear" -->
<jboss-web
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_10_0.xsd"
>
<virtual-host>
api.nbn-resolving.org
</virtual-host>
<security-domain> <<--- if disabled here, the app can't authorize
api.nbn-resolving.org/ROOT
</security-domain>
</jboss-web>
{code}
> Defining security-domain in jboss-app.xml where EJB deployment does not have security settings results in IllegalStateException
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-9626
> URL: https://issues.jboss.org/browse/WFLY-9626
> Project: WildFly
> Issue Type: Bug
> Components: Security
> Affects Versions: 10.1.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
>
> {noformat}
> Caused by: java.lang.IllegalStateException: PBOX00075: The property AuthorizationManager is null
> at org.jboss.security.plugins.javaee.EJBAuthorizationHelper.authorize(EJBAuthorizationHelper.java:298)
> at org.jboss.as.security.service.SimpleSecurityManager.authorize(SimpleSecurityManager.java:267)
> ... 121 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list