Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Problem Running J2EE Application - JRE Version Error

  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    32
    My Mood
    Confused
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Question Problem Running J2EE Application - JRE Version Error

    When I run my Java application (Eclipse) , I am getting error in Java Console as follows :

    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI


    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.KeyStore.getInstance(Unknown Source)
    at sun.plugin.services.WIExplorerBrowserService$1.run (Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.services.WIExplorerBrowserService.getBr owserClientAuthKeyStore(Unknown Source)
    at sun.plugin2.main.client.WIExplorerServiceDelegate. getBrowserClientAuthKeyStore(Unknown Source)
    at sun.plugin2.main.client.MessagePassingExecutionCon text.getBrowserClientAuthKeyStore(Unknown Source)
    at sun.plugin2.applet.Applet2BrowserService.getBrowse rClientAuthKeyStore(Unknown Source)
    at com.sun.deploy.security.X509DeployKeyManager.<init >(Unknown Source)
    at com.sun.deploy.net.protocol.https.Handler$Initiali zer$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.net.protocol.https.Handler$Initiali zer.<clinit>(Unknown Source)
    at com.sun.deploy.net.protocol.https.Handler.openConn ection(Unknown Source)
    at java.net.URL.openConnection(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.<init>(U nknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection .<init>(Unknown Source)
    at sun.plugin.net.protocol.jar.Handler.openConnection (Unknown Source)
    at java.net.URL.openConnection(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initiali zer
    at com.sun.deploy.net.protocol.https.Handler.openConn ection(Unknown Source)
    at java.net.URL.openConnection(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.<init>(U nknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection .<init>(Unknown Source)
    at sun.plugin.net.protocol.jar.Handler.openConnection (Unknown Source)
    at java.net.URL.openConnection(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.net.protocol.https.Handler$Initiali zer
    I tried Googling for the solution , it's mentioned like JRE Version error.


    My Command prompt shows Java Version as ,

    java version "1.6.0_22"
    Please help me !!

    Thanks !


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Problem Running J2EE Application - JRE Version Error

    What is your server configuration?
    Which server are you using?
    Are classpaths and homepath is set properly?

    Your classpath must be
    sun.security.mscapi.SunMSCAPI
    with the complete path. As it's the path that is being followed by the JVM for now. And it can not find any class specified as index.jsp or whatever you name it.

  3. #3
    Member
    Join Date
    Sep 2010
    Posts
    32
    My Mood
    Confused
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default Re: Problem Running J2EE Application - JRE Version Error

    Thanks for the reply !

    I am using jboss-4.0.5 server . I have installed jdk1.6.0_22 now and my error message is getting displayed as ,

    java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.sunmscapi)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unk nown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkLink(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.mscapi.SunMSCAPI$1.run(SunMSCAPI.java :34)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.mscapi.SunMSCAPI.<clinit>(SunMSCAPI.j ava:32)
    ... 61 more
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NoClassDefFoundError: Could not initialize class sun.security.mscapi.SunMSCAPI at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.security.jca.ProviderConfig$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jca.ProviderConfig.doLoadProvider(Unk nown Source)
    at sun.security.jca.ProviderConfig.getProvider(Unknow n Source)
    at sun.security.jca.ProviderList.getProvider(Unknown Source)
    at sun.security.jca.ProviderList.getService(Unknown Source)
    at sun.security.jca.GetInstance.getInstance(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.AlgorithmParameters.getInstance(Unkn own Source)
    at sun.security.x509.AlgorithmId.decodeParams(Unknown Source)
    at sun.security.x509.AlgorithmId.<init>(Unknown Source)
    at sun.security.x509.AlgorithmId.parse(Unknown Source)
    at sun.security.x509.X509Key.parse(Unknown Source)
    at sun.security.x509.CertificateX509Key.<init>(Unknow n Source)
    at sun.security.x509.X509CertInfo.parse(Unknown Source)
    at sun.security.x509.X509CertInfo.<init>(Unknown Source)
    at sun.security.x509.X509CertImpl.parse(Unknown Source)
    at sun.security.x509.X509CertImpl.<init>(Unknown Source)
    at sun.security.provider.X509Factory.parseX509orPKCS7 Cert(Unknown Source)
    at sun.security.provider.X509Factory.engineGenerateCe rtificates(Unknown Source)
    at java.security.cert.CertificateFactory.generateCert ificates(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.genera teCertificate(Unknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.loadCe rtificates(Native Method)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.WIExplorerCertStore.load(U nknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissi onGranted(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByT rustDecider(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCo deSources(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.strategy(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ParentCa llback.openClassPathElement(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.access$800(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoad er.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(U nknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoad er(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getReso urce(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknow n Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHel per(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Last edited by rameshiit19; November 28th, 2011 at 02:26 AM.

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Problem Running J2EE Application - JRE Version Error

    Your server component can not find the specified class. Ensure that you are providing the correct CLASSPATH and you deployed the .class and web files in proper place. Read the Server component's documentation to learn about deployment of files.

  5. The Following User Says Thank You to Mr.777 For This Useful Post:

    rameshiit19 (November 29th, 2011)

Similar Threads

  1. getting NPException while running my struts first application using tomcat
    By rafishaik999 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: September 19th, 2011, 05:56 AM
  2. Error while running Applet
    By rameshiit19 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: August 1st, 2011, 04:02 AM
  3. Shortcut executed or in-background running Java application
    By xixixao in forum Java Theory & Questions
    Replies: 2
    Last Post: April 22nd, 2011, 04:33 AM
  4. Replies: 1
    Last Post: September 30th, 2010, 02:36 PM
  5. Runtime Error running in UVA
    By mathfxr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 17th, 2010, 02:06 PM

Tags for this Thread