Author: jim.ma
Date: 2015-06-15 01:48:28 -0400 (Mon, 15 Jun 2015)
New Revision: 19789
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/addressing/WEB-INF/permissions.xml
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/eardeployment/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/exception/META-INF/permissions.xml
Log:
Fix permssion failures
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java 2015-06-12
09:37:37 UTC (rev 19788)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java 2015-06-15
05:48:28 UTC (rev 19789)
@@ -61,6 +61,7 @@
.addClass(org.jboss.test.ws.jaxws.samples.addressing.StatefulEndpoint.class)
.addClass(org.jboss.test.ws.jaxws.samples.addressing.StatefulEndpointImpl.class)
.addAsResource("org/jboss/test/ws/jaxws/samples/addressing/jaxws-handlers.xml")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/addressing/WEB-INF/permissions.xml"),
"permissions.xml")
.setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/addressing/WEB-INF/web.xml"));
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2015-06-12
09:37:37 UTC (rev 19788)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2015-06-15
05:48:28 UTC (rev 19789)
@@ -63,6 +63,7 @@
.setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ "Dependencies: org.jboss.ws.common\n"))
.addClass(org.jboss.test.ws.jaxws.samples.context.EndpointEJB.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/context/META-INF/permissions.xml"),
"permissions.xml")
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/context/META-INF/jboss.xml"), "jboss.xml");
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java 2015-06-12
09:37:37 UTC (rev 19788)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java 2015-06-15
05:48:28 UTC (rev 19789)
@@ -48,6 +48,7 @@
.addClass(org.jboss.test.helper.TestServlet.class)
.addClass(org.jboss.test.ws.jaxws.samples.exception.ExceptionHelper.class)
.addClass(org.jboss.test.ws.jaxws.samples.exception.SOAP12ExceptionHelper.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/handlerchain/WEB-INF/permissions.xml"),
"permissions.xml")
.addPackage("org.jboss.test.ws.jaxws.samples.exception.client");
return archive;
}
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/addressing/WEB-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/addressing/WEB-INF/permissions.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/addressing/WEB-INF/permissions.xml 2015-06-15
05:48:28 UTC (rev 19789)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<permissions
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/permissions_7.xsd"
+ version="7">
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>getBootModuleLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>getClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>createClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ <actions>resolveUri</actions>
+ </permission>
+
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>*</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
+</permissions>
Property changes on:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/addressing/WEB-INF/permissions.xml
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/eardeployment/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/eardeployment/META-INF/permissions.xml 2015-06-12
09:37:37 UTC (rev 19788)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/eardeployment/META-INF/permissions.xml 2015-06-15
05:48:28 UTC (rev 19789)
@@ -5,7 +5,41 @@
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/permissions_7.xsd"
version="7">
<permission>
+ <class-name>java.security.AllPermission</class-name>
+ </permission>
+ <!--Permission("org.jboss.as.server.security.ServerPermission"
"getCurrentServiceContainer") is required-->
+
+ <!--permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
<class-name>java.lang.RuntimePermission</class-name>
- <name>org.jboss.as.server.LOOKUP_CURRENT_SERVICE_CONTAINER</name>
+ <name>getClassLoader</name>
</permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>createClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ <actions>resolveUri</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>*</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission-->
</permissions>
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/exception/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/exception/META-INF/permissions.xml 2015-06-12
09:37:37 UTC (rev 19788)
+++
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/resources/jaxws/samples/exception/META-INF/permissions.xml 2015-06-15
05:48:28 UTC (rev 19789)
@@ -5,7 +5,40 @@
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/permissions_7.xsd"
version="7">
<permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
<class-name>java.lang.RuntimePermission</class-name>
+ <name>setContextClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>createClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>org.apache.cxf.permission</name>
+ <actions>resolveUri</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.net.SocketPermission</class-name>
+ <name>*</name>
+ <actions>connect,resolve</actions>
+ </permission>
+ <permission>
+ <class-name>java.io.FilePermission</class-name>
+ <name><<ALL FILES>></name>
+ <actions>read</actions>
+ </permission>
</permissions>