This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes denied ( ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark " denied ( ..." Watch " denied ( ..." New topic
Author denied ( ...

bill zhang

Joined: Jul 08, 2009
Posts: 8
I have a swing program needs to access db which resides on on port 1521.
I signed the program and policy file looks like:

grant signedBy "susan" {
permission "C:\\Backup\\SignJarTest\\*", "read";
permission "", "listen,accept,connect,resolve";

If I remove FilePermission from the policy, program throws error on opening a config file. So fist setting solves this problem. However no matter what I do with the second setting for Socket Permission, it keeps giving me error when I run the program: denied ( connect, resolve.
Can someone tell me why? Thanks.
Vishalkumar srivastava

Joined: Jul 16, 2009
Posts: 2
use the port no. also as shown below

permission "", "listen,accept,connect,resolve";
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2846

"Vishal India " please check your private messages. You can check them by clicking the My Private Messages link above.

|Asking Good Questions|
Consider Paul's rocket mass heater.
subject: denied ( ...
jQuery in Action, 3rd edition