You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2003/08/29 11:33:16 UTC

[FWD] [GUMP] Build Failure - bootstrap-ojb

This happpend during my Gump run last night, I'd expect the same to
show up this afternoon (my time), when Sam posts his results.

Stefan

Buildfile: build.xml

useDate:

splash:

set-archive-name:

set-archive-name-date:

detect-jdk:

check-jdk12proxy-classes:

check-jndi-classes:

use-jdk12:

use-jdk13:

use-jdk14:
     [echo] detected JDK 1.4

init:

clean:
   [delete] Deleting directory /javastuff/gump/db-ojb/target

jar:

splash:

set-archive-name:

set-archive-name-date:

detect-jdk:

check-jdk12proxy-classes:

check-jndi-classes:

use-jdk12:

use-jdk13:

use-jdk14:
     [echo] detected JDK 1.4

init:

prepare:
    [mkdir] Created dir: /javastuff/gump/db-ojb/target
    [mkdir] Created dir: /javastuff/gump/db-ojb/target/classes
    [mkdir] Created dir: /javastuff/gump/db-ojb/target/classestest
    [mkdir] Created dir: /javastuff/gump/db-ojb/target/classesjca
    [mkdir] Created dir: /javastuff/gump/db-ojb/dist
     [copy] Copying 608 files to /javastuff/gump/db-ojb/target/src
     [copy] Copying 253 files to /javastuff/gump/db-ojb/target/srctest
     [copy] Copying 10 files to /javastuff/gump/db-ojb/target/srcjca

preprocess:
     [echo] using switches: +JDK13, +JDBC30

BUILD FAILED
/javastuff/gump/db-ojb/build.xml:156: java.lang.SecurityException: Permission (java.util.PropertyPermission file.encoding read) was not granted.

Total time: 47 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [FWD] [GUMP] Build Failure - bootstrap-ojb

Posted by Antoine Levy-Lambert <an...@antbuild.com>.
I am going to revert the change I did yesterday to the Java task, which was
to set permissions with the permission class to enable to fail builds when
failonerror="true" and fork="false", then try to find a better solution to
implement the desired functionality.

Since there are no methods in SecurityManager to retrieve the current
granted/revoked permissions as collections to be able to clone them, it will
be along the lines of :
- adding a new constructor to the Permissions class with a boolean
delegateToOldSM,
- if delegateToOldSM="true" delegating to the old security manager when a
permission is not explicitly granted or revoked in the new security manager
with just the exception of the handling of exit.
- delegateToOldSM="false" would be the current behavior of the Permissions
class.

we would set the default permissions in the Java task for
failonerror="true", fork="false" using new Permissions(true)

Cheers,
Antoine
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <de...@ant.apache.org>
Sent: Friday, August 29, 2003 1:43 PM
Subject: Re: [FWD] [GUMP] Build Failure - bootstrap-ojb


> On Fri, 29 Aug 2003, Antoine Levy-Lambert <an...@antbuild.com>
> wrote:
>
> > and probably due to the fact that the permission to read the system
> > property "file.encoding" is not in the default hard coded set of
> > permissions in Permissions#init().
>
> I think we shouldn't even try to hard code the set of system
> properties a class may access.  Can't we simply iterate over the
> system properties and grant read for all of them?
>
> Do we really have to limit property access at all in the default
> permissons?  IMHO the permissions a non-forked <java> has should be
> identical to the permissions a forked one would have, minus calling
> System.exit.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [FWD] [GUMP] Build Failure - bootstrap-ojb

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 29 Aug 2003, Antoine Levy-Lambert <an...@antbuild.com>
wrote:

> and probably due to the fact that the permission to read the system
> property "file.encoding" is not in the default hard coded set of
> permissions in Permissions#init().

I think we shouldn't even try to hard code the set of system
properties a class may access.  Can't we simply iterate over the
system properties and grant read for all of them?

Do we really have to limit property access at all in the default
permissons?  IMHO the permissions a non-forked <java> has should be
identical to the permissions a forked one would have, minus calling
System.exit.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [FWD] [GUMP] Build Failure - bootstrap-ojb

Posted by Antoine Levy-Lambert <an...@antbuild.com>.
Yesterday afternoon, I changed the java task to set default permissions when
fork=false and failonerror=true.
This build failure happened due to this change and probably due to the fact
that the permission to read the system property "file.encoding" is not in
the default hard coded set of permissions in Permissions#init().
I am going to add this one, hoping that the build will be successful with
it.

Antoine
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <de...@ant.apache.org>
Sent: Friday, August 29, 2003 11:33 AM
Subject: [FWD] [GUMP] Build Failure - bootstrap-ojb


> This happpend during my Gump run last night, I'd expect the same to
> show up this afternoon (my time), when Sam posts his results.
>
> Stefan
>
> Buildfile: build.xml
>
> useDate:
>
> splash:
>
> set-archive-name:
>
> set-archive-name-date:
>
> detect-jdk:
>
> check-jdk12proxy-classes:
>
> check-jndi-classes:
>
> use-jdk12:
>
> use-jdk13:
>
> use-jdk14:
>      [echo] detected JDK 1.4
>
> init:
>
> clean:
>    [delete] Deleting directory /javastuff/gump/db-ojb/target
>
> jar:
>
> splash:
>
> set-archive-name:
>
> set-archive-name-date:
>
> detect-jdk:
>
> check-jdk12proxy-classes:
>
> check-jndi-classes:
>
> use-jdk12:
>
> use-jdk13:
>
> use-jdk14:
>      [echo] detected JDK 1.4
>
> init:
>
> prepare:
>     [mkdir] Created dir: /javastuff/gump/db-ojb/target
>     [mkdir] Created dir: /javastuff/gump/db-ojb/target/classes
>     [mkdir] Created dir: /javastuff/gump/db-ojb/target/classestest
>     [mkdir] Created dir: /javastuff/gump/db-ojb/target/classesjca
>     [mkdir] Created dir: /javastuff/gump/db-ojb/dist
>      [copy] Copying 608 files to /javastuff/gump/db-ojb/target/src
>      [copy] Copying 253 files to /javastuff/gump/db-ojb/target/srctest
>      [copy] Copying 10 files to /javastuff/gump/db-ojb/target/srcjca
>
> preprocess:
>      [echo] using switches: +JDK13, +JDBC30
>
> BUILD FAILED
> /javastuff/gump/db-ojb/build.xml:156: java.lang.SecurityException:
Permission (java.util.PropertyPermission file.encoding read) was not
granted.
>
> Total time: 47 seconds
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org