Re: problem with applet access to web service



On 28 Mar, 11:42, Nigel Wade <n...@xxxxxxxxxxxx> wrote:
ballo0 wrote:
I am using java 5. I have a prolem with access to web service by java
applet. When applet is launched as standalone application it works
fine, but when i try to launch applet in my browser as a part of
website it doesn't work. Applet is loading and loading and it can't
finish. I am trying to access web service in init method, when i
comment this part of method everything works fine.

I am using sun AS 9.1, and web service has been tested.

Maybe someone has similar problems. I can also post sources if there
is need.

ballo0

Look in the Java console for your browser to see if there are any
errors/exceptions reported. The applet is most likely failing to start.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : n...@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

like i have written this is the problem, you are right it is thrown by
init method in applet:

java.lang.ExceptionInInitializerError
at
com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:
208)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
125)
at
com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:
52)
at javax.xml.ws.Service.<init>(Service.java:57)
at gra.CardWSService.<init>(CardWSService.java:40)
at timon.Applet.init(Applet.java:108)
at sun.applet.AppletPanel.run(AppletPanel.java:417)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission xml.catalog.ignoreMissing read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:
1285)
at java.lang.System.getProperty(System.java:652)
at
com.sun.org.apache.xml.internal.resolver.CatalogManager.<init>(CatalogManager.java:
140)
at
com.sun.org.apache.xml.internal.resolver.CatalogManager.<clinit>(CatalogManager.java:
134)
... 8 more

any ideas how to make it work, and what exactly is wrong?

ballo0

.



Relevant Pages

  • Re: browser screen capture with java applet
    ... the applet would be to do the job of the actual image capturing on each ... current browser window - if that's relevant. ... minimum Java version. ...
    (comp.lang.java.programmer)
  • Re: Applet mit einem Programm fernsteuern
    ... Ich finde es halt nunmal praktischer, die Ausgaben einer bestimmten Website direkt ins Programm einzulesen, statt zuerst den Browser anzuwerfen, die Ausgabe abzuspeichern und dann erst in mein Programm einzulesen. ... das du in eine Java-Anwendung ein reines Applet integrieren möchtest. ... Denn das fählt unter dem Punkt Daten-Diebstahl. ...
    (de.comp.lang.java)
  • Re: Applet mit einem Programm fernsteuern
    ... Applet mit einer anderen Anwendung als mit einem Browser ausgeführt hat? ... Ich finde es halt nunmal praktischer, die Ausgaben einer bestimmten Website direkt ins Programm einzulesen, statt zuerst den Browser anzuwerfen, die Ausgabe abzuspeichern und dann erst in mein Programm einzulesen. ... Nun wäre das ganz HTTP/HTML/Server/Browser-System aber ziemlich unsinnig, wenn man gar keine Kopien herstellen darf. ...
    (de.comp.lang.java)
  • Re: Looking for confirmation
    ... Your browser? ... How do you get error reports ... I will brook no crap about 'my applet is fine', ... And if the params were being written 'client side' using ...
    (comp.lang.java.programmer)
  • Re: How do I specify the height and width of an Applet?
    ... > these settings in the browser? ... > custom Canvas class in the center. ... > Swing allows me to set the size of an Applet from within the Applet, ... Can you open this in a chromeless (browser) window ...
    (comp.lang.java.help)