Philip,

Can you please try this tip?

http://marc.theaimsgroup.com/?l=axis-dev&m=112300337608595&w=2

thanks,
dims

On 10/31/05, Gonia, Philip T <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having a problem with applet and Axis. Please find below the
> source code
> for the applet, the HTML applet tag code, and error message I am
> getting.
>
> I have signed the applet.jar and many of the supporting .jar files.
> This seems to be working
> from a signed jar file point of view.
>
> The error seems to be pointing to a class-loader issue which I thought
> the signing the jar files
> would have fixed.
>
> I noticed that there have been some issues posted but I am not clear as
> to whether or not
> this has been resolved and I am having a different problem.
>
> I am running the applet in firefox and safari on MAC OS X 10.3 with
> java 1.4.2. I have Tomcat
> version 5.5.12 and Axis 1.3 installed and running.
>
> ******** Source Code *************
> /*
>   * TestClient.java
>   *
>   * Created on October 28, 2005, 4:20 PM
>   *
>   * To change this template, choose Tools | Template Manager
>   * and open the template in the editor.
>   */
>
> package testclient;
>
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
> import javax.xml.namespace.QName;
>
> /**
>   * Based on the TestClient code provided by the Apache Axis project.
> Axis
>   * version 1.3. (User Guide -- "Consuming Web Services with Axis")
>   *
>   * The intent of this applet is to test Axis support for Applet
> applications.
>   * This will in turn support the WEB Enabling of the Visitor
> Information Centers
>   * Robotic hardware systems for educational out reach.
>   */
> public class TestClient extends java.applet.Applet {
>
>      // Points to where our service is located.
>      private static String endpoint =
> "http://localhost:8080/axis/services/echo";;
>
>      /** Initialization method that will be called after the applet is
> loaded
>       *  into the browser.
>       */
>      public void init() {
>          System.out.println("\n**********\nStarting up!\n");
>          makeSoapCall("Hello!");
>          System.out.println("\n**********\n");
>
>      }
>
>      // Makes a call to the defined endpoint. In this case the echo
> service.
>      private static void makeSoapCall( String message ){
>          String my_Message = message;
>
>          try{
>              Service serv = new Service();
>              Call theCall = (Call) serv.createCall();
>
>              theCall.setTargetEndpointAddress( new java.net.URL(
> endpoint ));
>              theCall.setOperationName(new
> QName("http://soapinterop.org/";, "echoString"));
>
>              String ret = (String) theCall.invoke( new Object[] {
> my_Message } );
>              System.out.println("Sent 'Hello!', got '" + ret + "'");
>          }
>          catch( Exception error){
>              System.err.println( error.toString());
>          }
>      }
>
> }
> ****************************
>
> ******* Applet  Tag Code ***********
> <applet code="testclient.TestClient.class"
>
> archive="/TestClient/DVA/TestClient.jar,/TestClient/DVA/axis.jar,
>
> /TestClient/DVA/jaxrpc.jar,/TestClient/DVA/commons-logging-1.0.4.jar,
>                      /TestClient/DVA/commons-discovery-0.2.jar"
>                    height="600"
>                    width="800">
>              </applet>
> **************************************
>
> ******** Error Message ************
> **********
> Starting up!
>
> java.lang.ExceptionInInitializerError
>         at 
> org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
>         at
> org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingle
> ton.java:412)
>         at
> org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingle
> ton.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.ja
> va: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 testclient.TestClient.makeSoapCall(TestClient.java:40)
>         at testclient.TestClient.init(TestClient.java:30)
>         at sun.applet.AppletPanel.run(AppletPanel.java:354)
>         at java.lang.Thread.run(Thread.java:552)
> Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission createClassLoader)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.
> java:269)
>         at
> java.security.AccessController.checkPermission(AccessController.java:
> 401)
>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
>         at
> java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:
> 586)
>         at java.lang.ClassLoader.<init>(ClassLoader.java:210)
>         at
> org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSy
> stemClassLoader.java:73)
>         at
> org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12H
> ooks.java:215)
>         at
> org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:
> 73)
>         ... 14 more
> *******************************************
>
>
> Any help in resolving this issue would be greatly appreciated.
> ************************************************************************
> *****
> Philip T. Gonia
> IT Specialist
> Code VCF
> Nasa Glenn Research Center
> Cleveland OH
> ************************************************************************
> ******
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Reply via email to