Re: jce1.2 and Implementing Your Own Permission Lesson

Boris Galinsky (bgalinsky@nastel.com)
Tue, 06 Jul 1999 10:32:03 -0400

Date: Tue, 06 Jul 1999 10:32:03 -0400
From: Boris Galinsky <bgalinsky@nastel.com>
To: Scott Hommel <shommel@eng.sun.com>
Subject: Re: jce1.2 and Implementing Your Own Permission Lesson

Thanks!

Putting code in packages fixed the problem.

Now is the real question: what is the best approach to figure out this kind of
problems? I ran this example before, and this saved me from nervous breakdown
and jumping out of window. Slowly, by trial and error, I could trace the
problem back to the installation of JCE. Another route was to decompile
sun.security package and figure out debug flag values. I could not find any
references related to this problem on Sun site, including java developer
connection.

Boris Galinsky

Scott Hommel wrote:

> On Thu, 1 Jul 1999, Boris Galinsky wrote:
>
> > It seems that Lesson: Implementing Your Own Permission is not working if
> > jce is installed.
> >
> > If jce1_2-do.jar is installed in jre+AFw-lib+AFw-ext directory, HighScore fails
> > permission check in AccessController. Removing the jar file clears the
> > problem.
> >
> > I could not find any reference to this bug ( if it is a bug) in the bug
> > database.
> >
> > Boris Galinsky
>
> Hello,
>
> There was a slight change in the implementation of the Java2
> security model which does indeed affect that chapter. We have
> updated the content of the trail, and you should be able to
> see the results when we push the new content out to the website.
>
> The fix is to place each developer's code in a named
> package via the "package" statement.
>
> - Scott
>
> Scott A. Hommel
> Core API Writer
> Java Software, Sun Microsystems, Inc.
> 408-517-5628