You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xi...@apache.org on 2010/08/18 03:41:26 UTC

svn commit: r986547 [1/2] - in /geronimo/server/trunk/testsuite/security-testsuite: ./ test-security-annotation-ejb/ test-security-annotation-ejb/security-ejb-ear/ test-security-annotation-ejb/security-ejb-ear/src/ test-security-annotation-ejb/security...

Author: xiaming
Date: Wed Aug 18 01:41:24 2010
New Revision: 986547

URL: http://svn.apache.org/viewvc?rev=986547&view=rev
Log:
GERONIMO-5524 add test cases for security annotation used in EJB, provided by janel Zhang

Added:
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/user.jsp   (with props)
Modified:
    geronimo/server/trunk/testsuite/security-testsuite/pom.xml

Modified: geronimo/server/trunk/testsuite/security-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/pom.xml?rev=986547&r1=986546&r2=986547&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/pom.xml (original)
+++ geronimo/server/trunk/testsuite/security-testsuite/pom.xml Wed Aug 18 01:41:24 2010
@@ -66,6 +66,7 @@
 
     <modules>
         <module>test-security</module>
+        <module>test-security-annotation-ejb</module>
     </modules>
 
 </project>

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>security-testsuite</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>test-security-annotation-ejb</artifactId>
+    <packaging>pom</packaging>
+
+    <name>Geronimo TestSuite :: Security Testsuite :: Test Security Annotation EJB</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_3.1_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-annotation_1.1_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>   
+    </dependencies>
+
+    <modules>
+        <module>security-ejb-ejb</module>
+        <module>security-ejb-war</module>
+        <module>security-ejb-ear</module>
+    </modules>
+
+</project>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>test-security-annotation-ejb</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>security-ejb-ear</artifactId>
+    <name>Geronimo TestSuite :: Security Testsuite :: Test Security Annotation EJB :: Security EJB EAR</name>
+    <packaging>ear</packaging>
+
+    <description>
+        Geronimo Security Annotation EJB Tests EJB EAR
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>security-ejb-war</artifactId>
+            <version>${project.version}</version>
+            <type>war</type>
+            <scope>provided</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>security-ejb-ejb</artifactId>
+            <version>${project.version}</version>
+            <type>ejb</type>
+            <scope>provided</scope>
+        </dependency>    
+    </dependencies>
+     <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>Geronimo EAR forSecurity Annotation EJB Tests</displayName>
+                    <description>Geronimo EAR for Security Annotation EJB Tests</description>
+                    <version>5</version>
+                    <modules>
+                      <ejbModule>
+                            <groupId>org.apache.geronimo.testsuite</groupId>
+                            <artifactId>security-ejb-ejb</artifactId>
+                            <bundleFileName>security-ejb-ejb-${project.version}.jar</bundleFileName>
+                        </ejbModule>
+
+                        <webModule>
+                            <groupId>org.apache.geronimo.testsuite</groupId>
+                            <artifactId>security-ejb-war</artifactId>
+                            <contextRoot>/security-ejb</contextRoot>
+                            <bundleFileName>security-ejb-war-${project.version}.war</bundleFileName>
+                        </webModule>
+                    </modules>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>testResources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>it</id>
+            <activation>
+                <property>
+                    <name>it</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+			<groupId>org.codehaus.mojo</groupId>
+			<artifactId>selenium-maven-plugin</artifactId>
+		    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.geronimo.buildsupport</groupId>
+                        <artifactId>geronimo-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>deploy-ears</id>
+                                <phase>pre-integration-test</phase>
+                                <goals>
+                                    <goal>deploy-module</goal>
+                                </goals>
+                                <configuration>
+                                    <moduleArchive>${project.build.directory}/${project.artifactId}-${project.version}.ear</moduleArchive>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>undeploy-ear-as-moduleId</id>
+                                <phase>post-integration-test</phase>
+                                <goals>
+                                    <goal>undeploy-module</goal>
+                                </goals>
+                                <configuration>
+                                    <moduleId>${project.groupId}/${project.artifactId}/${project.version}/ear</moduleId>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-failsafe-plugin</artifactId>
+						<configuration>
+							<suiteXmlFiles>
+								<suiteXmlFile>${project.build.testOutputDirectory}/testng.xml</suiteXmlFile>
+							</suiteXmlFiles>
+							<systemPropertyVariables>
+								<appContext>security-ejb</appContext>
+							</systemPropertyVariables>
+						</configuration>
+				     </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>${version}</version>
+            <type>ear</type>
+        </moduleId>
+    </environment>
+</application>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/main/filtered-resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java Wed Aug 18 01:41:24 2010
@@ -0,0 +1,82 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.testsuite.security.ejb;
+
+import org.testng.annotations.Test;
+import org.apache.geronimo.testsupport.SeleniumTestSupport;
+public class SecurityEJBTest extends SeleniumTestSupport {
+
+    private String baseURL = "http://localhost:8080/";
+          
+    @Test
+    public void testEJBSecurityAnnonymous() throws Exception {
+    	 String appContextStr = System.getProperty("appContext");
+    	 selenium.open(baseURL+appContextStr);
+		 selenium.click("link=Annonymous");
+		 selenium.waitForPageToLoad("30000");
+		 selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+		 selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
+		 selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
+		 selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+		 selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
+		 selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
+		 selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
+		 selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+		 selenium.click("link=Logout");
+    
+    }
+
+    @Test
+    public void testEJBSecurityAdmin() throws Exception {
+    	 String appContextStr = System.getProperty("appContext");
+    	 selenium.open(baseURL+appContextStr);
+		selenium.click("link=Admin");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("j_username", "george");
+		selenium.type("j_password", "bone");
+		selenium.click("//input[@value='Login']");
+		selenium.waitForPageToLoad("30000");
+		selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+		selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:false");
+		selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:true");
+		selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+		selenium.isTextPresent("5. SecurityRunAsBean.permitAllMethod:true::SecurityBean.permitAllMethod:true");
+		selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:false");
+		selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:true::SecurityBean.rolesAllowedAdminMethod:false");
+		selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+		selenium.click("link=Logout");
+    }
+    @Test
+    public void testEJBSecurityUser() throws Exception {
+    	String appContextStr = System.getProperty("appContext");
+    	selenium.open(baseURL+appContextStr);
+		selenium.click("link=User");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("j_username", "metro");
+		selenium.type("j_password", "mouse");
+		selenium.click("//input[@value='Login']");
+		selenium.waitForPageToLoad("30000");
+		selenium.isTextPresent("1. SecurityBean.permitAllMethod:true");
+		selenium.isTextPresent("2. SecurityBean.rolesAllowedUserMethod:true");
+		selenium.isTextPresent("3. SecurityBean.rolesAllowedAdminMethod:false");
+		selenium.isTextPresent("4. SecurityBean.denyAllMethod:false");
+		selenium.isTextPresent("6. SecurityRunAsBean.rolesAllowedUserMethod:true::SecurityBean.rolesAllowedUserMethod:true");
+		selenium.isTextPresent("7. SecurityRunAsBean.rolesAllowedAdminMethod:false");
+		selenium.isTextPresent("8. SecurityRunAsBean.denyAllMethod:false");
+		selenium.click("link=Logout");
+    }
+}

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/java/org/apache/geronimo/testsuite/security/ejb/SecurityEJBTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+
+<suite name="Suite1" verbose="5">
+    <test name="security-ejb-testsuite.security">
+        <packages>
+            <package name="org.apache.geronimo.testsuite.security.ejb"/>
+        </packages>
+    </test>
+</suite>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ear/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>test-security-annotation-ejb</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+    <artifactId>security-ejb-ejb</artifactId>
+    <name>Geronimo TestSuite :: Security Testsuite :: Test Security Annotation EJB :: Security EJB EJB</name>
+    <description>
+        Geronimo Security Annotation Test EJB
+    </description>
+</project>
+

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java Wed Aug 18 01:41:24 2010
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.ejb;
+import javax.ejb.Stateless;
+import javax.annotation.security.DeclareRoles;
+import javax.annotation.security.DenyAll;
+import javax.annotation.security.PermitAll;
+import javax.annotation.security.RolesAllowed;
+@Stateless
+@DeclareRoles({"user","admin"})
+public class SecurityBean implements SecurityRemote{
+	@PermitAll
+	public String permitAllMethod() {
+	    return "SecurityBean.permitAllMethod:true";
+	}
+	@RolesAllowed({"user"})
+	public String rolesAllowedUserMethod() {
+		return "SecurityBean.rolesAllowedUserMethod:true";
+	}
+	@RolesAllowed({"admin"})
+	public String rolesAllowedAdminMethod() {
+		return "SecurityBean.rolesAllowedAdminMethod:true";
+	}
+    @DenyAll
+	public String denyAllMethod() {
+    	return "SecurityBean.denyAllMethod:true";
+	}
+}

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java Wed Aug 18 01:41:24 2010
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.ejb;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface SecurityRemote {
+    public String permitAllMethod();
+    public String rolesAllowedUserMethod();
+    public String rolesAllowedAdminMethod();
+    public String denyAllMethod();
+}

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java Wed Aug 18 01:41:24 2010
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.ejb;
+
+import javax.ejb.EJB;
+import javax.ejb.Stateless;
+import javax.annotation.security.DeclareRoles;
+import javax.annotation.security.DenyAll;
+import javax.annotation.security.PermitAll;
+import javax.annotation.security.RolesAllowed;
+import javax.annotation.security.RunAs;
+@Stateless
+@DeclareRoles({"user","admin"})
+@RunAs("user")
+public class SecurityRunAsBean implements SecurityRunAsRemote{
+    @EJB
+    private SecurityRemote securityBean;
+	@PermitAll
+	public String permitAllMethod() {
+		String temp;
+		try{
+			temp=securityBean.permitAllMethod();
+		}catch(Throwable t){
+			temp="SecurityBean.permitAllMethod:false";
+		}
+	    return "SecurityRunAsBean.permitAllMethod:true"+"::"+temp;
+	}
+	@RolesAllowed({"user"})
+	public String rolesAllowedUserMethod() {
+		String temp;
+		try{
+			temp=securityBean.rolesAllowedUserMethod();
+		}catch(Throwable t){
+			temp="SecurityBean.rolesAllowedUserMethod:false";
+		}
+	    return "SecurityRunAsBean.rolesAllowedUserMethod:true"+"::"+temp;
+	}
+	@RolesAllowed({"admin"})
+	public String rolesAllowedAdminMethod() {
+		String temp;
+		try{
+			temp=securityBean.rolesAllowedAdminMethod();
+		}catch(Throwable t){
+			temp="SecurityBean.rolesAllowedAdminMethod:false";
+		}
+	    return "SecurityRunAsBean.rolesAllowedAdminMethod:true"+"::"+temp;
+	}
+    @DenyAll
+	public String denyAllMethod() {
+    	String temp;
+		try{
+			temp=securityBean.denyAllMethod();
+		}catch(Throwable t){
+			temp="SecurityBean.rolesAllowedAdminMethod:false";
+		}
+	    return "SecurityRunAsBean.denyAllMethod:false"+"::"+temp;
+	}
+}

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java Wed Aug 18 01:41:24 2010
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.ejb;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface SecurityRunAsRemote {
+    public String permitAllMethod();
+    public String rolesAllowedUserMethod();
+    public String rolesAllowedAdminMethod();
+    public String denyAllMethod();
+}

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/java/org/apache/geronimo/ejb/SecurityRunAsRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<ejb:openejb-jar xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
+     <dep:gbean name="demo-properties-realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm" xsi:type="dep:gbeanType" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <dep:attribute name="realmName">demo-properties-realm</dep:attribute>
+        <dep:reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </dep:reference>
+        <dep:xml-reference name="LoginModuleConfiguration">
+            <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.2">
+                <log:login-module control-flag="REQUIRED" wrap-principals="false">
+                    <log:login-domain-name>demo-properties-realm</log:login-domain-name>
+                    <log:login-module-class>org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule</log:login-module-class>
+                    <log:option name="usersURI">var/security/demo_users.properties</log:option>
+                    <log:option name="groupsURI">var/security/demo_groups.properties</log:option>
+                </log:login-module>
+            </log:login-config>
+        </dep:xml-reference>
+    </dep:gbean>
+    <dep:gbean name="SampleCredentialStore" class="org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl"  xsi:type="dep:gbeanType" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <dep:xml-attribute name="credentialStore">
+            <credential-store xmlns="http://geronimo.apache.org/xml/ns/credentialstore-1.0">
+                <realm name="demo-properties-realm">
+                    <subject>
+                        <id>user-subject</id>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.NameCallbackHandler</type>
+                            <value>metro</value>
+                        </credential>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.PasswordCallbackHandler</type>
+                            <value>mouse</value>
+                        </credential>
+                    </subject>
+                    <subject>
+                        <id>admin-subject</id>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.NameCallbackHandler</type>
+                            <value>george</value>
+                        </credential>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.PasswordCallbackHandler</type>
+                            <value>bone</value>
+                        </credential>
+                    </subject>
+                </realm>
+            </credential-store>
+        </dep:xml-attribute>
+    </dep:gbean>    
+</ejb:openejb-jar>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>test-security-annotation-ejb</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>security-ejb-war</artifactId>
+    <packaging>war</packaging>
+    <name>Geronimo TestSuite :: Security Testsuite :: Test Security Annotation EJB :: Security EJB War</name>
+
+    <description>
+        Geronimo Security Annotation Test War
+    </description>
+      <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>security-ejb-ejb</artifactId>
+            <version>${version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies> 
+</project>
+

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
+   <context-root>/security-ejb</context-root>
+    <security-realm-name>demo-properties-realm</security-realm-name>
+    <app:security xsi:type="sec:securityType" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <sec:credential-store-ref>
+            <name xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">SampleCredentialStore</name>
+        </sec:credential-store-ref>
+        <sec:role-mappings>
+            <sec:role role-name="admin">
+                <sec:principal name="george" designated-run-as="true" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
+            </sec:role>
+            <sec:role role-name="user">
+                <sec:run-as-subject>
+                <sec:realm>demo-properties-realm</sec:realm>
+                <sec:id>user-subject </sec:id>
+                </sec:run-as-subject>
+                
+                 <sec:principal name="metro" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
+            </sec:role>
+        </sec:role-mappings>
+    </app:security>
+</web-app>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml Wed Aug 18 01:41:24 2010
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<web-app id="SimpleSecurityWebApp" version="2.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/web-app_2_4.xsd">
+	<welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
+    <login-config>
+        <auth-method>FORM</auth-method>
+        <realm-name></realm-name>
+        <form-login-config>
+            <form-login-page>/login/login.jsp</form-login-page>
+            <form-error-page>/login/loginerror.jsp</form-error-page>
+        </form-login-config>
+    </login-config>
+    <security-role>
+        <role-name>user</role-name>
+    </security-role>
+    <security-role>
+        <role-name>admin</role-name>
+    </security-role>
+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>user</web-resource-name>
+            <url-pattern>/user/*</url-pattern>
+            <http-method>GET</http-method>
+            <http-method>POST</http-method>
+        </web-resource-collection>
+        <auth-constraint>
+        <role-name>user</role-name>
+        </auth-constraint>
+    </security-constraint>
+     <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>admin</web-resource-name>
+            <url-pattern>/admin/*</url-pattern>
+            <http-method>GET</http-method>
+            <http-method>POST</http-method>
+        </web-resource-collection>
+        <auth-constraint>
+          <role-name>admin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <ejb-ref>
+       <ejb-ref-name>ejb/securitybean</ejb-ref-name>
+       <ejb-ref-type>Session</ejb-ref-type>
+       <remote>org.apache.geronimo.ejb.SecurityRemote</remote>
+    </ejb-ref>
+     <ejb-ref>
+       <ejb-ref-name>ejb/securitybeanRunAs</ejb-ref-name>
+       <ejb-ref-type>Session</ejb-ref-type>
+       <remote>org.apache.geronimo.ejb.SecurityRunAsRemote</remote>
+    </ejb-ref>
+</web-app>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,122 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ page import="org.apache.geronimo.ejb.*,javax.naming.*" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB Test</title>
+<% SecurityRemote securityRemote=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemote =(SecurityRemote)ic.lookup("java:comp/env/ejb/securitybean");
+   }catch(Exception e){
+	   
+   }
+   
+   SecurityRunAsRemote securityRemoteRunAs=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemoteRunAs =(SecurityRunAsRemote)ic.lookup("java:comp/env/ejb/securitybeanRunAs");
+   }catch(Exception e){
+	   
+   }
+%>
+</head>
+<body>
+   <% String temp=null;%>
+   <hr/>
+   1.
+   <% 
+       try{
+    	   temp=securityRemote.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   2.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   3.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   4.
+    <% 
+       try{
+    	   temp=securityRemote.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.denyAllMethod:false";;
+       }
+   %>
+   <%=temp%><hr>
+   
+   <h4>Run As</h4>
+    <hr/>
+    5.
+   <% 
+       try{
+    	   temp=securityRemoteRunAs.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   6.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   7.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   8.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.denyAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   <br><a href="<%=request.getContextPath()%>/logout.jsp">Logout</a>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,122 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ page import="org.apache.geronimo.ejb.*,javax.naming.*" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB Test</title>
+<% SecurityRemote securityRemote=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemote =(SecurityRemote)ic.lookup("java:comp/env/ejb/securitybean");
+   }catch(Exception e){
+	   
+   }
+   
+   SecurityRunAsRemote securityRemoteRunAs=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemoteRunAs =(SecurityRunAsRemote)ic.lookup("java:comp/env/ejb/securitybeanRunAs");
+   }catch(Exception e){
+	   
+   }
+%>
+</head>
+<body>
+   <% String temp=null;%>
+   <hr/>
+   1.
+   <% 
+       try{
+    	   temp=securityRemote.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   2.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   3.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   4.
+    <% 
+       try{
+    	   temp=securityRemote.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.denyAllMethod:false";;
+       }
+   %>
+   <%=temp%><hr>
+   
+   <h4>Run As</h4>
+    <hr/>
+    5.
+   <% 
+       try{
+    	   temp=securityRemoteRunAs.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   6.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   7.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   8.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.denyAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   <br><a href="<%=request.getContextPath()%>/logout.jsp">Logout</a>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/annonymous.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,34 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ page import="org.apache.geronimo.ejb.SecurityRemote,javax.naming.*" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB Test</title>
+</head>
+<body>
+  <a href="<%=request.getContextPath()%>/annonymous.jsp">Annonymous</a>
+  <br>
+   <a href="<%=request.getContextPath()%>/admin/admin.jsp">Admin</a>
+  <br>
+   <a href="<%=request.getContextPath()%>/user/user.jsp">User</a>
+  <br>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,33 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB JSP</title>
+</head>
+<body>
+   <h1>Security EJB JSP</h1>
+   <form action="j_security_check" method="post">
+       Username:<input type="text" name="j_username"><br>
+       Password:<input type="text" name="j_password"><br>
+       <input type="submit" value="Login">
+   </form>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/login.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,28 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB Test</title>
+</head>
+<body>
+   <h1>Login Error.</h1>
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/login/loginerror.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,23 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<%
+    request.getSession().invalidate();
+	response.sendRedirect(request.getContextPath());
+%>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/logout.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/user.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/user.jsp?rev=986547&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/user.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-annotation-ejb/security-ejb-war/src/main/webapp/user/user.jsp Wed Aug 18 01:41:24 2010
@@ -0,0 +1,122 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ page import="org.apache.geronimo.ejb.*,javax.naming.*" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Security EJB Test</title>
+<% SecurityRemote securityRemote=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemote =(SecurityRemote)ic.lookup("java:comp/env/ejb/securitybean");
+   }catch(Exception e){
+	   
+   }
+   
+   SecurityRunAsRemote securityRemoteRunAs=null;
+   try{
+	    InitialContext ic = new InitialContext();
+	    securityRemoteRunAs =(SecurityRunAsRemote)ic.lookup("java:comp/env/ejb/securitybeanRunAs");
+   }catch(Exception e){
+	   
+   }
+%>
+</head>
+<body>
+   <% String temp=null;%>
+   <hr/>
+   1.
+   <% 
+       try{
+    	   temp=securityRemote.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   2.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   3.
+    <% 
+       try{
+    	   temp=securityRemote.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   4.
+    <% 
+       try{
+    	   temp=securityRemote.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityBean.denyAllMethod:false";;
+       }
+   %>
+   <%=temp%><hr>
+   
+   <h4>Run As</h4>
+    <hr/>
+    5.
+   <% 
+       try{
+    	   temp=securityRemoteRunAs.permitAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.permitAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   6.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedUserMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedUserMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   7.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.rolesAllowedAdminMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.rolesAllowedAdminMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   8.
+    <% 
+       try{
+    	   temp=securityRemoteRunAs.denyAllMethod();
+       }catch(Throwable t){
+    	   temp="SecurityRunAsBean.denyAllMethod:false";
+       }
+   %>
+   <%=temp%><hr>
+   <br><a href="<%=request.getContextPath()%>/logout.jsp">Logout</a>
+</body>
+</html>
\ No newline at end of file