Sun PKCS11 Provider - charset of configuration

Hi,
I have problem with configuring Sun PKCS11 Provider. When I have czech char in path to the nssSecmodDirectory it fails to initialize the provider. The exception is
Exception in thread "main" java.security.ProviderException: Could not initialize NSS
     at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:183)
     at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:90)
     at cz.mathan.multisignature.example.TestNSS.main(TestNSS.java:51)
Caused by: java.io.IOException: NSS initialization failed
     at sun.security.pkcs11.Secmod.initialize(Secmod.java:199)
     at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:179)
     ... 2 more
Do you know how to solve this problem?
Thanks
Lucie

@see this link:
http://forum.java.sun.com/thread.jspa?messageID=10308914

Similar Messages

  • Problem in accessing 2 certificates in smart card using Sun PKCS11 Provider

    I have stored 2 certificates in iKey. To acess and use them in Java I am using Sun PKCS11 Provider.
    The program is .
    1. The keyStore.aliases() is returning 1 alias only(instead of 2).
    2. Throwing following error when accessing the private key using
    code: PrivateKey pvt = keyStore.getKey(alias, null);
    Error Message Detail:
    "KeyStoreException: invalid KeyStore state: found 2 private keys sharing CKA_ID 0x00"
    at Sun .. P11KeyStore.getTokenObject(P11KeyStore.java:2135)
    at ...P11KeyStore.engineGetKey(P11KeyStore.java:292

    Did you look at this, Does it help you, Since no one has answered all day, and I will assume you searched for that error first, perhaps you could provide some more detail?
    http://forum.java.sun.com/thread.jspa?threadID=5195275&tstart=15
    Message was edited by:
    mdares

  • Using pkcs11 provider

    hi to all
    i'm trying to develope an applet to sign documents using my smart card. This card use incryptoki2.dll driver.
    When i try to execute this code:
    Signature signatureAlgorithm =
             Signature.getInstance(DIGITAL_SIGNATURE_ALGORITHM_NAME);
    signatureAlgorithm.initSign(aPrivateKey);
    -> signatureAlgorithm.update(aDocument);where DIGITAL_SIGNATURE_ALGORITHM_NAME = SHA1withRSA, I get a SignatureException. The error message i CKR_FUNCTION_NOT_SUPPORTED. I can't understand if the problem is located in the incryptoki2.dll, that not support such function, or depends on my code
    Could someone help me?

    You will get the
    CKR_FUNCTION_NOT_SUPPORTED
    if you do not login to the token.
    Please see the following thread.
    http://forum.java.sun.com/thread.jspa?threadID=572349
    Can you use Lolo's code to sign ?
    I am having some trouble creating a PKCS7 MIME message but this problem is different.
    That forum is at
    http://forum.java.sun.com/thread.jspa?threadID=751296
    If you do not know your certificates Alias try the following
    java.security.Provider oProvider = new sun.security.pkcs11.SunPKCS11(configName);
    Security.addProvider(oProvider);
    KeyStore oKeyStoreToken = KeyStore.getInstance("PKCS11");
    java.security.Key oPrivateKey = null;
    java.security.cert.Certificate oPublicCertificate = null;
    oKeyStoreToken.load(null, "1234".toCharArray());
    System.out.println("Loaded");
    for(Enumeration oEnum = oKeyStoreToken.aliases() ; oEnum.hasMoreElements();){
      String sAlias = (String) oEnum.nextElement();
      System.out.println("Alias : " + sAlias);
    }If you have any questions just post another reply :)
    I will post code to create a SMIME ASAFIO (As soon as I figure it out ;) )
    I can do it at the moment with a key from disk but I am having some trouble using the SMIME generators from the Bouncy Castle provider with keys from the sun PKCS11 provider.
    ** Phill **

  • Error "java.lang.NoClassDefFoundError: sun/security/provider/Sun" in 10.1.2

    Hi,
    I developed an ADF UIX application in JDeveloper 10.1.2. It works fine when I run on embedded oc4j in my machine.
    I deployed it to Oracle Application Server 10g in AIX. When I run the application from the Application Server and try to open a uix page with data I get the following error:
    500 Internal Server Error
    java.lang.NoClassDefFoundError: sun/security/provider/Sun     at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:280)     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:482)     at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)     at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java(Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:58)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:47)     at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java(Inlined Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:536)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)     at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)     at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java(Compiled Code))     at java.lang.Thread.run(Thread.java:568)
    Can anybody tell/help why I am getting this error?
    Thanks
    Syed

    I believe this counts to be a bug in adf. I met with such errors as well in migration 1012 from NT to AIX platform, and after decompiling adf jar code and tak a look at it, the following code block indicates that In class- oracle.jbo.client.Configuration
    , it is hard coded to get secure provider- sun/security/provider/Sun, as listed below...
    import sun.security.provider.Sun;
    static void checkSecurityProviders()
    Provider aprovider[] = Security.getProviders();
    boolean flag = false;
    for(int i = 0; i < aprovider.length; i++)
    if(!aprovider.getName().equals("SUN"))
    continue;
    flag = true;
    break;
    if(!flag)
    try
    Sun sun = new Sun();
    Security.addProvider(sun);
    catch(Exception exception)
    exception.printStackTrace();
    Adam

  • Problem loading the Firefox PKCS11 provider

    I'm trying to load the Firefox PKCS11 provider (softokn3.dll), but I always get the following error:
    Exception in thread "main" java.security.ProviderException: Initialization failed
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:340)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:86)
    at javapkcs11test.Main.main(Main.java:24)
    Caused by: java.io.IOException: The specified module could not be found.
    C:\Program Files\Mozilla Firefox\softokn3.dll
    at sun.security.pkcs11.wrapper.PKCS11.connect(Native Method)
    at sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:141)
    at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:154)
    at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:281)
    ... 2 more
    I've already read this thread [http://forums.sun.com/thread.jspa?threadID=5298971] which handles the same problem, but there was no solution provided that helped me.
    My code is the following:
    String configName = "c:/pkcs11.config";
            Provider p = new sun.security.pkcs11.SunPKCS11(configName);
            Security.addProvider(p);and my pkcs11.config looks like this:
    name=NSSSoftToken
    slot=2
    #nssLibraryDirectory = C:\\Program Files\\Mozilla Firefox\\
    #nssSecmodDirectory = "C:\\Documents and Settings\\sdm\\Application Data\\Mozilla\\Firefox\\Profiles\\tjx04kze.default"
    #nssModule = fips
    library=C:\Program Files\Mozilla Firefox\softokn3.dll
    nssArgs="configDir='C:\\Documents and Settings\\sdm\\Application Data\\Mozilla\\Firefox\\Profiles\\tjx04kze.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"As you can see, I commented out a few lines I tried before but that also didn't work, I tried those after reading [http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#NSS]
    Can anyone tell me what the problem is? And it's not that it can't find the DLL file, because when i type a wrong path on purpose it gives me another error: "file doesn't exist".
    I really need to get this to work, because the eventual goal is to get it to work in C++, but as i'm not very familiar with C++, I first decided to try and make it work in Java, but even that doesn't work.
    Thanks in advance to anyone who wants to help me!

    I found the solution myself because of a related problem I had while trying to do the same in C++.
    The problem is that softokn3.dll needs to load most of the DLL files in the Program Files/Mozilla Firefox directory, but it can't find those because it's not looking for them there. When you copy all those DLL's to the WINDOWS/system32 folder, the error "Caused by: java.io.IOException: The specified module could not be found." doesn't occur anymore.
    To be able to read certificates from this store, change the pkcs11.config file as follows:
    name=NSSSoftToken
    slot=2
    library=C:\Program Files\Mozilla Firefox\softokn3.dll
    nssArgs="configDir='C:/Documents and Settings/sdm/Application Data/Mozilla/Firefox/Profiles/tjx04kze.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"Mind the single slash / in the configDir path! If you use double backslashes \\ it won't work!

  • The type '*', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element * could not be found

    I have a provider hosted app in sharepoint which works locally without problem. I followed this tutorial to publish it to azure
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/09/05/how-to-deploy-a-provider-hosted-app-as-an-azure-site.aspx
    However after publishing the webservice doesnt work I get this exception:
    [InvalidOperationException: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]
    System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +62739
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1429
    System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +52
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598
    [ServiceActivationException: The service '/Services/AppEventReceiver.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..]
    System.Runtime.AsyncResult.End(IAsyncResult result) +486572
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +174
    System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +345998
    System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9683593
    My web.config which I didnt touch.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=301880
    -->
    <configuration>
    <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="ClientId" value="xx-04e7-4caf-854a-89c20577d7da" />
    <add key="ClientSecret" value="ljguTvxHR+xx+Pl1IMg1Hjt5rsQ=" />
    </appSettings>
    <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <customErrors mode="Off"/>
    </system.web>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <!--Used by app for SharePoint-->
    <binding name="secureBinding">
    <security mode="Transport" />
    </binding>
    </basicHttpBinding>
    </bindings>
    <protocolMapping>
    <add binding="basicHttpBinding" scheme="https" bindingConfiguration="secureBinding" />
    </protocolMapping>
    </system.serviceModel>
    <system.webServer>
    <handlers>
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <remove name="OPTIONSVerbHandler" />
    <remove name="TRACEVerbHandler" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    </system.webServer>
    </configuration>
    and a piece of the code of the remote event receiver
    <%@ ServiceHost Language="C#" Debug="true" Service="x.IntranetWeb.Services.AppEventReceiver" CodeBehind="AppEventReceiver.svc.cs" %>
    namespace x.IntranetWeb.Services
    public class AppEventReceiver : IRemoteEventService
    Follow me on Twitter
    levalencia Blog

    Hi,
    The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
    You need to make sure your namespace and service name here match your service name itself.
    For detailed information, you could refer to:
    https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
    http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
    Regards

  • Bug in 'sun.security.provider.MD5'

    I have created a non-blocking server and a blocking client using NIO and SSLEngine.
    I have put the two in an endless read/write loop, i.e
    - the client writes to the server
    - the server reads
    - the server writes to the client
    - the client reads
    and so on...
    Everything works fine for a while, the "while" being almost constant, the I get the following exception:
    Exception in thread "Thread-0" java.lang.StackOverflowError
            at sun.security.provider.MD5.implCompress(MD5.java:129)
            at sun.security.provider.MD5.implDigest(MD5.java:92)
            at sun.security.provider.DigestBase.engineDigest(DigestBase.java:169)
            at sun.security.provider.DigestBase.engineDigest(DigestBase.java:148)
            at java.security.MessageDigest$Delegate.engineDigest(MessageDigest.java:545)
            at java.security.MessageDigest.digest(MessageDigest.java:323)
            at com.sun.crypto.provider.HmacCore.b(DashoA13*..)
            at com.sun.crypto.provider.HmacMD5.engineDoFinal(DashoA13*..)
            at javax.crypto.Mac.doFinal(DashoA13*..)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:172)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:136)
            at com.sun.net.ssl.internal.ssl.EngineInputRecord.checkMAC(EngineInputRecord.java:193)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:881)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:791)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:667)
            at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
            at pt.jmdsc.coms.SSLChannel.read(SSLChannel.java:126)This seems to be a bug in the MD5 class of the provider, has anyone come across the same issue?

    Yip I did shorten the post, the last 4 lines below keep repeating
    Exception in thread "Thread-0" java.lang.StackOverflowError
            at sun.security.provider.MD5.implCompress(MD5.java:129)
            at sun.security.provider.DigestBase.engineUpdate(DigestBase.java:116)
            at java.security.MessageDigestSpi.engineUpdate(MessageDigestSpi.java:97)
            at java.security.MessageDigest$Delegate.engineUpdate(MessageDigest.java:541)
            at java.security.MessageDigest.update(MessageDigest.java:311)
            at com.sun.crypto.provider.HmacCore.a(DashoA13*..)
            at com.sun.crypto.provider.HmacMD5.engineUpdate(DashoA13*..)
            at javax.crypto.Mac.update(DashoA13*..)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:167)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:136)
            at com.sun.net.ssl.internal.ssl.EngineInputRecord.checkMAC(EngineInputRecord.java:193)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:881)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:791)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:667)
            at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
            at pt.jmdsc.coms.SSLChannel.read(SSLChannel.java:126)
            at pt.jmdsc.coms.Client.read(Client.java:92)
            at pt.jmdsc.coms.Client.write(Client.java:85)
            at pt.jmdsc.coms.Client.read(Client.java:92)
            at pt.jmdsc.coms.Client.write(Client.java:85)
            ....

  • JCE requires: java.lang.RuntimePermission requires accessClassInPackage.sun.security.provider

    I'm trying to use the JCE with JWS1.0.2. All I want to do is generate a KeyPair and I can NOT use a signed application. The code is:
    public static KeyPair genDHKeyPair() throws Exception {
    // properties...
    DHParameterSpec dhSkipParamSpec;
    dhSkipParamSpec = new      DHParameterSpec(skip1024Modulus, skip1024Base);
    KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DH");
    keyPairGenerator.initialize(dhSkipParamSpec);
    KeyPair keyPair = keyPairGenerator.generateKeyPair();
    return keyPair;
    I'm using JDK1.4. This code works fine outside of JWS.
    If I call this code I get an exception that states I need the stated RuntimePermission. IMHO this is a bug because I should be able to make use of simple standard extension methods like this. Is getting an instance of a KeyPairGenerator and generating a key pair a security risk?
    The fix for this should be a simple addition to the security policy for JWS which gives SUN javax.crypto code access to the appropriate RuntimePermission.
    Can anyone think of a reason why NOT to do this?
    Thank you.
    BTW, here's the Exception you would get if you tried this:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.provider)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
         at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1513)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:262)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
         at com.wss.calendar.client.swing.Main.main(Main.java:47)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.javaws.Launcher.executeApplication(Launcher.java:739)
         at com.sun.javaws.Launcher.executeMainClass(Launcher.java:701)
         at com.sun.javaws.Launcher.continueLaunch(Launcher.java:584)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:328)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:166)
         at com.sun.javaws.Launcher.run(Launcher.java:134)
         at java.lang.Thread.run(Thread.java:536)

    hi there,
    Please I have the same problem in an applet that uses DSA with the following call:
    pkey = (PublicKey) new DSAPublicKey(server_pub_key);
    The Exception i am having on the console is
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.provider)
    Note that I am NOT using JCE and that both netscape and IE browsers gave this error
    Can somebody help me please?
    Thanks in advance,
    JPDib

  • Why SUN not providing VM for PDA (Pocket PC)

    Why is SUN not providing VM for PDA (Pocket PC)??
    We need to use third party VMs. and most of the Vms are not free.
    Is there any VM for pocket PC which supports atleast J2SE 1.2??
    Thanks in advance

    Since there are so many different confiurations and profiles, coupled with the large number of PDA Operating Systems, sun dont bother making VM's for all of them and so leave it up to third parties to make them. Sun then verifys the VM's fulfil the micro edition virtual machine spec.
    there are also political reasons; ie. sun dosent want to make life any easier for microsoft and so are damed if theyt are going to write a VM for windows CE/XP eMbedded. If they ever do support any particular platform its probobly gonna be Palm.
    Here's a list of VM's along with technical specs.
    http://www.comp.lancs.ac.uk/computing/users/fittond/ppcjava.html
    Danny

  • See error (Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider

    hi maseter
    sir i try to user user given user password check form database
    i have two text box and one button
    i select partytable from verver side and drop in form
    then use partytabledataprovider see in sessionbeen1
    i use this code not reeor in build time but when i run project then give me error
    =================
    RowKey userRowKey = partytableDataProvider.findFirst
    (new String[] { "partytable.partyid", "partytable.title" },
    new Object[] { username.getText(), password.getText() });
    if (userRowKey == null) {
    ty.setValue("userid not right");
    else {
    ty.setValue("welcom in page");
    ===============
    ////(((((// String stid = (String) partytableDataProvider.getValue("PARTYTABLE.PARTYID");
    // ty.setValue(stid);*/
    see my error
    Exception Details: java.lang.IllegalArgumentException
    partytable.partyid
    Possible Source of Error:
    Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
    File Name: CachedRowSetDataProvider.java
    Method Name: getFieldKeyInternal
    Line Number: 481
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeyInternal(CachedRowSetDataProvider.java:481)
    com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKey(CachedRowSetDataProvider.java:439)
    com.sun.data.provider.impl.AbstractTableDataProvider.findFirst(AbstractTableDataProvider.java:143)
    logintestform.Page1.button2_action(Page1.java:442)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun
    please give me idea how i check user give username and password form table
    thank's
    aamir

    Hi ,
    Wondering if you were able to get past this issue. If not , I would suggest checking the prefix's on the metadata of the column name.
    Radhika

  • Integrate tomahawk into sun jsf ,extensionsFilter not correctly configured.

    Hi,All
    I find a issue when I integrate tomahawk 1.1.3 into sun jsf 1.1_02:
    tomcat 5.0.28
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)
    I read information about it from "http://myfaces.apache.org/tomahawk/extensionsFilter.html"
    and reconfiguration my web.xml, but don't work. my code as follow:
    <!-- web.xml> -->
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <display-name>Web Configuration Info</display-name>
    <description>Platform</description>
         <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/Config/faces-config.xml,/WEB-INF/Config/faces-managed-beans.xml,/WEB-INF/Config/faces-config-validators.xml,/WEB-INF/Config/faces-config-taglibs.xml</param-value>
    </context-param>
         <filter>
              <filter-name>ExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <filter-mapping>
         <filter-name>ExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
    </servlet>
         <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    <!-- index.jsp -->
    <%@ page session="false" contentType="text/xml;charset=utf-8"%>
    <%
    response.sendRedirect("./test/tree.jsf");
    %>
    I write web.xml reference to extensionsFilter.html, but doesn't work!
    what's make this issue?

    I think you need the following additional mapping:
        <filter-mapping>
            <filter-name>MyFacesExtensionFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>

  • Problem with SUN cryptographic provider (PKCS#11)  & EclipseRCP

    Hi all,
    We developed a java program for using cryptographic tokens, for instance,smartcards. The crypto provider from SUN offers the API (PKCS#11) and all cryptographic functions to handle smartcards. The program works as standalone application, but if we are trying to implement the program into Eclipse RCP, it will not work.
    If the program tries to call up the SUN provider constructor, it fails without an error message.
    We searched in different forums, but without any success.
    We do not have any idea to solve this problem.
    Please help us.
    private Provider addToken() throws Exception {
      String pkcs11ConfigFile = "C:\\Downloads\\pkcs11.cfg";
      Provider pkcs11Provider = new sun.security.pkcs11.SunPKCS11(pkcs11ConfigFile);
      Security.addProvider(pkcs11Provider);
      return pkcs11Provider;
    }thx

    Can I ask you one question?
    Which driver did you specify? I mean the smarcard reader driver or the smartcard itself driver?
    If the second, does it come along with the card? because as far as I know I just got the smart card but no software at all (apart the smartcard reader driver).
    Can you help me out with this?
    thanks in advance,
    Marco

  • Sun Access Manager 7.1 configuration

    I am trying to configure Sun Access Manager 7.1 update 1 on websphere 6.1.0.11 running on windows 2003 server and am getting a crypt error on SunJCE. Any suggestions on how to fix this?
    The thread dump looks like this
    05/16/2008 11:22:00:509 AM EDT: Thread[WebContainer : 2,5,main]
    05/16/2008 11:22:00:509 AM EDT: Thread[WebContainer : 2,5,main]ERROR: Crypt: failed to set password-based key
    java.security.NoSuchProviderException: no such provider: SunJCE
    at sun.security.jca.GetInstance.getService(GetInstance.java:82)
    at javax.crypto.b.a(Unknown Source)
    at javax.crypto.SecretKeyFactory.getInstance(Unknown Source)
    at com.iplanet.services.util.JCEEncryption.setPassword(JCEEncryption.java:377)
    at com.iplanet.services.util.Crypt.createInstance(Crypt.java:139)
    at com.iplanet.services.util.Crypt.<clinit>(Crypt.java:103)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
    at com.sun.identity.setup.ServicesDefaultValues.validatePassword(ServicesDefaultValues.java:396)
    at com.sun.identity.setup.ServicesDefaultValues.setServiceConfigValues(ServicesDefaultValues.java:107)
    at com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:307)
    at com.ibm._jsp._configurator._jspService(_configurator.java:221)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:89)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    05/16/2008 11:22:00:509 AM EDT: Thread[WebContainer : 2,5,main]ERROR: JCEEncryption:: not yet initialized

    Have you followed the release notes instructions? There is one specifically about changing JCE:
    http://docs.sun.com/app/docs/doc/819-5899/gdpsl?a=view
    http://docs.sun.com/app/docs/doc/819-4683/gfvfl?a=view
    http://docs.sun.com/app/docs/doc/819-5899/gdxas?a=view
    shivaram

  • Sun JAVA ES on SuSE - configuration failed

    Documentation for Sun JAVA ES says it is supported on RedHat. What are the chances that SuSE will also be supported.
    I attempted to install Sun JAVA ES on OpenSuSE 10.1. Taking one step at a time I installed the the Web Server and JavaDB The installation appeared to go fine but the configurations failed:
    Installation Summary Report
    Install Summary
    Java Enterprise System 5 : Installed
    Sun Java(TM) System Web Server 7.0 : Installed, Configuration Failed
    Java DB : Installed, Configure After Install
    Could someone tell me where I start to look to troubleshoot why the Configuration failed.
    Thanks

    John,
    it looks like TID 7007653 - if you are wondering why you couldn't find
    it, it's because the TID did not mention the specific error, I had to
    hunt through bugzilla to find it. I have (as I hope you can see)
    updated the TID so that others should be able to find it without having
    to go through your pain...
    Shaun Pond

  • Hey y sun donot provide JDK 1.4.2.06 for downloads

    i wanted to download JDK 1.4.2.06 and i was searching java.sun.com since morning. its not showing the download of the exact version. always i end up in
    J2SE 1.4.2_13.
    can any one provide me the link to download the exact version???
    plsss.....

    Hmm, it must be hidden again.
    In the blue bar above, click downloads, select previous releases, and select archived releases.

Maybe you are looking for

  • How to delete a specific request from ODS

    Hi all, We have an ODS which we're loading invoices from legacy system. In legacy system, there are two tables for invoices. First one is daily records which is archived on last day of each month. As you guess, second table is  for archive records. W

  • ITunes 7.0.1.8 totally freezes when iPod connected

    I installed iTunes 7.0.1.8 a few days ago, and today I'm having huge problems with it. Just yesterday I managed to upload a large set of videos to my iPod, and today, if I run iTunes without my iPod connected, I have no problems. However, when I plug

  • Problem aboue error font in workstation.

    Hello everybody.Today I discovered that when I manual duplex a PDF with a True Type google font, the font or font characteristics get changed (characters get pushed to eachother and are thinner). This does not happen when I single side print a PDF. I

  • Cannot add file to Documentum. "Create" operation failed for object id=null

    Upgraded ro Frame 11 recently and now I cannot add a new document to Documentum. I get the following error. I still have Frame 10 installed and can check in the document with it, but Frame 11 does not recognize it as a FrameMaker file.

  • MP4 movies NOT TRANSFERING TO ITUNES? BT THEY ARE CORRECTLY FORMATED!!!

    I NEED ALOT OF HELP PLEASE! i converted my movies 3 different times becuase my itunes would not able me to transfer them into it. i need somebody to please hel me transfer them!