Re: problem with applet access to web service



On 28 Mar, 03:12, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
ballo0 wrote:
On 28 Mar, 02:35, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
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
Are the web service and applet coming from the same server?

--
Knute Johnson
email s/nospam/linux/

yes, it is my computer ;-)

The applet is signed and your browser is getting it from the web server
running on your computer not off the hard disk? I know these can be
tricky. What exactly are you accessing from the applet?

--

Knute Johnson
email s/nospam/knute/

Can You say exactly what do you mean by signing applet? Applet runs
from web serwer, it is packaged in war, of web application that
contains a website with this applet. Exactly i have a ejb deployed,
and it has a webservice, and applet is trying to use it. If you want
here is exact code:

try { // Call Web Service Operation
gra.CardWSService service = new gra.CardWSService();
gra.CardWS port = service.getCardWSPort();
// TODO process result here
k1 = port.getCard();
k2 = port.getCard();

} catch (Exception ex) {
// TODO handle custom exceptions here
}

and I have checked what is going on with java console in firefox and
i've got:


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 works?

ballo0

.



Relevant Pages

  • Re: problem with applet access to web service
    ... ballo0 wrote: ... When applet is launched as standalone application it works ... but when i try to launch applet in my browser as a part of ... Look in the Java console for your browser to see if there are any ...
    (comp.lang.java.help)
  • Re: problem with applet access to web service
    ... When applet is launched as standalone application it works ... but when i try to launch applet in my browser as a part of ... I am using sun AS 9.1, and web service has been tested. ... The applet is signed and your browser is getting it from the web server running on your computer not off the hard disk? ...
    (comp.lang.java.help)
  • Re: problem with applet access to web service
    ... When applet is launched as standalone application it works ... but when i try to launch applet in my browser as a part of ... I am trying to access web service in init method, ... Look in the Java console for your browser to see if there are any ...
    (comp.lang.java.help)
  • Re: problem with applet access to web service
    ... When applet is launched as standalone application it works ... but when i try to launch applet in my browser as a part of ... I am using sun AS 9.1, and web service has been tested. ... In order to allow this without throwing an exception, ...
    (comp.lang.java.programmer)
  • problem with applet access to web service
    ... I am using java 5. ... When applet is launched as standalone application it works ... but when i try to launch applet in my browser as a part of ... I am trying to access web service in init method, ...
    (comp.lang.java.programmer)