my dog learned polymorphism*
The moose likes Web Services and the fly likes confused by PrivilegedActionException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "confused by PrivilegedActionException" Watch "confused by PrivilegedActionException" New topic
Author

confused by PrivilegedActionException

simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
Hi,

Am very new to web services!!

Am using JDeveloper to create a simple web service, and then a client to test the web service. However when I run the client I get the following error:



I have no idea what is causing this, the client was generated by a code wizard in JDeveloper so in realirt I haven't actually coded anything.

Any pointers would be very much appreciated.


Simon
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
getting exception while invoking service frm client on another system may help.
simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
I understand that, but what password is it looking for?

I never specified any when I created the webservice - i just followed a JDeveloper tutorial to create the service and then the client. Nowhere there does it mention about passowrds!
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Just some possibilities:

Did you deploy the web service or did you just write the client? If somebody or something else deployed the web service then it may require account credentials - something like a database logon.

Is the Web service deployed locally on your machine or another machine over the network? If you are going over the network you may need to cross a firewall in which case the proxy credentials need to be configured.
simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
Hi,

You were right. The service was deployed locally on my machine, but the connection I was trying to use was my network address, obviously out firewall was causing problems. When i changed it to localhost it all worked fine.

Can't thank you enough for your help
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: confused by PrivilegedActionException