CAC applet unable to find acpkcs211.dll

I'm required to develop an applet that can call the ActivClient dll to read a CAC smartcard.
I have a working console version that works perfectly as it references a locally stored config file with the following:
name = myConfig
library = C:\Windows\System32\acpkcs211.dll
but in the applet implementation that config file wouldn't exist on each of the clients.  The actual DLL of course would be required to. 
I'm not much of a java or applet developer. Was handed the working console code and told to make an applet that worked.
How do I access the dll from the signed, Java 1.7, Permissions: all-permissions applet?  I tried the following:
String configName = "name = myConfig"+System.getProperty("line.separator")+"library = C:\\Windows\\System32\\acpkcs211.dll";
acProvider = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(acProvider);
Start of CACActivApplet
java.security.ProviderException: Error parsing configuration
    at sun.security.pkcs11.Config.getConfig(Config.java:88)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:128)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
    at CACReader.CACReaderActivClient.<init>(CACReaderActivClient.java:91)
    at CACActivApplet.init(CACActivApplet.java:54)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: name = myConfig
library = acpkcs211.dll (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileInputStream.open(Native Method)
I'm launching it from an SSL'd webserver with the following html.
<body>
<applet id="CACApplet" code = "CACActivApplet"
    archive = "CACApplet.jar"
    width = 725
    height = 300>
    <param name="permissions" value="all-permissions" />
</applet>
</body>
Thanks in advance

There is one problem I see here.  You are supposed to pass config file name with full path to  constructor of  sun.security.pkcs11.SunPKCS11 .
For example:
String configName = "c:/MyDir/pkcs11.cfg";
Provider p = new sun.security.pkcs11.SunPKCS11(configName);
Security.addProvider(p);
Where  pkcs11.cfg content will be this
name = myConfig
library = C:\Windows\System32\acpkcs211.dll
Please refer the following page for more deatils : Java PKCS#11 Reference Guide
Thanks,
Raghu Nair

Similar Messages

  • Unable to find framedyn.dll

    When trying to compile an FPGA on cRIO, a window with the following message popped up: unable to find framedyn.dll.  How can I resolve this and compile the VI?

    RKING wrote:
    NI Support solved this problem.  There is a MS KB for this one.  I will remove it from the discussion board.
    Here's a better idea:
    This thread needs to remain so others will also find the solution in the future.
    You should post a real link to the KB article that solved the problem.
    LabVIEW Champion . Do more with less code and in less time .

  • Unable to find framedyn.dll when compiling VI for fpga

    When trying to compile an FPGA on cRIO, a window with the following message popped up: unable to find framedyn.dll.  How can I resolve this and compile the VI?

    I just had this problem and NI Help was able to solve the issue.  It is actually a windoze enviroment variable problem. 
    See http://support.microsoft.com/kb/319114
    regards
    MDDAve
    CLA
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Unable to find jvm.dll problem

    Hi,
    The problem is how to let windows know the jvm.dll is located at c:\jdk1.3\jre\bin\classic. When I execute invoke.exe, it will say unable to create JVM, bcoz jvm.dll not found.
    If I copy the invoke.exe in c:\jdk1.3\jre\bin\classic, it is working fine, able to find jvm.dll
    Thank you

    I try to add PATH toc:\jdk1.3\jre\bin\classic, but it doesn't work.
    I did not put jvm.dll. But,Don't know why, suddenly it work. May be while compiling, I add jvm.dll directory in source files dir, header file dir, library file dir, executable file dir. I am not sure.
    Thank you very much.

  • Unable to find ZENAUTIL.DLL

    Hi
    Some of our workstations (mainly XP) are facing following problem after installing and or upgrading to ZfD Agent 4.0
    and or 4.0.1
    During startup i get an error "Unable to load zenautil.dll
    I can regenerate the error by trying to start the service "Novell Zfd Remote Management"
    I checked TID10076950 but the environment contains the correct path "c:\Program Files\Novell\Zenworks"
    I can start "wmsched" via the Start -> Run as mentioned in another thread (zenautil.dll (TID not working)) to
    doublecheck if the path var s working.
    The file "zenautil.dll" is present in dir "c:\Program Files\Novell\Zenworks\RemoteManagement\RMAgent\"
    After checking the logfiles "c:\Program Files\Novell\Zenworks\RemoteManagement\RMAgent\RME rrorLog1.txt"
    I could fix the problem on some clients (some where missing a value in the registry)
    "Critical : Failed to open HKLM\Software\Novell\ZENWorks\InstallPath"
    But there are still a few I can't fix. and their logs telling me this
    Normal : Resource DLL is successfully loaded
    Normal : Loading : C:\Program Files\Novell\ZENworks\ZenLite.dll
    Critical : ZENNDSUtil: Failed to load C:\Program Files\Novell\ZENworks\ZenLite.dll. Error: 126
    Critical : LoadZenAutilLibraryAndGetProc : LoadZenLibraries() Failed !!!
    Normal : ZenRem32.exe : ZenRem32ServiceMain() Failed to load one of the ZenAutil.dll and its dependent DLLs
    Zenlite.dll is present at "C:\Program Files\Novell\ZENworks\ZenLite.dll" it is the correct version and
    there are no duplicates present
    Any Ideas?

    Dave,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Unable to find a DLL packaged in an ANE on Win XP

    I'm working on an ANE for Windows to expose some functionality for a 3rd party library. I've successfully built and packaged the extension in an appropriate .ane file. I've also made a simple test application that I've packaged with the native extension. The problem I'm hitting is that when I run the application, I receive an error that it can't find the 3rd party library DLL. I've verified that the 3rd party DLL resides in the native extension archive so I'm pretty confident that I have properly packaged the native extension.
    If I copy the 3rd party DLL to the app's executable directory, the application will run and my extension DLL works just fine. My first thought is that it's possibly an issue with the 3rd party library not being in a runtime path that windows searches to load DLLs. However, if that's the case, I'm a little confused as to why the application would be able to find my extension DLL but not the 3rd party DLL as they reside in the same directory. Anyone have any thoughts or hints as to what I'm doing wrong?
    Thanks so much,
    Josh

    Hi,
    were did you get your download from?
    prerequisites are here on SDN:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/sap web as java 6.40 system requirements.htm
    > - Can some body pass me installation help /guide
    All you need to know is on the dowloadsite of sdn.
    > - Is a database also a prerequisite before I can
    > install WAS (Only SQLServer or can i use something
    > else)
    a database is installed with the system.
    Regards,
    Benny

  • Unable to find Microsoft.Office.Server.Search.dll

    I am trying to develop a SharePoint Search Server application to run Queries through Console Application.
    I need a reference to Microsoft.Office.Server.Search.dll for this to work. I tried looking for this DLL in list of Assemblies in "Add Reference" Modal. Also, based on MSDN article below, have also looked at 
    %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI
    MSDN Arcticle: http://msdn.microsoft.com/en-us/library/office/jj163300%28v=office.15%29.aspx
    I am unable to find this dll in either place. Where else can I look for this DLL? Is this something we need to download?
    Thanks!

    Found the solution. 
    %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI 
    was taking me to 
    C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI
    Instead of 
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI
    Edit: Using %ProgramFiles% from Start>Run works fine and takes to C:\Program Files. Though using this path from Visual Studio causes this confusion. 

  • Nmew32rg.dll - Unable to find EM location in the registry : RegQueryValue f

    Hi All,
    I am getting below error while installing companions "10203_vista_w2k8_x86_production_companion.zip" (32-bit) (HTTP server) on Windows 2008 sp2 64-bit machine.
    .....CALL INTO REGISTRY.....
    DLL TO LOAD = \nmew32rg.dll
    DLL LOADED
    Unable to find EM location in the registry : RegQueryValue failed
    REGISTRY VALUE = nullThis happens only if I do installation from command line by using response file. From OUI interactive installer it is being installed properly.
    ORACLE_HOME (db) = C:\oracle\Database\oracleDB\
    ORACLE_HOME=C:\oracle\Database\oracleDB\OHS
    Companion disk:           C:\oracle\Oracle10g\companion
    Modified response file:   C:\oracle\Oracle10g\companion\oracle.companionCD.midtier.rsp
    Command to install:
    "C:\oracle\Oracle10g\companion\install\oui.exe" -silent -nowait -force -waitforcompletion FROM_LOCATION="C:\oracle\Oracle10g\companion\stage\products.xml" ORACLE_HOME=C:\oracle\Database\oracleDB\OHS ORACLE_HOME_NAME=oracle_10gOHSHome -responseFile C:\oracle\Oracle10g\companion\oracle.companionCD.midtier.rspThe machine already has "10204_vista_w2k8_x64_production_db.zip" database installed.
    Can you please suggest what additional things I need to take care to install companions using response file?

    Thanks Werner for reply !! I was really looking for any reply of my thread.
    I think it is useless to mention because something I did which is not supported,
    1. I installed "10204_vista_w2k8_x64_production_db.zip" database on w2k8 sp2 (64-bit) machine which is supported DB version for w2k8 environment.
    2. Companions are available for w2k8 64 bit but HTTP server is not there. It is only available in "10203_vista_w2k8_x86_production_companion.zip". This is a x86 (32-bit) setup and while doing interactive mode installation it is passing all prereq checks on x64 and not showing me any information to not to use this setup for x64. Also, it works fine after installation but not working in command-line installation.
    One last question,
    Will Oracle provide support on fixing this issue if I contact them or raise SR ?

  • Unable to find an entry point named 'imaqCreat​eImage' in DLL ...

    Firstly some background:
    Using Microsoft's managed extensibility framework (MEF), I've created a "Test Tool" framework which accepts plugins. The plugins are generally HW drivers with UIs. I created a NI Vision plugin  which does camera discovery, acquisition and image processing. All functionality is exposed via a UI and public methods. The  "Test Tool" framework shows the plugin UIs in docking panels (same VS docking panels) and provides a scripting interface for the plugin's public methods. 
    Ok, now the problem:
    At runtime for the "Test Tool" framework and plugin I get "Unable to find an entry point named 'imaqCreateImage' in DLL ...". After a quick debug: the exception is thrown when instantiating the Imageviewer control in NI Vision plugin UI.
    I created a plugin test environment which simply references the plugin and adds the plugin's UI to a form. This works correctly at runtime.
    In addition, if I remove the  Imageviewer controls from the plugin, it works correctly at runtime in the "Test Tool" framework.

    Have you tried ensuring that the DLL function is actually being exported? You might check out some other forums as this problem has more to do with calling our DLL than the DLL its self. I've found a few other instances of this issue on external forums but I couldn't find any internal resources as you're doing something outside the scope of the intended functionality.
    http://stackoverflow.com/questions/653178/unable-t​o-find-an-entry-point-named-function-in-dll-c-to-c​...
    http://stackoverflow.com/questions/13882304/unable​-to-find-an-entry-point-named
    Rob B
    FlexRIO Product Manager

  • Unable to find an entry point named 'OpsPrmAllocValCtx' in DLL 'OraOps10.dl

    .NET 2 (c#) Standalone application is failed to run on clean computer with subj
    application compiled on VisualStudio 2005
    installed Software:
    .NET 2 redistribution
    ODAC10202Beta.exe
    The same application built with VS 2003 .NET 1 and installed ODAC101040.exe
    works fine.
    Thanks for any advice.

    I tried the suggestion above using the MS GAC tool and I still have the problem so I am looking for any other suggestions or thoughts as to what could be wrong:
    gacutil.exe /i "C:\Oracle\oracle\product\10.2.0\client_1\odp.net\PublisherPolicy\1.x\Policy.9.2.Oracle.DataAccess.dll"
    gacutil.exe /i "C:\Oracle\oracle\product\10.2.0\client_1\odp.net\PublisherPolicy\1.x\Policy.10.1.Oracle.DataAccess.dll"
    gacutil.exe /i "C:\Oracle\oracle\product\10.2.0\client_1\odp.net\PublisherPolicy\1.x\Policy.10.2.Oracle.DataAccess.dll"
    gacutil.exe /i "C:\Oracle\oracle\product\10.2.0\client_1\odp.net\bin\1.x\Oracle.DataAccess.dll"
    gacutil.exe /i "C:\Oracle\oracle\product\10.2.0\client_1\odp.net\bin\2.x\Oracle.DataAccess.dll"
    I used gacutil.exe out of "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" and each insert said it was successful.
    The specific error I am getting in VS2008 with SP1 is: _getContextXml:Unable to find an entry point named 'OpsPrmAllocValCtx' in DLL 'OraOps10.dll' in a .NET 2.x project.
    I used dependency walker and looked at both OraOps10.dll (version 1.102.2.20) and OraOps10w.dll (version 2.102.2.20) and the function OpsPrmAllocValCtx isn't in either one of them. I looked at other users machines who aren't having this problem and they have the same Oracle DLLs from the same install that I do too so I am scratching my head trying to figure out what is wrong here and would appreciate any help - and thanks in advance.

  • ERROR "Unable to find an entry point named OCIEnvCreate in DLL"

    Hi, I´am developing an ASP.net app, I have worked with asp.net and oracle before, but in this time im getting this error: "Unable to find an entry point named OCIEnvCreate in DLL" the oracle91 folder has read priveleges, I have installed ODP.net, and I keep getting this error, what can I do. Im using framework 1.1. thxs

    The "Authenticated Users" group should have "Read & Execute" on the %ORACLE_HOME% folder and below. Can you verify if this is the case?
    - Mark
    ===================================================
    Mark A. Williams
    Oracle DBA
    Author, Professional .NET Oracle Programming
    http://www.apress.com/book/bookDisplay.html?bID=378

  • Unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'

    hi
    i am getting this below error
    unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'

    Hi Damodar,
    >>unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'
    Before going further, which operating system this error occurred to? Besides, would you please also describe under what circumstances this error happened?
    Here, if this error happened on Windows Server 2008, we can try to install the following hotfix to see if it can solve the issue.
    Group Policy Preferences client-side extension hotfix rollup for Windows Server 2008
    https://support.microsoft.com/kb/2414013?wa=wsignin1.0
    If this error happened on Windows XP, Windows Server 2003, or Windows Vista, we can try to install the following hotfix to see if it can solve the issue.
    Group Policy Preferences Client-Side Extension Hotfix Rollup
    http://support.microsoft.com/kb/974266
    Best regards,
    Frank Shen

  • Photoshop unable to find Java script plugin

    Since the last ACR update to PSCS6, I am unable to browse in Bridge or Mini Bridge and I get the error message "Could not complete the Browse in Bridge Command because Photoshop was unable to find the JavaScript plugin". When I try to open mini bridge, it will open but there is the error message: "Could not complete the command because the extension could not be loaded". I have tried a system restore and read all of the posts related to this error but no one seems to come up with an answer. I tried pasting the .dll files recommended in another post but that did not help. I tried the suggestion to run PS as an administrator but that did not work. I have searched the web, many people have this problem but very few answers, as per usual with Adobe. Using PSCS6 x64 with Windows7x64. Need help!

    My mind reading abilities are a bit fuzzy today.
    I can't seem to read what version of Photoshop, what computer, what OS you are using?

  • Unable to load OraOps10w.dll

    Hi All,
    I am using VS 2005 and trying to connect to an oracle database. My Oracle Client version is 10.2.0.1.0.
    I am getting the error Unable to load OraOps10w.dll. I checked in the Bin directory of the Oracle client and i could find only OraOps10.dll.
    So what is OraOps10w.dll? Where could i get it? Do i need to install any other version of Oracle Client. Please advise.
    Thanks,
    Karthick.

    OraOps10w.dll is the unmanaged dll for 2.x ODP.NET, which was introduced in 10.2.0.2.20. To resolve this, you should be able to just add [10.2.0.2.20 ODAC|http://www.oracle.com/technology/software/tech/windows/odpnet/index.html] into your existing 10201 client home.
    Hope it helps,
    Greg

  • Essbase Error : Unable to load the dll essapinu.dll.

    Hi Guys,
    I have imported a essbase cube in the OBIEE. The import went fine, then i made the logical model and presentation layer. Now when i am selecting column from that cube in BI answers, i am getting this error:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. The specified module could not be found. [nQSError: 36001] Unable to load the dll essapinu.dll. (HY000)*
    Any idea how to solve this. BTW the installation of essbase server went fine and also this dll is present in the hyperion server directory.
    Thanks in Advance

    hi,
    check this blog...
    it refers to essbase...maybe he/she know more...
    http://www.rittmanmead.com/2009/07/27/oracle-bi-ee-10-1-3-4-1-essbase-connectivity-repository-design-enabling-drills-on-evaluate-columns-part-1/
    Check with google and in others blogs..you may find something useful
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

Maybe you are looking for

  • Not able to use my money

    In iTunes I have an account balance that I am not able to use. I tried to buy different items and it wont allow it, but I can buy "FREE" ones. Is there a min amount that I am requaired to have in my account? OR is there some other reason why I am not

  • How to send a request parameter to a dialog pages with jsf

    I'm using the dialog framework of oracle, java server faces....... I need to open a url on a dialog page(request scope), and I must to pass request parameters. I put <f:param> objects inside the commandLink who I click..... If the page is not dialog,

  • Error msg appearing while downloading Excel sheet in Pivot table format!!

    Hi All, I received this error when the report outputted. I had to click okay twice, then the report populated correctly. "Unable to get the Pivotfields property of the Pivot table class" was the error message that i got. FORM start_excel .   TYPES:  

  • Adding weeknumbers in sales orders & purchase order in orderlines

    User functionality Add weeknumbers on row level in order to communicate to customers in documents especially for external documents ie delivery week in stead of delivery date

  • Lookup attched to Gauge pointer... not quite working right

    Need your help please.  I have a very simple data set.  Looks like this: Status               Count              Percentage Compliant          50                   50 Non-Compliant   15                   15 Unknown           35                   35 I