Create a file called jboss-app.xml and place it in the EAR's META-INF directory (with the application.xml).
Put this in it:
<jboss-app 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-app_6_0.xsd" version="6.0"> <security-domain>gfo</security-domain> </jboss-app>
(There doesn't seem to be an AS 7.x version of this)
Thank you, Stephen!
I will try it out on monday, hope it works
I tried adding jboss-app.xml but it did not help. The trace shows that it is still being ignored.
Furthermore, among the listed schemas shown in https://community.jboss.org/wiki/JBossDTDs I couldn't locate jboss-app_6_0.xsd. It seems to be using that of jboss 5.
Adding jboss-app.xml with the following content didn't help either:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD Java EE Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd" >
I also found your post https://community.jboss.org/message/648034. Does this mean that security domain definitions are not yet supported in jboss-app.xml (and jboss.xml)?
jboss-app_6_0.xsd exists in the AS7 source code.
However, my experiments described at @RolesAllowed, @DenyAll require presence of org.jboss.ejb3.annotation.SecurityDomain? also indicate that the security-domain specified in a deployment descriptor does not seem to work.
It's smelling more like a bug or its not yet implemented...
Could you please share the link of the issue with me if you posted it?
And congratulations for your promotion