Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 95294 invoked from network); 11 May 2006 05:20:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 05:20:58 -0000 Received: (qmail 97489 invoked by uid 500); 11 May 2006 01:08:49 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 97477 invoked by uid 500); 11 May 2006 01:08:48 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 97466 invoked by uid 99); 11 May 2006 01:08:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 18:08:48 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.37.197] (HELO web88010.mail.re2.yahoo.com) (206.190.37.197) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 10 May 2006 18:08:47 -0700 Received: (qmail 96244 invoked by uid 60001); 11 May 2006 01:08:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=xIdu9+IhRmE4qt6mJ2u1qo0QYS/JqZJwlgwqrORuAq0DJQaceK1Zew5EdcMOr0zp5stpc5TuoWeEa6FpnxqU6+ZdzCr+MZOFQq5va6uHO88SHaWWH2JlrCNC0VOgVrOeHT5y/lyDDMYZ3zu78hvc94F5Mn5vOUJPYIgPMLc2DrA= ; Message-ID: <20060511010822.96242.qmail@web88010.mail.re2.yahoo.com> Date: Wed, 10 May 2006 18:08:22 -0700 (PDT) From: ANTHONY ZIOLKOWSKI Reply-To: ANTHONY ZIOLKOWSKI Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes security error To: axis-user@ws.apache.org Cc: robert lazarski In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-177252612-1147309702=:95988" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-177252612-1147309702=:95988 Content-Type: text/plain; charset=us-ascii Nope, still doesn't work. Looks like the same error to me. Just to help this is the html code: Demo Page Something Stupid 3
Latest stack trace: Java Plug-in 1.5.0_02 Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at com.zeesol.bizservice.client.BizService_ServiceLocator.(BizService_ServiceLocator.java:12) at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 35 more ----- Original Message ---- From: robert lazarski To: ANTHONY ZIOLKOWSKI Sent: Wednesday, May 10, 2006 8:26:12 PM Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes security error Put it under WEB-INF/classes . Make sure you have the log4j.jar under WEB-INF/lib . If there is a commons-logging.properties file, make sure it has this property: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger The file I posted, if you follow those instructions, should disable file logging. HTH, Robert http://www.braziloutsource.com/ On 5/10/06, ANTHONY ZIOLKOWSKI wrote: Thanks for this. However, I don't know where to put log4j.properties file. I put it in the same folder as the web that runs the applet, but I still get the same error. Where do I put that file? ----- Original Message ---- From: robert lazarski < robertlazarski@gmail.com> To: axis-user@ws.apache.org; ANTHONY ZIOLKOWSKI < aziolk@rogers.com> Sent: Monday, May 8, 2006 8:36:16 AM Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes security error I suspect this is primarily a log4j / commons-logging issue. Try editing the properties of each and comment out the file appenders. Or simply enable log4j based logging in the commons property file, and use your own log4j.properties file instead of the one that comes with axis. I'm enclosing my log4j.properties file that should do just that (I removed the file appender, but I didn't test it). It will still print lines to the console via stdout / stderr , but that shouldn't be a problem. Look in your browser in the tools section to view an applets stdout / stderr messages if you want to see them. HTH, Robert http://www.braziloutsource.com/ On 5/8/06, ANTHONY ZIOLKOWSKI wrote: This is second post of this message. I guess the first got lost in the excitement about 2.0. However, I desparately need an answer to this. I have written my first web service. It works fine in all the ways I want except one - running from an applet in a web browser. As far as I can tell from the trace below this is caused by the Axis code accessing the file system to do logging which, of course, isn't allowed cause it's outside the applets sandbox. I did read a post about signing the applet and changing policies for the browser, but other than signing the applet, forcing the user to do anything is out of the question. So how do I access my axis-developed web service from my applet? Is there any way of disabling the logging so it doesn't play with the localfile system? Stack trace: Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find (DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged (Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler .(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at com.zeesol.bizservice.client.BizService_ServiceLocator.(BizService_ServiceLocator.java:12) at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156) at javax.swing.AbstractButton.fireActionPerformed (Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent (Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent (Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader (Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader (JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 35 more --0-177252612-1147309702=:95988 Content-Type: text/html; charset=us-ascii
Nope, still doesn't work. Looks like the same error to me.
Just to help this is the html code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Demo Page</title>
</head>
<body>
Something Stupid 3<br>
<APPLET CODE="com.zeesol.applets.BaseRunner.class"  archive="ZeesolApplets.jar,axis.jar,jaxrpc.jar,commons-logging-1.0.4.jar,commons-discovery-0.2.jar" WIDTH=717 height=353></applet>
</body>
</html>
Latest stack trace:
 
Java Plug-in 1.5.0_02
Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
 at org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
 at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
 at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
 at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
 at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
 at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
 at org.apache.axis.client.Service.getAxisClient(Service.java:104)
 at org.apache.axis.client.Service.<init>(Service.java:113)
 at com.zeesol.bizservice.client.BizService_ServiceLocator.<init>(BizService_ServiceLocator.java:12)
 at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156)
 at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source)
 at java.lang.ClassLoader.<init>(Unknown Source)
 at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:73)
 at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
 at org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)
 ... 35 more


----- Original Message ----
From: robert lazarski <robertlazarski@gmail.com>
To: ANTHONY ZIOLKOWSKI <aziolk@rogers.com>
Sent: Wednesday, May 10, 2006 8:26:12 PM
Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes security error

Put it under WEB-INF/classes . Make sure you have the log4j.jar under WEB-INF/lib . If there is a commons-logging.properties file, make sure it has this property:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

The file I posted, if you follow those instructions, should disable file logging.

HTH,
Robert
http://www.braziloutsource.com/

On 5/10/06, ANTHONY ZIOLKOWSKI <aziolk@rogers.com > wrote:
Thanks for this. However, I don't know where to put log4j.properties file. I put it in the same folder as the web that runs the applet, but I still get the same error. Where do I put that file?

----- Original Message ----
From: robert lazarski < robertlazarski@gmail.com>
To: axis-user@ws.apache.org; ANTHONY ZIOLKOWSKI < aziolk@rogers.com>
Sent: Monday, May 8, 2006 8:36:16 AM
Subject: Re: REPOST FOR HELP: Axis client logging from web applet causes security error

I suspect this is primarily a log4j / commons-logging issue. Try editing the properties  of each and comment out the file appenders. Or simply enable log4j based logging in the commons property file, and use your own log4j.properties file instead of the one that comes with axis. I'm enclosing my log4j.properties file that should do just that (I removed the file appender, but I didn't test it). It will still print lines to the console via stdout / stderr , but that shouldn't be a problem. Look in your browser in the tools section to view an applets stdout / stderr messages if you want to see them.

HTH,
Robert
http://www.braziloutsource.com/

On 5/8/06, ANTHONY ZIOLKOWSKI <aziolk@rogers.com > wrote:
This is second post of this message. I guess the first got lost in the excitement about 2.0. However, I desparately need an answer to this.
 
I have written my first web service. It works fine in all the ways I want except one - running from an applet in a web browser. As far as I can tell from the trace below this is caused by the Axis code accessing the file system to do logging which, of course, isn't allowed cause it's outside the applets sandbox. I did read a post about signing the applet and changing policies for the browser, but other than signing the applet, forcing the user to do anything is out of the question.
 
So how do I access my axis-developed web service from my applet? Is there any way of disabling the logging so it doesn't play with the localfile system?
 
Stack trace:
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
 at org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
 at org.apache.commons.discovery.tools.DiscoverSingleton.find (DiscoverSingleton.java:412)
 at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
 at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
 at java.security.AccessController.doPrivileged (Native Method)
 at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
 at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
 at org.apache.axis.handlers.BasicHandler .<clinit>(BasicHandler.java:43)
 at org.apache.axis.client.Service.getAxisClient(Service.java:104)
 at org.apache.axis.client.Service.<init>(Service.java:113)
 at com.zeesol.bizservice.client.BizService_ServiceLocator.<init>(BizService_ServiceLocator.java:12)
 at com.mazuma.applets.BaseRunner$1.actionPerformed(BaseRunner.java:156)
 at javax.swing.AbstractButton.fireActionPerformed (Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent (Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.dispatchEvent (Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy (Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
 at java.security.AccessControlContext.checkPermission(Unknown Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkCreateClassLoader (Unknown Source)
 at java.lang.ClassLoader.<init>(Unknown Source)
 at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:73)
 at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader (JDK12Hooks.java:215)
 at org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)
 ... 35 more
 


--0-177252612-1147309702=:95988--