Author: jim.ma
Date: 2015-06-02 02:19:33 -0400 (Tue, 02 Jun 2015)
New Revision: 19771
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/noIntegration/embedded/WEB-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsrm-store/WEB-INF/permissions.xml
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/noIntegration/EmbeddedCXFTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/udp/UDPEndpointAPITestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/WSRMStoreFeatureTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/SignEncryptTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/endpoint/WEB-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/udp/META-INF/permissions.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/trust/META-INF/permissions.xml
Log:
Add permissions.xml to fix bunch of permission failures
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/noIntegration/EmbeddedCXFTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/noIntegration/EmbeddedCXFTestCase.java 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/noIntegration/EmbeddedCXFTestCase.java 2015-06-02
06:19:33 UTC (rev 19771)
@@ -85,7 +85,8 @@
.addAsLibrary(new File(embeddedCXFDir,
"cxf-rt-frontend-jaxws-2.6.6.jar"))
.addAsLibrary(new File(embeddedCXFDir,
"cxf-rt-frontend-simple-2.6.6.jar"))
.addAsLibrary(new File(embeddedCXFDir,
"cxf-rt-transports-http-2.6.6.jar"))
- .addAsLibrary(new File(embeddedCXFDir,
"cxf-rt-ws-policy-2.6.6.jar"));
+ .addAsLibrary(new File(embeddedCXFDir, "cxf-rt-ws-policy-2.6.6.jar"))
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/noIntegration/embedded/WEB-INF/permissions.xml"),
"permissions.xml");
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/udp/UDPEndpointAPITestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/udp/UDPEndpointAPITestCase.java 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/udp/UDPEndpointAPITestCase.java 2015-06-02
06:19:33 UTC (rev 19771)
@@ -70,6 +70,7 @@
.addClass(org.jboss.test.ws.jaxws.cxf.udp.TestServlet.class)
.addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/udp/META-INF/permissions.xml"), "permissions.xml")
.addAsResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/cxf/udp/META-INF/wsdl/HelloWorldService.wsdl"),
"META-INF/wsdl/HelloWorldService.wsdl");
+ JBossWSTestHelper.writeToFile(archive);
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/WSRMStoreFeatureTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/WSRMStoreFeatureTestCase.java 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/WSRMStoreFeatureTestCase.java 2015-06-02
06:19:33 UTC (rev 19771)
@@ -61,7 +61,8 @@
.addClass(org.jboss.test.ws.jaxws.samples.wsrm.store.Endpoint.class).addClass(org.jboss.test.ws.jaxws.samples.wsrm.store.EndpointImpl.class)
.addClass(org.jboss.test.ws.jaxws.samples.wsrm.store.RMStoreFeature.class)
.addClass(org.jboss.test.ws.jaxws.samples.wsrm.store.RMStoreCheckInterceptor.class)
- .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsrm-store/WEB-INF/web.xml"));
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsrm-store/WEB-INF/web.xml"))
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsrm-store/WEB-INF/permissions.xml"),
"permissions.xml");
JBossWSTestHelper.writeToFile(archive);
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/SignEncryptTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/SignEncryptTestCase.java 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/SignEncryptTestCase.java 2015-06-02
06:19:33 UTC (rev 19771)
@@ -86,7 +86,8 @@
.addClass(org.jboss.wsf.test.TestServlet.class)
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/alice.properties"),
"classes/META-INF/alice.properties")
.addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/alice.jks"),
"classes/META-INF/alice.jks")
- .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/jaxws-client-config.xml"),
"classes/META-INF/jaxws-client-config.xml");
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/jaxws-client-config.xml"),
"classes/META-INF/jaxws-client-config.xml")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() +
"/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/permissions.xml"),
"permissions.xml");
return archive;
}
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/endpoint/WEB-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/endpoint/WEB-INF/permissions.xml 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/endpoint/WEB-INF/permissions.xml 2015-06-02
06:19:33 UTC (rev 19771)
@@ -37,11 +37,6 @@
</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>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/noIntegration/embedded/WEB-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/noIntegration/embedded/WEB-INF/permissions.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/noIntegration/embedded/WEB-INF/permissions.xml 2015-06-02
06:19:33 UTC (rev 19771)
@@ -0,0 +1,57 @@
+<?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>getClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.reflect.ReflectPermission</class-name>
+ <name>suppressAccessChecks</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
+ <name>setContextClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>org.apache.cxf.io.CachedOutputStream.MaxSize</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>javax.xml.ws.WebServicePermission</class-name>
+ <name>publishEndpoint</name>
+ </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,write,delete</actions>
+ </permission>
+</permissions>
Property changes on:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/noIntegration/embedded/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/cxf-tests/src/test/resources/jaxws/cxf/udp/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/udp/META-INF/permissions.xml 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/udp/META-INF/permissions.xml 2015-06-02
06:19:33 UTC (rev 19771)
@@ -5,8 +5,9 @@
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/permissions_7.xsd"
version="7">
<permission>
- <class-name>javax.xml.ws.WebServicePermission</class-name>
- <name>publishEndpoint</name>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>jboss.bind.address</name>
+ <actions>read</actions>
</permission>
<permission>
<class-name>java.lang.RuntimePermission</class-name>
@@ -14,6 +15,14 @@
</permission>
<permission>
<class-name>java.lang.RuntimePermission</class-name>
+ <name>org.jboss.ws.LOOKUP_SERVER_INTEGRATION_SERVER_CONFIG</name>
+ </permission>
+ <permission>
+ <class-name>javax.xml.ws.WebServicePermission</class-name>
+ <name>publishEndpoint</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
<permission>
@@ -32,14 +41,9 @@
</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,listen</actions>
+ <name>localhost</name>
+ <actions>connect,resolve,listen,accept</actions>
</permission>
<permission>
<class-name>java.io.FilePermission</class-name>
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsrm-store/WEB-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsrm-store/WEB-INF/permissions.xml
(rev 0)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsrm-store/WEB-INF/permissions.xml 2015-06-02
06:19:33 UTC (rev 19771)
@@ -0,0 +1,47 @@
+<?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>getClassLoader</name>
+ </permission>
+ <permission>
+ <class-name>java.util.PropertyPermission</class-name>
+ <name>user.dir</name>
+ <actions>read</actions>
+ </permission>
+ <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>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/cxf-tests/src/test/resources/jaxws/samples/wsrm-store/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/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/trust/META-INF/permissions.xml
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/trust/META-INF/permissions.xml 2015-06-02
03:59:49 UTC (rev 19770)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/trust/META-INF/permissions.xml 2015-06-02
06:19:33 UTC (rev 19771)
@@ -6,6 +6,10 @@
version="7">
<permission>
<class-name>java.lang.RuntimePermission</class-name>
+ <name>accessDeclaredMembers</name>
+ </permission>
+ <permission>
+ <class-name>java.lang.RuntimePermission</class-name>
<name>getClassLoader</name>
</permission>
<permission>