axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KALYAN <>
Subject RE: Applets--Could not get it working
Date Tue, 15 Aug 2006 21:58:11 GMT

Its not a secure site. I had accepted the certificate that I created. But the applet works
only if I modify the java.policy file. 

Let me know if I should give more info.

Here is the error message I get.

Exception in thread "Thread-7" java.lang.NoClassDefFoundError: Could not initialize class
    at org.apache.axis.client.Service.getAxisClient(
    at org.apache.axis.client.Service.<init>(
    at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(
    at unitconverter.panels.UnitConvertorPanel$
Exception in thread "Thread-8" java.lang.ExceptionInInitializerError
    at org.apache.commons.discovery.jdk.JDKHooks.<clinit>(
    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 unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(
    at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(
    at unitconverter.panels.UnitConvertorPanel$
Caused by: access denied (java.lang.RuntimePermission
    at Source)
    at 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>(
    at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(
    at org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(
    ... 13 more


Larry Lemons <> wrote:     What error message are you getting?  Is
the  site at which the web service is hosted a secure site?  If the  certificate for which
the applet was signed is a trusted certificate or is  allowed to run by the client, i.e. the
client clicks on the run or allow, or OK  button that would enable the applet to run, then
it should run, unless there are  other certificates involved in the process, i.e. one installed
on the web  services server.
   Thank you,
 Larry M. Lemons
 (304) 726-4809 Ext. 4505


 From: KALYAN []  
Sent: Tuesday, August 15, 2006 4:31 PM
Subject: Applets--Could not get it  working

Hi all,
Has anyone found the solution to using java applets as the  client.

I could do it only this way.
1.) Sign the required jars
2.)  Modify the java.policy file to
        grant {  
So the users would not want to modify the java.policy file. 

Is  there any solution for this problem. I would love to hear a solution.

I  am using Axis 1.4


 Do you Yahoo!?
Next-gen email? Have it all with the all-new  Yahoo! Mail Beta.

Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.
View raw message