avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Faltinsky/Denic" <faltin...@denic.de>
Subject environment.xml <policy>....</policy>
Date Mon, 07 Jan 2002 15:48:29 GMT

Hi everybody,

a block of my sar-File would like to execute a file outside of phoenix.
Unfortunately I only get a "java.io.FilePermission"-Exception (see below).
The directory /temp/, File "FileName" and directory
${app.home}/SAR-INF/lib/ are really there! What could it be?

It works fine with an empty policy-tag, but I would like to avoid that.

Many thanks in advance.
Holger

***************************************
There was an uncaught exception:
---------------------------------------------------------
--- Message ---
Failed to create permission java.io.FilePermission.
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Failed to create
permission java.io.FilePermission.
        at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:183)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:417)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:411)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:399)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:389)
        at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:169)
        at
org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:95)
        at
org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:63)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.avalon.phoenix.launcher.Main.main(Main.java:54)

***************************************
<?xml version="1.0"?>

<server>
     <logs>
          <category name="" target="default" priority="DEBUG" />
          <log-target name="default" location="/logs/avalon.log" />
     </logs>

    <policy>
     <grant code-base="file:${app.home}${/}SAR-INF${/}lib${/}*">
          <permission class="java.security.AllPermission"
                target="${/}/temp${}/FileName
                action=read,write/>   <!-- add execute ?? -->
     </grant>
    </policy>

</server>
**************************************


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message