users@glassfish.java.net

Linked policy contexts have different roleToSubjectMaps

From: Ori Dagan <ori.dagan_at_gmail.com>
Date: Tue, 28 Jul 2009 15:37:16 +0200

Hi,

I'm using glassfish v3 preview b56 (the latest promoted build).
When I try to deploy an EAR with 2 WARs and 2 ejb JARs i'm getting this
exception:

Linked policy contexts have different roleToSubjectMaps
(Spleeker/fb-app_war)<->(Spleeker/service-ejb_jar)

application.xml:

<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="1.4" xmlns="
http://java.sun.com/xml/ns/j2ee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <display-name>spleeker</display-name>
    <module id="WebModule_1248543083290">
        <web>
            <web-uri>fb-app.war</web-uri>
            <context-root>fb-app</context-root>
        </web>
    </module>
    <module id="EjbModule_1248617085234">
        <ejb>service-ejb.jar</ejb>
    </module>
    <module id="WebModule_1248621105342">
        <web>
            <web-uri>service.war</web-uri>
            <context-root>/</context-root>
        </web>
    </module>
    <module id="EjbModule_1248697979590">
        <ejb>fb-ejb.jar</ejb>
    </module>
    <security-role>
        <description />
        <role-name>USERS</role-name>
    </security-role>
</application>


sun-application.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-application PUBLIC '-//Sun Microsystems, Inc.//DTD Application
Server 9.0 Java EE Application 5.0//EN' '
http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd'>
<sun-application>
    <security-role-mapping>
        <role-name>USERS</role-name>
        <group-name>USERS</group-name>
    </security-role-mapping>
</sun-application>

I don't have any sun-web.xml, ejb-jar.xml or sun-ejb-jar.xml

Please help.

Thanks,
Ori