Cannot find security providers when using a security manager.

Hi all,
I've done stuff with JAAS and JSSE before, but this is the first time I've combined the two :o)
I have some code for an application server and I'm using SSL sockets in order to communicate with the outside world. These all work fine, no problems at all.
However, I want to control what code is executed on the server using the security framework. When I load my server using a security manager and custom security policy it seems that my app can no longer find the security providers.
Exception in thread "SSLServer" java.lang.RuntimeException: Could not generate DH keypair
     at com.sun.net.ssl.internal.ssl.DHKeyExchange.generateKeyPair(DHKeyExchange.java:137)
     at com.sun.net.ssl.internal.ssl.ServerHandshaker.getEphemeralDHKeys(ServerHandshaker.java:132)
     at com.sun.net.ssl.internal.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:707)
     at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:292)
     at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:253)
     at com.essar.hikesoft.server.netio.SSLConnectionServer.run(SSLConnectionServer.java:126)
     at java.lang.Thread.run(Thread.java:595)I start my app as follows:
java -Djava.security.manager -Djava.security.policy==security.policy -classpath... and I have the following lines in my security.policy file
permission java.security.SecurityPermission "insertProvider.*";
permission java.security.SecurityPermission "putProviderProperty.*";I know that the providers are defined in the java.security file, do I have to implement my own Security manager in order to load these providers? Or have I missed something else?
Am currently chewing through the docs at http://java.sun.com/j2se/1.5.0/docs/guide/security/spec/security-spec.doc6.html but any further assistance greatly appreciated!

That seems to have cured it cheers - sure I copied the double '=' from somewhere, thought it was wierd at the time.
Now to solve the odd MySQL errors :-)
Thanks for your help.

Similar Messages

  • Cannot find/see folders when using batch

    Hi,
    I am using CS3 on a VistaPremium machine.
    When I try to convert a number of JPGs to TIFs using the batch function I cannot select any folder (nor as source nor destination), when I click the button it only lists Desktop, nothing else. I have tried switching from OS to Adobe dialog (has no effect, but worth the try).
    Any suggestions? Thanks!

    Sounds like a permission/ and or folder view issue. Under what kind of account do you run? Do the folders you are trying to pick show up correctly in normal Explorer?
    Mylenium

  • I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to easily, and when it does it can never connect?

    I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to find wifi, and when it does find a wifi network it can never connect?  You think apple would have a clue how to fix it!  Because turning the wifi on and off doesn't work, resorting network settings doesn't work, even restoring phone to factory default doesn't work...

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

  • Ques;How  do you secure imail when used being used in iweb. People can mess

    How do you secure imail when used being used in iweb? People can mess w/my settings in iweb imail window.

    What is iMail?
    And what is an iWeb iMail window?
    iWeb is part of iLife 06 which is an application used to create websites hosted on .Mac.
    Are you referring to Apple's Mail application and webmail access using a browser such as Safari to access your .Mac account?
    Which people can mess with what settings? You shouldn't allow anyone else to access your Mac when logged in to your account and home folder/directory. OS X was designed for multiple users of the same Mac with each regular user having their own computer login account (with or without admin privileges) and associated home folder/directory to store and access their data and settings for their login account only.

  • The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

  • Fireforx cannot find web page when the page address is correct

    How do I solve the message that Firefox cannot find the page when the page address is correct?

    Do you want to do a Google search instead?
    You can check the <b>keyword.enabled</b> on the <b>about:config</b> page and if necessary then you can toggle this pref to true via a double-click.
    *https://support.mozilla.org/kb/Location+bar+search
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

  • I I cannot find out how I used my free Icloud storage space.

    I use a Book Mac, an IPad and an IPhone and I am not so sure HOW I syncronize among the maschines, especially fotos.
    Is everything stored in the Icloud? Does Icloud replace an Itunes-synchronization?
    How can I see how I use my Icloud space? Of the 5 GB I have 1.7 GB left but cannot find out how I used them.

    Try reading through the iCloud basics section here: http://help.apple.com/icloud/#/mmfc0efea4.

  • TS3988 i cannot find my device when i go to find my iphone

    cannot find my device when i go to find my iphone on my mac

    it sounds like you need to sync your iphone with itunes bob. can you explain how the 3 store in warrington,comes into syncing your phone?

  • Security Violation when using -link to sun APIs

    I'm interested in a work around for this irritating (but non-critical) bug:
    When I create application docs that -link to the sun APIs, moving from my Javadoc pages to the sun API pages causes a browser security violation:
    Line: 13
    Error: Access is denied.
    The offending function is:
    function asd()
    parent.document.title="Object (Java 2 Platform SE v1.4.0)";
    You see, from my application, the 'parent' domain isn't java.sun.com.
    Only programmers see this in any significant way (with a debug dialog box popping up.) Others just see 'done with errors on page.'
    Can this get fixed? How? When?
    Thanks,
    F. Randall Farmer
    State Software, Inc.

    This is a known bug:
    http://developer.java.sun.com/developer/bugParade/bugs/4645058.html
    We hope to fix this for 1.4.2, but cannot guarantee it.
    The purpose of this Javascript is when using frames, it puts the
    name of the class in the window title. This enables you to
    not only see the name of the class when the window is open,
    but also see the name of the class when the window is
    minimized and appears on the Windows task bar.
    In the example shown, "Object" is the name of the class.
    The bug might be due to the fact that the <SCRIPT>
    element is neither in the <HEAD> nor in the <BODY>,
    but between them.
    -Doug Kramer
    Javadoc team

  • Need a secure network when using iPad

    I have a iMac with an airport extreme card built in. I use a Westell 7500 DSL modem to connect to the internet. The modem has wireless capability. I can establish a wireless network using airport. I went into network preferences and set up WPA2 Personal security and entered a password under the network I am using, but the network is not password secured. When turning on aiport on the iPad, I join my network without having to enter a password.  I want to have to enter the password on my ipad when using this network so I am sure others in the area will have to know the password to have access to my network.
    Thank you

    According to the information you provided, you want to add a security password to secure your network.
    Your wireless network is created on your Westell 7500. So if you want to add a password to secure your network, you have to add it on the router settings, not on the iMac settings. If you're not sure how to do that, you have to contact your ISP (internet service provider) for further assistance.

  • When i used to download a game i use to have to click to allow certain downloads. now i cannot find the bar. it used to appear at the top of the screen

    when i used to download a game or a programme i use to have a tab that used to ask if i allow the programme or an extension to download. now i cannot find it any more with the new firefox. can you tell me where to look?

    You can check if you see a download action for that file tab in Tools > Options > Applications
    You can delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • IPhoto cannot find photo.  when i press the find button.

    The thumpnail of the photo is displayed.  When I try to select the photo it says file cannot be found.  I select the button to find photo.  Navigate to the new location of the photo.  But the files are all greyed out.  Cannot select the jpg file.
    The file is valid.  i checked the user privilages and they are read and write for everyone.  The file opens fine in Prview.
    What is wrong with I-PHOTO?
    Thanks for any help.

    The thumpnail of the photo is displayed.  When I try to select the photo it says file cannot be found.
    Is this the alert you get?
    That's an indication that at the time those photos were imported the library was being run as a "referenced" library.  Unless you can use the Find Photo button to find the photo on your Mac to relink it they are gone.
    Download  Find Any File and use it to search for some of the image files that give that warning message. FAF can search areas that Spotlight can't like invisible folders and packages and if the full sized source files are on the hard drive FAF will find them. 
    OT

  • Security exception when trying to start Managed Server

    Hi all,
    First I configured a Adminisistration server and started it. After that I added
    a another server as ManagedServer.These two points to the same Weblogic server.
    When I try to start Managed server by running the script, it gave me following
    error.
    <Jun 25, 2001 5:25:11 PM GMT+06:00> <Emergency> <Server> <Unable to initialize
    the server: 'Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: java.security.acl.NotOwnerException
    java.lang.IllegalAccessError: java.security.acl.NotOwnerException
         at weblogic.security.acl.Realm.getRealm(Realm.java:91)
         at weblogic.security.acl.Realm.getRealm(Realm.java:36)
         at weblogic.security.acl.Realm.authenticate(Realm.java:183)
         at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
         at weblogic.security.acl.internal.Security.authenticate(Security.java:116)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushUser(WLInitialContextFactoryDelegate.java:444)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:287)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:259)
         at weblogic.jndi.Environment.getContext(Environment.java:135)
         at weblogic.jndi.Environment.getInitialContext(Environment.java:118)
         at weblogic.management.Admin.initializeRemoteAdminHome(Admin.java:891)
         at weblogic.management.Admin.start(Admin.java:305)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:331)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
         at weblogic.Server.main(Server.java:35)
    I suspect reason for this might be weblogic.policy file. There you need to edit
    some lines replacing the location of the directory in which you installed WebLogic
    Server. I did this but still error occurs.
    Do u have any idea why above error occurs and if it is due to the weblogic.policy
    file entry please tell me how it correctly done.
    I am using WL60(sp2)in Win NT,
    My installed dir: E:\bea\wlserver6.0\
    Thanks
    Nalika

    I don't believe that you can use the same server definitions for both an admin server and a managed server. So, you'll need to create a second server that is your managed server with a different name or
    just run with the admin server.
    Paul
    On 25 Jun 2001 04:43:22 -0800, "Nalika" <[email protected]> wrote:
    >
    Hi all,
    First I configured a Adminisistration server and started it. After that I added
    a another server as ManagedServer.These two points to the same Weblogic server.
    When I try to start Managed server by running the script, it gave me following
    error.
    <Jun 25, 2001 5:25:11 PM GMT+06:00> <Emergency> <Server> <Unable to initialize
    the server: 'Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: java.security.acl.NotOwnerException
    java.lang.IllegalAccessError: java.security.acl.NotOwnerException
         at weblogic.security.acl.Realm.getRealm(Realm.java:91)
         at weblogic.security.acl.Realm.getRealm(Realm.java:36)
         at weblogic.security.acl.Realm.authenticate(Realm.java:183)
         at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
         at weblogic.security.acl.internal.Security.authenticate(Security.java:116)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushUser(WLInitialContextFactoryDelegate.java:444)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:287)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:259)
         at weblogic.jndi.Environment.getContext(Environment.java:135)
         at weblogic.jndi.Environment.getInitialContext(Environment.java:118)
         at weblogic.management.Admin.initializeRemoteAdminHome(Admin.java:891)
         at weblogic.management.Admin.start(Admin.java:305)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:331)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
         at weblogic.Server.main(Server.java:35)
    I suspect reason for this might be weblogic.policy file. There you need to edit
    some lines replacing the location of the directory in which you installed WebLogic
    Server. I did this but still error occurs.
    Do u have any idea why above error occurs and if it is due to the weblogic.policy
    file entry please tell me how it correctly done.
    I am using WL60(sp2)in Win NT,
    My installed dir: E:\bea\wlserver6.0\
    Thanks
    Nalika

  • Cannot find entry 'SOAP_DOC_LITERAL' when import PublicReportService wsdl

    Hi,
    when i when import PublicReportService_v11.wsdl from BIP 10.1.3.4.2, i get the following error msg:
    Cannot find entry 'SOAP_DOC_LITERAL' in the bounded picklist for the field 'Protocol' in integration component 'Repository Port'(SBL-EAI-
    04401)
    I want to integrate BI publisher for Siebel 8.1.1.6 to generate a report.
    I followed the following references:
    http://docs.oracle.com/cd/E14004_01/books/Reports/ReportsIntegrate6.html#wp575974
    http://siebel-essentials.blogspot.com/2010/01/siebel-811x-and-bi-publisher-part-1.html#axzz1vaWerxQa
    Thanks

    Hi, WSeibel
    I followed the steps Doc ID 1076412.1,
    it said
    This problem was solved after defining in the Mobile Client view -> field "Language(s)" the language ENU and the other one being used.
    Then the database was re-extracted and it was possible to import the WSDL in the local database using Tools.
    but my issue is not solved well.
    I decide to reinstall Siebel Tools now, and have a try again.
    Thanks,
    Zhaoqiang

  • Cannot find java.exe when executing Sun Java Enterprise 8.1

    I downloaded and installed Sun Java Enterprise 8.1 (actually because I kept getting not enough space messages I downloaded it in 3 parts). When attempting to execute by clicking on the icon I keep getting a message saying "cannot find java.exe". I previously installed the java runtime successfully. Is anyone familiar with this and if so how do I get around it. I am running Win2k SP4 on a laptop. Thank you for any insight you can provide.

    Hi,
    I faced same problem. I had jdk 1.5.0_05 installed on C: drive directly. But When I check the log though the installation found the version it was assuming it to be at 'C:\Program Files\Java' so even after finding the installed JDK it was failing. When I copied the JDK at 'C:\Program Files\Java' and then uninstalled and reinstalled the Sun java studio 8 again, at this time it asked me about which JDK to use! Then there I could point to C:\jdk1.5.0_05. Then everything went through fine. I guess this is some problem in installation code. Try this out.

Maybe you are looking for

  • APE 9.0; Unable to open new project.

    I cannot open a new project in APE 9.0; If using the tab on the welcome page, I cannot enter a name; if using the file menu, I can enter a name, but the OK button is non-responsive. Any suggestions?

  • SNOTE 2.0

    The new version of the SNOTE 2.0 can incorporte changes to interfaces also.. as in interface of a function module. But at the customer end , this particular note cannot be applied cause he in lower version of SAP note assistant. Can a customer update

  • Question on regex Matcher (group number)

    HI, everybody I am writing a program on replacement like the one below. String regex = "(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)"; String original = "ABCDEFGHIJKL"; String replacement = "$12"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(ori

  • Keep Item in Dock

    Hi Community, I read the Thread "Keep Item and Delete Item in Dock" but I didn't found a solution how I can integrate a similar feature in my Apple Script. I have a script with an if then else directive and my goal is that the Automator program icon

  • Speech Analysis to Clip markers?

    In an hour interview, I usually manually make cuts and rename the clips giving me a basic description what the person is talking about when creating a string-out. Im curious, is there anyway to get the Speech Analysis meta data in every detected word