Doubts about Policy File Creation....please help me....

I already reach a applet<-> servlet<->DB communication since my own pc i can access to it....indicating http://localhost:8088/name_file.html o http://localhost:8088/name_file.jsp in the browser.
Now according with:
http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/dba.html
I already created a file that contains:
grant {
permission java.net.SocketPermission "developer",
"resolve";
permission java.net.SocketPermission
"172.21.2.195:1521", "connect,resolve";
I named it like:
DbaApplPol.policy
Now....is correct it?....ie, the file have to be saved with extension ".policy"?
Also, how can i specify or indicate in the browser that the file *.html o *.jsp uses the "file DbaApplPol.policy"?, ie, what additional thing i have to place together with:
http://localhost:8088/name_file.html o http://localhost:8088/name_file.jsp in the browser.
On other hand.....doing it...any other different pc (including the mine), could to have access to my applet<-> servlet<->DB program?
Thanks in advance...
Mary

Thanks by answering to me....i really appreciate it....thanks...
Well....i already did the change in 1 and 2....
I'm using Tomcat 4.0.3, Windows 2000, jdk 1.3
1) I placed dbaapplpol.policy in:
C:\Jakarta-Tomcat-4.0.3\conf\DbaApplPol.policy
2) And i modified the java.security file in the following directory:
C:\Program Files\Java\j2re1.3\lib\security\java.security
with the following:
policy.url.1=file:${java.home}/lib/security/java.policy
policy.url.2=file:${user.home}/.java.policy
policy.url.3=http://172.21.2.195:8088/DbaApplPol.policy
Could you tell me if i have to do something more...Do i have to restart my computer? or something like that, because i obtain the following runtime exception:
java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8088 connect,resolve)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkConnect(Unknown Source)
     at sun.plugin.net.protocol.http.HttpURLConnection.checkPermission(Unknown Source)
     at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
     at j13_a.make_servlet_connection(j13_a.java:129)
     at j13_a.Llenado_Valores_Region(j13_a.java:353)
     at j13_a.init(j13_a.java:99)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Any suggestion?....
Thanks...
Mary

Similar Messages

  • I am developing a flex web application which needs to access Other domain ,is there any other way other than cross domain policy available ? please help

    i am developing a flex web application which needs to access Other domain (Payment Gateway API),is there any other way other than cross domain policy available ? please help.
    we donot have access other domain thats why we want other solution..

    All the paths to CFCs are the same in my live production site.  Can you be more specific as to what you mean by "RemoteClass aliases in your AS Classes and CFCs (if any) are correct."?  How will the app know that the CFC is on http://myLiveSite.com instead of http://myDevSite.com?  The only line of code that I have noticed that points to a URL is the endpoint in a file called _Super_XXX.as.  And at the top of that file it says that the file is not meant for editting.
    To clarify...I see your app/code all exists on a server access via a web browser so I can understand that everything still works when deployed.  Mine is a mobile app so when I am developing and testing on my local computer the URL points to my local development machine.  However when I deploy it to a mobile device like a tablet and run the app, it needs to be able to access a cfc on a remote server via a different URL ie. my http://myLiveSite.com/myCFC.cfc instead of http://localhost/myCFC.cfc
    Thanks for your help!  I will now take a look at your thread.
    Message was edited by: ace0215

  • My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    this may happen on external drives if:
    The external drive was hotpluged (removed) without going the correct "eject" way
    The iTunes library (database) got corrupted
    First Aid for external drive
    Close iTunes
    Unmount (eject) external drive the right way.
    Mount drive again
    Go to Workplace -> right click external drive -> choose "clean up" This will force the filesystem to rescan the file structure of the drive and rebuilding the file system table and journaling file.
    After the tool shows "done" (could last some time depending on size of drive) restart iTunes
    If your iTunes library is on your internal drive, this may happen
    The system was not shoot down correct, e.g. "pulled the plug"
    The iTunes library (database) got corrupted
    First Aid for internal hard drive
    Close iTunes
    Reboot system
    Go to Workplace -> right click external drive -> choose "clean up"
    After the tool shows "done" (could last some time depending on size of drive)
    Reboot system, restart iTunes
    If none of the above fixes your problem, post here.
    Lupunus

  • I had a USA itunes card in my account and now I have shifted to the UK, I would like to shift my account and change my itunes store to the UK based store but cant do it as itunes card has got some credit left about $1.30. Please help

    I had a USA itunes card in my account and now I have shifted to the UK, I would like to shift my account and change my itunes store to the UK based store but cant do it as itunes card has got some credit left about $1.30. Please help.

    You can try contacting iTunes Support and ask them if they can remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

    I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

    I can't install I-Tunes 10.6.1.7 on my Windows Vista laptop. Tried it several times. First message: Policy 8.0 Microsoft VC80.CRT..type='win32-policy, etc. Please help

  • While Installing adobe reader and acrobat im getting error 1406 this error. I had already tried every possible step including special permission in registry file. Please help..

    While Installing adobe reader and acrobat im getting error 1406 this error. I had already tried every possible step including special permission in registry file. Please help..

    What is your operating system?  Is there anything else beside the number 1406?

  • I have an MS word doc saved from a Macbook in my flash drive. Now i want to print this from an IBM compatible laptop. problem is -- I can't access the file. Please help.

    I have an MS word doc saved from a Macbook Pro on m flash drive. Now i want to print
    th same doc from an IBM Compatible laptop. Problem is, I can't access the file. Please help.

    I suggest you post your question on Microsofts own forums for their Mac products as it's their software you're having issues with:
    http://answers.microsoft.com/en-us/mac

  • I have a sony rx100 and my version of lightroom (4) will not recognize the raw (.ARW) files. Please help!

    I have a sony rx100 and my version of lightroom (4) will not recognize the raw (.ARW) files. Please help!

    I have version 4.4.1 on my computer now, which is functioning properly - but does not read the .ARW files. When I download the link you sent and try to open it, it pops up as version 5 and I get this image (attached). This is my first time in one of these threads, not sure if i have to reply to each of you individually?
    DdeGannes, could you please tell me how to recover the serial number from my operating system?
    Thank you SO much everyone!

  • Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.  AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: toledo-

    Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.
    AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: [email protected]

    Hi Jwalter,
    Thank you for posting on the Adobe forums,Please let us know what is the exact issue.
    Also, if you want help on how to use the service, kindly try the link below.
    Adobe ExportPDF FAQ
    http://tv.adobe.com/watch/insights-on-acrobat-solutions/introduction-to-adobe-exportpdf/
    Thanks,
    Vikrantt Singh

  • I can't login, keep geting "Your  Startup Disk is Full" and asking me to delete file. if I cant login how can I delete files? Please help

    I Keep getting "your startup disk is full" ..... "You need to make more space available on your startup disk by deleting file..."  If I can't have an acess, how can I delete files. Please help..

    That means the hard drive of your computer is full, and you don't have enough free space on your computer, to do what you are trying to do. 
    You need to clear up space on your computer. 
    If you hard drive is full, check the following places to ensure they are not holding unwanted data.
    - your trash can in the dock
    - if you use iPhoto, your trash in iPhoto - launch iPhoto, and select trash in the left hand column.  iPhoto has it's own trash, and is often overlooked
    - your download folder - finder / home user / downloads - every time you download something, it stores it here. This is often overlooked as well
    - do you have more than one user on the computer?  If you do, ensure they are needed.  If not, delete them, and the contents of their home folders
    If you hard drive is very full, you may want to consider the following:
    - putting in a newer larger hard drive - (call you local apple store for prices on this)
    - deleting data off your computer
    - moving data to an external drive - (iPhoto Libraries, iTunes Libraries or iMovie events, as they are the biggest space hogs)

  • HT1338 I am using iPhoto '11 version 9.4.2 on Mac OS X.  I have a Leica D-LUX 6 and cannot get iPhoto to read my RAW files.  Please help.

    I am using iPhoto '11 version 9.4.2 on Mac OS X.  I have a Leica D-LUX 6 and cannot get iPhoto to read my RAW files.  Please help.

    Answered here:
    https://discussions.apple.com/message/20493786#20493786

  • I'm getting error as adobe Illustrator crashes while loading the multiple pages PDF file. Please help me. Thanks in advance.

    Hi,
    I'm getting error as adobe Illustrator crashes while loading the multiple pages PDF file.
    Please help me. Thanks in advance.

    Hi Monika,
    I have downloaded the script to load the multiple page of pdf file.
    I tried loading the multiple page PDF file via File Menu -> Scripts -> Other Script...
    After executing the script file -> Browse and enter the page number - > OK
    The PDF file is looks like created from word document. There are total 120 pages in this file.
    PDF file size is 20 MB.
    I'm still searching for the solutions. Please help me.
    Thanks,
    Lavprasad

  • HT201263 My IPhone 4 won't restore from recovery mode, it comes up with corrupted file message and I have to start again but it still doesn't work. Tried this about 10 times. Please help?

    My I phone 4 has put itself into recovery mode and I cannot now restore it. I have plugged it into I Tunes about 10 times and every time it starts to restore then comes up with the message Corrupted file start again. Please help.

    Try restoring as a new device first.

  • My iPhoto isn't opening... I think I deleted an important file when I was using MacKeeper. Anyways, it says something about quitting unexpectedly. PLEASE HELP!

    As I was mentioning in the question, I think I deleted an important file using MacKeeper. I was trying to create more space on my laptop, but I'm not sure what I touched. But whenever I click on iPhoto, it takes awhile to open, but then a file pops up saying that iPhoto quit unexpectedly. It then has all these letters and codes which I guess it stands for the problem. The photo below is what is popping up.
    I'm just a girl in dying need of help! I don't know much about Apple obviously. Any help at all is greatly appreciated!

    No one needs MacKeeper
    If you still have problems after removing MacKeeper, I suggest you download and install EtreCheck from http://etresoft.com/etrecheck
    Run EtreCheck and publish report here
    Allan

  • Finder requires password to delete files, Trash does not show deleted files. Please help me resolve.

    Deleting folders/files causes the password pop up interface to appear, does not seem to matter where the file/folder is. After deleting, it should appear in the trash, but does not. Moving files is not affected, with the exception of moving files into Trash. This did not happen in the morning.
    Accessing ~/.Trash gives following message "The folder “.Trash” can’t be opened because you don’t have permission to see its contents." .Trash is hidden, and i can't view its permission from the Get info page.
    I am the owner of the laptop, i don't understand why this is happening. The other thread with similar problems involved a software upgrade and had problems with moving files also, whereas my MBP was okay this morning, i didn't do anything else from then till now.
    i did a ls -al ~ on the terminal, relevant lines as follows
    drwx------
    10 root  staff  
    340 Jan 18 02:09 .Trash
    compared to desktop, which i had no problems (yet, not sure)
    drwx------+
    30 Mac   staff 
    1020 Jan 18 02:08 Desktop
    i don't understand the notation, reading up about them does not clarify any more then to confuse me further.
    My user is "Mac", ~/ goes to folder "Mac"
    Please help, I have tried booting from save mode, and it is the same.

    Visit The XLab FAQs and read the FAQ on solving Trash issues. You can also try using Trash It! 5.1 to fix the problem. Or you can try this:
    Open the Terminal in the Utilities folder and paste the following at the prompt:
        sudo rm -Rf ~/.Trash
    Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.
    (Should anyone tell you this is dangerous or unnecessary, please ignore the comment.)

Maybe you are looking for