-
1. Re: Where to specify security-domain in .ear?
sfcoy Jan 20, 2012 8:10 AM (in response to zemunk)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)
-
2. Re: Where to specify security-domain in .ear?
zemunk Jan 20, 2012 9:26 AM (in response to sfcoy)Thank you, Stephen!
I will try it out on monday, hope it works
-
3. Re: Where to specify security-domain in .ear?
zemunk Jan 23, 2012 4:53 AM (in response to sfcoy)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" >
<jboss-app>
<security-domain>gfo</security-domain>
</jboss-app>
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)?
-
4. Re: Where to specify security-domain in .ear?
sfcoy Jan 23, 2012 6:30 AM (in response to zemunk)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...
-
5. Re: Where to specify security-domain in .ear?
zemunk Jan 23, 2012 7:04 AM (in response to sfcoy)Could you please share the link of the issue with me if you posted it?
Thank you!
And congratulations for your promotion