0 Replies Latest reply on May 11, 2016 9:14 AM by Adrian Boangiu

    How to use vfs protocol in JBoss 7.1.1 AS security manager codebases?

    Adrian Boangiu Newbie

      Sorry to ask the question again but I have marked by mistake the previous question as probably solved.

       

      Hi,

      I have already asked a question here https://developer.jboss.org/message/955940#955940 about migrating the security policy file of an application deployed on JBoss7 (under Java Security Manager with Java 7). With no success.

      The standard JBoss 7.1.1 AS does not accept codebases using the virtual file system. Using a codebase like: "vfs:${app.home.dir}/deployments/somefile.war/-" will give the following errors (sorry for being in French):

       

      java.security.policy : erreur d'ajout d'entrée : (error adding entry)

              java.net.MalformedURLException: unknown protocol: vfs

       

      Reading the comments of Bartosz Baranowski and Anil Saldanha on the article “JBoss AS7: Security : Running under a Java Security Manager” (https://developer.jboss.org/wiki/JBossAS7SecurityRunningUnderAJavaSecurityManager) I think that the possible solutions would be:

      1. Either to “register” vfs as a protocol for URLs (perhaps this is what Bartosz Baranowski refers as “register some vfs stream handler when JVM starts”).
      2. Or to disable the use of vfs in JBoss.

      Can anyone tell me if these solutions can be achieved and how?

      Thank you very much,

      Adrian Boangiu