commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Olof Stenflo <>
Subject Re: using axis within an applet
Date Wed, 12 Mar 2003 20:17:33 GMT
I believe it is currently not yet possible to run axis within
an applet. Please correct me if I'm wrong. (Anyone, please!)

I've had this same problem and I've seen it described by serveral
others, but haven't found a solution yet either. The reason why
axis can't be run within a browser is because it is heavily
reliant on commons-discovery and commons-logging, both which
violate the applet's sandbox restrictions when performing file io.
It seems, to get axis working from within an applet in a browser
would require either changes to the 'security.policy' on the client
side, or hacking the axis or commons code itself. The first option
is usually not an option for applications deployed on the web.

This is really too bad, because it seems SOAP would be the optimal
way for an applet to talk back to the server (that it was loaded
from). Much better than rmi, or jmx for multiple www clients.
Doesn't anyone use axis within an applet to talk back to the server?

same basic problem described elsewhere....


----- Forwarded message from -----
    Date: Tue, 11 Mar 2003 16:45:52 -0700
 Subject: using axis within an applet

> greetings! I've written a small app using
> axis and it works great, but... when I run
> it inside an applet, I get the following
> sandbox security violation having to do
> with logging. Any suggestions, what is the
> best way to turn this off?? Thanks!!!
> -Rob (newbie)
> java.lang.ExceptionInInitializerError
> 	at org.apache.commons.discovery.log.DiscoveryLogFactory._newLog(
> 	at org.apache.commons.discovery.log.DiscoveryLogFactory.<clinit>(
> 	at org.apache.commons.discovery.resource.DiscoverResources.<clinit>(
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at org.apache.axis.components.logger.LogFactory$
> 	at Method)
> 	at org.apache.axis.components.logger.LogFactory.getLogFactory(
> 	at org.apache.axis.components.logger.LogFactory.<clinit>(
> 	at org.apache.axis.handlers.BasicHandler.<clinit>(
> 	at org.apache.axis.client.Service.getAxisClient(
> 	at org.apache.axis.client.Service.<init>(
> 	at mystuff.eai.EAISoapClient.getEAIApp(
> 	at mystuff.ui.view.swing.eai.EAIObserver.<init>(
> 	at mystuff.ui.applet.eai.EAIObserverApplet$EAIObserver2.<init>(
> 	at mystuff.ui.applet.eai.EAIObserverApplet.init(
> 	at
> 	at

> Caused by: access denied (java.util.PropertyPermission
org.apache.commons.discovery.log.level read)
> 	at
> 	at
> 	at java.lang.SecurityManager.checkPermission(
> 	at java.lang.SecurityManager.checkPropertyAccess(
> 	at java.lang.System.getProperty(
> 	at org.apache.commons.discovery.log.SimpleLog.<clinit>(

View raw message