RE: [jade-develop] Jade-S: difficulties while running the example s


Subject: RE: [jade-develop] Jade-S: difficulties while running the example s
From: Vitaglione Giosue' (Giosue.Vitaglione@TILAB.COM)
Date: Tue Oct 15 2002 - 16:04:58 MET DST


Martin,
As I understand, only the policy with jar files
works with your system. (I don't know why)
On my PC both policies work fine.

However, I suggest all to use that one using the jar files:

//
// --- These are the basic Java permissions to allow JADE to start up---
//
grant codebase "file:../../../../lib/jade.jar" {
        permission java.security.AllPermission; };
grant codebase "file:../../../../lib/jadeTools.jar" {
        permission java.security.AllPermission; };
grant codebase "file:../../../../add-ons/security/lib/jadeS.jar" {
        permission java.security.AllPermission;
};

For a mistake the basic.policy with: "file://classes/-"
ended up into the distribution .zip file.
Everything should still work fine, but the
above policy (with jar files) is recommended.

Thanks for your note.

Cheers,
Giosuč

> -----Original Message-----
> From: Schneider Martin [mailto:Martin.Schneider@mchp.siemens.de]
> Sent: Tuesday, October 15, 2002 12:56 PM
> To: 'Vitaglione Giosue''
> Subject: RE: [jade-develop] Jade-S: difficulties while running the
> example s
>
>
> Thanks for your fast answer.
>
> I have got the basic.policy file.
> OS is Win NT4, Java is J2sdk1.4.1.
>
> In the mean time, I got the cont.bat to run, starting a
> container with agent
> da1.
> I simply added the following lines from myfirst.policy to
> basic.policy:
>
> //
> // --- These are the basic Java permissions to allow JADE to
> start up---
> // copied from myfirst.policy 021015 scm ???
> //
> grant codebase "file:../../../../lib/jade.jar" {
> permission java.security.AllPermission; };
> grant codebase "file:../../../../lib/jadeTools.jar" {
> permission java.security.AllPermission; };
> grant codebase "file:../../../../add-ons/security/lib/jadeS.jar" {
> permission java.security.AllPermission;
> };
>
> The previous content of basic.policy was:
> // Basic permission to allow JADE to start-up
>
> grant codebase "file://classes/-" {
> permission java.util.PropertyPermission
> "java.rmi.server.hostname",
> "write";
> permission java.util.PropertyPermission "jade.*",
> "read,write";
> permission java.security.SecurityPermission
> "createAccessControlContext";
> permission java.security.SecurityPermission "getPolicy";
> permission java.net.SocketPermission "*",
> "listen,connect,resolve";
> permission java.io.FilePermission "*", "read,write";
> permission java.lang.RuntimePermission "createClassLoader";
> permission java.awt.AWTPermission
> "showWindowWithoutWarningBanner";
> permission java.security.AllPermission;
> };
>
> Here I do not understand the codebase value.
>
> I have looked now into the basic.policy files of the other
> examples and
> have noticed, that there are two different files:
> 1. same as my basic.policy from myfirst (attached as basic.policy1)
> (in example myfirst, delegation and send)
> 2. containing only the above cited lines from myfirst.policy
> (in ssl/cont,
> attached as basic.policy2) (ok, naturally it's one level
> deeper, so one
> ../ more
> in the codebase paths compared to the lines above.)
>
> I'm a bit confused about this.
>
> (I have to attend some meetings now, so I can't answer
> directly to other
> questions
> for clarification.)
>
> Martin
>
> > -----Original Message-----
> > From: Vitaglione Giosue' [mailto:Giosue.Vitaglione@TILAB.COM]
> > Sent: Tuesday, October 15, 2002 11:58 AM
> > To: Schneider Martin; jade-develop
> > Subject: RE: [jade-develop] Jade-S: difficulties while running the
> > examples
> >
> >
> >
> > Hello Martin,
> >
> > it looks like you do not have the file "basic.policy" int
> > the directory runExamples\myfirst\.
> > Please check.
> >
> > Are you using the JADE jar files?
> > The policy files into the JADE-S examples work fine with
> JADE .jars,
> > not with classes.
> >
> > If doesn't work yet,
> > which OS and JVM version are you using?
> > Please give us more info.
> >
> > Cheers,
> > Giosue
> >
> >
> > > -----Original Message-----
> > > From: Schneider Martin [mailto:Martin.Schneider@mchp.siemens.de]
> > > Sent: Tuesday, October 15, 2002 10:42 AM
> > > To: 'jade-develop'
> > > Subject: [jade-develop] Jade-S: difficulties while running
> > > the examples
> > >
> > >
> > > Hello!
> > >
> > > I have looked theoretically to the Jade-S package; now I want
> > > to try it.
> > >
> > > I have set up my system to J2SE 1.4.1 (which collided at
> > > first with my
> > > jdk1.3.1 installation) and now try to run the first example.
> > >
> > > This is jade/add-ons/security/runExamples/myfirst.
> > >
> > > I started main.bat and when this came up ok,
> > > cont.bat from another shell. This ran into an exception:
> > > Exception in thread "main"
> > > java.security.AccessControlException: access
> > > denied (java.util.PropertyPermission * read,write)
> > > at
> > > java.security.AccessControlContext.checkPermission(AccessContr
> > > olContext.java
> > > :270)
> > > at
> > > java.security.AccessController.checkPermission(AccessControlle
> > > r.java:401)
> > > at
> > >
> java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
> > > at
> > > java.lang.SecurityManager.checkPropertiesAccess(SecurityManage
> > > r.java:1259)
> > > at java.lang.System.getProperties(System.java:500)
> > > at jade.BootProfileImpl.setArgProperties(Unknown Source)
> > > at jade.BootProfileImpl.<init>(Unknown Source)
> > > at jade.Boot.<init>(Unknown Source)
> > > at jade.Boot.main(Unknown Source)
> > >
> > > Has anyone got a quick explanation for this?
> > > (I will dig myself deeper into this, but your help could
> > speed me up.)
> > >
> > > Martin
> > > =================================================
> > > Martin Schneider
> > > Siemens AG
> > > CT IC 6 Intelligent Autonomous Systems
> > > tel.: +49 89 636-44257 fax.: +49 89 636-41423
> > > e-mail: Martin.Schneider@siemens.com
> > >
> > >
> > > _______________________________________________
> > > jade-develop mailing list
> > > jade-develop@sharon.cselt.it
> > > http://sharon.cselt.it/mailman/listinfo/jade-develop
> > > UNSUBSCRIBE INSTRUCTIONS AT
> > http://jade.cselt.it/mailing.htm#unsubscribe
> >
> >
> > ====================================================================
> > CONFIDENTIALITY NOTICE
> > This message and its attachments are addressed solely to the persons
> > above and may contain confidential information. If you have received
> > the message in error, be informed that any use of the content hereof
> > is prohibited. Please return it immediately to the sender and delete
> > the message. Should you have any questions, please contact us by
> > replying to MailAdmin@tilab.com. Thank you
> > ====================================================================
> >
>
>



This archive was generated by hypermail 2a22 : Tue Oct 15 2002 - 16:05:17 MET DST