RE: RE : problems invoking axis soap from an applet

2005-02-16 Thread Brown, Mike
The problem is that the Applet is trying to read (not write) the log level.
We have to find a way to give it that knowledge. Doing a quick google. I
found this page.
http://www.geocities.com/dcblaha/articles/Soap/SoapSetup.htm

It gives a recommendation on how to get Axis working in an applet. In
particular

If you want to use the client classes from an applet or bean on the client,
then it is best to package it into a jar like the following. 
   jar jarfile=${build.lib}/RackService.jar
  fileset dir=${build.classes} includes=server/netdbsoap/* /
   /jar

Then also remember to add it to the object codebase=...  in the jsp or
html page. Also add all of the required axis client jars to the object tag,
and to a place accessible to the client in the Tomcat directories. 

So your object tag should look something like this

object classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 
  height=300 width=450  
param name=code value=com.yourCompany.YourApplet /
param name=archive value=Sample.jar, axis.jar, jakarta-commons.jar,
etc /
!--[if !IE]  --
object classid=java:com.yourCompany.YourApplet.class
archive=Sample.jar, axis.jar, jakarta-commons.jar, etc 
height=300 width=450 
/object 
!-- ![endif]--
  /object

This should solve your problem...

-Original Message-
From: Philip Baruc [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 7:39 PM
To: [EMAIL PROTECTED]
Subject: Re: RE : problems invoking axis soap from an applet

Is there no alternative to signing the applet?
Have there been any bugs posted on axis to take care of this problem?

p

--- Faucher, Christian
[EMAIL PROTECTED] wrote:

 I am guessing you see this in applet log file.
  
 Axis (client) tries to write its log file.  Since you are running in 
 an applet, it tries to write on the client station.
 Since it is not
 possible to write to the local disk from an applet sandbox, then you 
 get this exception.
  
 One way to prevent this is (maybe) to sign your applet.  The user will 
 then grant the right to the applet to write to the local disk.
  
 Unless there is a way to configure axis to NOT write to the local disk 
 for logging?
  
 Christian Faucher
 
 
 
 -Message d'origine-
 De : Philip Baruc [mailto:[EMAIL PROTECTED] Envoyé : mardi, février 
 15, 2005 10:37 À : [EMAIL PROTECTED] Objet : problems invoking 
 axis soap from an applet
 
 
 I've seen acouple of post similiar to this one.
 
 I'm trying to invoke axis soap from an applet and i keep getting this 
 error.
 
  Caused by: java.security.AccessControlException:
 access denied \
 (java.util.PropertyPermission
 org.apache.commons.discovery.log.level
 read)
 
 I've seen acouple of people posting the same problem.
 has there been a solution to this?
 
 pbaruc
 
 =
 ---
 Philip G. Baruc
 [EMAIL PROTECTED]
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com
   _
 
 Ce message est confidentiel, à l'usage exclusif du destinataire 
 ci-dessus et son contenu ne représente en aucun cas un engagement de 
 la part de AXA, sauf en cas de stipulation expresse et par écrit de la 
 part de AXA. Toute publication, utilisation ou diffusion, même 
 partielle, doit être autorisée préalablement. Si vous n'êtes pas 
 destinataire de ce message, merci d'en avertir immédiatement 
 l'expéditeur.
 
 This e-mail message is confidential, for the exclusive use of the 
 addressee and its contents shall not constitute a commitment by AXA, 
 except as otherwise specifically provided in writing by AXA. Any 
 unauthorized disclosure, use or dissemination, either whole or 
 partial, is prohibited. If you are not the intended recipient of the 
 message, please notify the sender immediately.
 


=
---
Philip G. Baruc
[EMAIL PROTECTED]



__
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 



Re: RE : problems invoking axis soap from an applet

2005-02-15 Thread Philip Baruc
Is there no alternative to signing the applet?
Have there been any bugs posted on axis to take care
of this problem?

p

--- Faucher, Christian
[EMAIL PROTECTED] wrote:

 I am guessing you see this in applet log file.
  
 Axis (client) tries to write its log file.  Since
 you are running in an
 applet, it tries to write on the client station. 
 Since it is not
 possible to write to the local disk from an applet
 sandbox, then you get
 this exception.
  
 One way to prevent this is (maybe) to sign your
 applet.  The user will
 then grant the right to the applet to write to the
 local disk.
  
 Unless there is a way to configure axis to NOT write
 to the local disk
 for logging?
  
 Christian Faucher
 
 
 
 -Message d'origine-
 De : Philip Baruc [mailto:[EMAIL PROTECTED]
 Envoyé : mardi, février 15, 2005 10:37
 À : [EMAIL PROTECTED]
 Objet : problems invoking axis soap from an applet
 
 
 I've seen acouple of post similiar to this one.
 
 I'm trying to invoke axis soap from an applet and i
 keep getting this error.
 
  Caused by: java.security.AccessControlException:
 access denied \
 (java.util.PropertyPermission
 org.apache.commons.discovery.log.level
 read)
 
 I've seen acouple of people posting the same
 problem.
 has there been a solution to this?
 
 pbaruc
 
 =
 ---
 Philip G. Baruc
 [EMAIL PROTECTED]
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around
 http://mail.yahoo.com
   _  
 
 Ce message est confidentiel, à l'usage exclusif du
 destinataire
 ci-dessus et son contenu ne représente en aucun cas
 un engagement de la
 part de AXA, sauf en cas de stipulation expresse et
 par écrit de la part
 de AXA. Toute publication, utilisation ou diffusion,
 même partielle,
 doit être autorisée préalablement. Si vous n'êtes
 pas destinataire de ce
 message, merci d'en avertir immédiatement
 l'expéditeur.
 
 This e-mail message is confidential, for the
 exclusive use of the
 addressee and its contents shall not constitute a
 commitment by AXA,
 except as otherwise specifically provided in writing
 by AXA. Any
 unauthorized disclosure, use or dissemination,
 either whole or partial,
 is prohibited. If you are not the intended recipient
 of the message,
 please notify the sender immediately.
 


=
---
Philip G. Baruc
[EMAIL PROTECTED]



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com