0 Replies Latest reply on Sep 10, 2009 3:05 PM by 843811

    java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec

    843811
      Hi,

      I am using com.baltimore.jcrypto.provider.JCRYPTO as crypto provider in my EAR file. That is a jar file which i have set in startWebLogic.cmd. From my application application when i initiate a HTTPS connection(For this I am using commons-httpclient-3.0-rc4.jar). This works fine in weblogic8.1sp2. I am migrating my application to weblogic10.3, In that, I am getting the below error when i initiate HTTPS connection. But the javax/crypto/spec/SecretKeySpec class is packaged inside the jcrypto jar file. Jar file name is KeyLite5_0_1_2.jar.

      Any body pls help to resolve this problem.

      Thanks a million
      Sethu

      ####<Aug 25, 2009 4:02:01 PM GMT+05:30> <Error> <HTTP> <admin> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1251196321239> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@a011da - appName: 'esistampdev', name: 'estamp', context-path: '/estamp', spec-version: 'null', request: weblogic.servlet.internal.ServletRequestImpl@83e72d[
      GET /estamp/submission/SubmissionServlet?rDoAction=PrintCertificate HTTP/1.1
      Accept: */*
      Accept-Language: en-us
      Accept-Encoding: gzip, deflate
      User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
      Connection: Keep-Alive
      Cookie: ADMINCONSOLESESSION=jwhmKT6K27lhTJVyggwMw5LyDgH6mnKlWmWMvq4TJ1BzsxMhTYWf!-243302540; JSESSIONID=xZ8pKT9D7bHm9H2QQthwndSDF81WpcQnCScfHyCmS6xgyFnWx7B5!-124634521

      ]] Root cause of ServletException.
      java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec
           at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:384)
           at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:367)
           at com.sun.net.ssl.internal.ssl.CipherSuite.isAvailable(CipherSuite.java:143)
           at com.sun.net.ssl.internal.ssl.CipherSuiteList.buildAvailableCache(CipherSuiteList.java:210)
           at com.sun.net.ssl.internal.ssl.CipherSuiteList.getDefault(CipherSuiteList.java:233)
           at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(SSLSocketImpl.java:508)
           at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:391)
           at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:123)
           at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:81)
           at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:126)
           at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:704)
           at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
           at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:384)
           at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
           at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
           at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
           at com.crimsonlogic.legal.esi.util.ESIOdsInterfaceUtil.generateCertificate(Unknown Source)
           at com.crimsonlogic.legal.esi.submission.util.SubmissionFormBiz.getPSFileName(Unknown Source)
           at com.crimsonlogic.legal.esi.submission.util.SubmissionFormBiz.printCertificate(Unknown Source)
           at com.crimsonlogic.legal.esi.submission.util.SubmissionFormBiz.processRequest(Unknown Source)
           at com.crimsonlogic.legal.esi.submission.servlet.SubmissionServlet.doGet(Unknown Source)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at com.aesinfotech.sessiontracker.SessionTrackingFilter.doFilter(SessionTrackingFilter.java:198)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at com.crimsonlogic.legal.esi.useradmin.servlet.UserAdminFilterServlet.doFilter(Unknown Source)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(Unknown Source)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)