hi all,
i m trying to call a webservice deployed on tomcat4 in applet client.
i m getting this exception when i m calling this line of code
this.service=this.serviceFactory.createService(this.WsdlUrl,new QName(this.nameSpaceUri, this.serviceName));
java.lang.ExceptionInInitializerError
at com.sun.xml.rpc.encoding.soap.StandardSOAPTypeMappings.<init>(StandardSOAPTypeMappings.java:285)
at com.sun.xml.rpc.encoding.StandardTypeMappings.getSoap(StandardTypeMappings.java:28)
at com.sun.xml.rpc.client.BasicService.createSoapMappings(BasicService.java:170)
at com.sun.xml.rpc.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:160)
at com.sun.xml.rpc.client.BasicService.<init>(BasicService.java:60)
at com.sun.xml.rpc.client.dii.ConfiguredService.<init>(ConfiguredService.java:39)
at com.sun.xml.rpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:32)
at Connection.<init>(Connection.java:29)
at SwingApplet.start(SwingApplet.java:120)
at sun.applet.AppletPanel.run(AppletPanel.java:370)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.util.calendar)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1513)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:200)
at java.lang.Class.checkMemberAccess(Class.java:1422)
at java.lang.Class.getMethod(Class.java:962)
at com.sun.xml.rpc.encoding.simpletype.XSDDateTimeCalendarEncoder.<clinit>(XSDDateTimeCalendarEncoder.java:94)
... 11 more
why is so. i have tried with signed applet and it is working fine.
and without sigining an applet is it possible if yes the how??
does anybody try this problem. if u guys give any suggestion
then most welcome.
thankx in advance
Capi