use of java.util.PropertyPermission in project wildfly by wildfly.
the class ResourceAdapterNameTestCase method getDeployment.
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "resource-adapter-name-mdb-test.jar");
ejbJar.addClasses(OverriddenResourceAdapterNameMDB.class, JMSMessagingUtil.class, ResourceAdapterNameTestCase.class, JmsQueueSetup.class, TimeoutUtil.class);
ejbJar.addPackage(JMSOperations.class.getPackage());
ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
ejbJar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(TimeoutUtil.FACTOR_SYS_PROP, "read")), "permissions.xml");
return ejbJar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class MDBWhichDependsOnTestCase method getTestArchive.
@Deployment(name = Constants.DEPLOYMENT_NAME_COUNTER, order = 0, managed = true, testable = true)
public static Archive<?> getTestArchive() throws Exception {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, Constants.DEPLOYMENT_JAR_NAME_COUNTER);
jar.addClass(CallCounterSingleton.class);
jar.addClass(MDBWhichDependsOnTestCase.class);
jar.addClass(Constants.class);
jar.addClasses(JMSMessagingUtil.class, TimeoutUtil.class);
jar.addClasses(JmsQueueServerSetupTask.class, SetupModuleServerSetupTask.class);
jar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr, " + Constants.TEST_MODULE_NAME_FULL + "\n"), "MANIFEST.MF");
jar.addAsManifestResource(createPermissionsXmlAsset(new PropertyPermission(TimeoutUtil.FACTOR_SYS_PROP, "read")), "permissions.xml");
return jar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class JSFDeploymentProcessorTestCase method createDeployment1.
/**
* Creates a war with all the libraries needed in the war/lib folder, this sample does not call the
* ejb as it is not necessary to test if the bundled Jakarta Server Faces is loaded
* @return
*/
@Deployment(name = WEB_BUNDLED_JSF, testable = false, managed = false)
public static EnterpriseArchive createDeployment1() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, WEB_BUNDLED_JSF + ".ear");
ear.addAsManifestResource(JSFDeploymentProcessorTestCase.class.getPackage(), WEB_BUNDLED_JSF + "-application.xml", "application.xml");
ear.addAsManifestResource(createPermissionsXmlAsset(new RuntimePermission("getClassLoader"), new RuntimePermission("accessDeclaredMembers"), new PropertyPermission("*", "read"), new FilePermission("/-", "read")), "permissions.xml");
JavaArchive ejb = ShrinkWrap.create(JavaArchive.class, "bundled-jsf-ejb.jar");
ejb.addClasses(JSFMyFacesEJB.class);
// add the ejb
ear.addAsModule(ejb);
final WebArchive war = ShrinkWrap.create(WebArchive.class, WEB_BUNDLED_JSF + "-webapp.war");
war.addClasses(JSFMyFaces.class);
war.addAsWebResource(JSFVersion.class.getPackage(), "jsfmyfacesversion.xhtml", "jsfmyfacesversion.xhtml");
war.addAsWebInfResource(JSFVersion.class.getPackage(), WEB_BUNDLED_JSF_WEB_XML, "web.xml");
// add Jakarta Server Faces as webapp lib
war.addAsLibrary("myfaces/commons-beanutils-1.9.3.jar", "commons-beanutils-1.9.3.jar");
war.addAsLibrary("myfaces/commons-collections-3.2.2.jar", "commons-collections-3.2.2.jar");
war.addAsLibrary("myfaces/commons-digester-1.8.jar", "commons-digester-1.8.jar");
war.addAsLibrary("myfaces/myfaces-api-2.0.24.jar", "myfaces-api-2.0.24.jar");
war.addAsLibrary("myfaces/myfaces-impl-2.0.24.jar", "myfaces-impl-2.0.24.jar");
// add the .war
ear.addAsModule(war);
return ear;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class RemoteEJB2ClientStatefulBeanFailoverDDTestCase method createDeployment.
private static Archive<?> createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(CounterRemote.class.getPackage());
jar.addClass(CounterBeanDD.class);
jar.addClass(NodeNameGetter.class);
jar.addAsManifestResource(RemoteEJB2ClientStatefulBeanFailoverDDTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
jar.addAsManifestResource(new StringAsset("Dependencies: deployment." + MODULE_NAME_SINGLE + ".jar\n"), "MANIFEST.MF");
jar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("jboss.node.name", "read")), "META-INF/jboss-permissions.xml");
return jar;
}
use of java.util.PropertyPermission in project wildfly by wildfly.
the class RemoteStatelessFailoverTestCase method createDeployment.
private static Archive<?> createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(StatelessRemote.class.getPackage());
jar.addClass(StatelessBean.class);
jar.addClass(NodeNameGetter.class);
jar.addAsResource(createPermissionsXmlAsset(new PropertyPermission("jboss.node.name", "read")), "META-INF/jboss-permissions.xml");
return jar;
}
Aggregations