Hi, The problem is not reproducible after upgarding to CentOS 6.4 and above. I was earlier using CentOS 6.2. Cant understand why? Any explanations?
On 2 April 2015 at 10:26, Yogesh Rao <yog...@gmail.com> wrote: > Hello, > > Not sure if it would help but you could try installing crypto providers > into the JRE extension directory (e.g. $JRE_HOME/lib/ext) which the tomcat > is using and also an entry must be added to > $JRE_HOME/lib/security/java.security. > > After this restart tomcat and check > > Regards, > -Yogesh > > On Thu, Apr 2, 2015 at 10:03 AM, Bhagyashree Jog <rani...@gmail.com> > wrote: > > > Hello, > > > > I added the jar to the "$CATALINA_BASE/lib" folder. Still getting the > same > > problem. This is the entire exception trace. > > > > INFO: Illegal access: this web application instance has been stopped > > already. Could not load org.bouncycastle.crypto.modes.CBCBlockCipher. > The > > eventual following stack trace is caused by an error thrown for debugging > > purposes as well as to attempt to terminate the thread which caused the > > illegal access, and has no functional impact. > > java.lang.IllegalStateException > > at > > > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370) > > at > > > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329) > > at > > > > > org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineSetMode(Unknown > > Source) > > at javax.crypto.Cipher$Transform.setModePadding(Cipher.java:357) > > at javax.crypto.Cipher.chooseProvider(Cipher.java:847) > > at javax.crypto.Cipher.init(Cipher.java:1348) > > at sun.security.ssl.CipherBox.<init>(CipherBox.java:175) > > at sun.security.ssl.CipherBox.newCipherBox(CipherBox.java:208) > > at > > sun.security.ssl.CipherSuite$BulkCipher.newCipher(CipherSuite.java:467) > > at > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:507) > > at > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:485) > > at sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:190) > > at > > > > > sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:342) > > at > > > > > sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:293) > > at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:576) > > at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:494) > > at > > sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:313) > > at > > > > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:152) > > at > > org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) > > at java.lang.Thread.run(Thread.java:722) > > > > after this catalina.out keeps logging the exception > > > > SEVERE: Socket accept failed > > java.lang.NoClassDefFoundError: > > org/bouncycastle/crypto/modes/CBCBlockCipher > > at > > > > > org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineSetMode(Unknown > > Source) > > at javax.crypto.Cipher$Transform.setModePadding(Cipher.java:357) > > at javax.crypto.Cipher.chooseProvider(Cipher.java:847) > > at javax.crypto.Cipher.init(Cipher.java:1348) > > at sun.security.ssl.CipherBox.<init>(CipherBox.java:175) > > at sun.security.ssl.CipherBox.newCipherBox(CipherBox.java:208) > > at > > sun.security.ssl.CipherSuite$BulkCipher.newCipher(CipherSuite.java:467) > > at > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:507) > > at > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:485) > > at sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:190) > > at > > > > > sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:342) > > at > > > > > sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:293) > > at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:576) > > at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:494) > > at > > sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:313) > > at > > > > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:152) > > at > > org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) > > at java.lang.Thread.run(Thread.java:722) > > > > catalina.out fills out the entire space in var folder in a very short > time > > > > On 1 April 2015 at 17:26, Bhagyashree Jog <rani...@gmail.com> wrote: > > > > > Thanks for the input. Will look into it. > > > On 01-Apr-2015 5:00 pm, "Daniel Mikusa" <dmik...@pivotal.io> wrote: > > > > > >> On Wed, Apr 1, 2015 at 2:30 AM, Bhagyashree Jog <rani...@gmail.com> > > >> wrote: > > >> > > >> > I am getting the following error on deploying tomcat > > >> > > > >> > org.apache.tomcat.util.net.JIoEndpoint$Acceptor run > > >> > SEVERE: Socket accept failed > > >> > java.lang.NoClassDefFoundError: > > >> > org/bouncycastle/crypto/modes/CBCBlockCipher > > >> > > > >> > > >> You're missing a JAR file, or it's in the wrong place, and this class > > >> can't > > >> be found. Find the right JAR file and put it into the > > >> "$CATALINA_BASE/lib" > > >> directory. > > >> > > >> > > >> > at > > >> > > > >> > > > >> > > > org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineSetMode(Unknown > > >> > Source) > > >> > at > > javax.crypto.Cipher$Transform.setModePadding(Cipher.java:357) > > >> > at javax.crypto.Cipher.chooseProvider(Cipher.java:847) > > >> > at javax.crypto.Cipher.init(Cipher.java:1348) > > >> > at sun.security.ssl.CipherBox.<init>(CipherBox.java:175) > > >> > at > sun.security.ssl.CipherBox.newCipherBox(CipherBox.java:208) > > >> > at > > >> > > > sun.security.ssl.CipherSuite$BulkCipher.newCipher(CipherSuite.java:467) > > >> > at > > >> > > > >> > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:507) > > >> > at > > >> > > > >> > > sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:485) > > >> > at > > >> sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:190) > > >> > at > > >> > > > >> > > > >> > > > sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:342) > > >> > at > > >> > > > >> > > > >> > > > sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:293) > > >> > at > sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:576) > > >> > at > > sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:494) > > >> > at > > >> > > > >> > > sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:313) > > >> > at > > >> > > > >> > > > >> > > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:152) > > >> > at > > >> > > > >> > > org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352) > > >> > at java.lang.Thread.run(Thread.java:722) > > >> > > > >> > *This error is logged into catalina.out continuously and > catalina.out > > >> gets > > >> > full in short time. tomcat version is : 6.0.24. Please help* > > >> > > > >> > > >> This is **really** old. You need to upgrade to 6.0.43 ASAP. > > >> > > >> Dan > > >> > > >> > > >> > > > >> > -- > > >> > Bhagyashree N Jog > > >> > > > >> > > > > > > > > > -- > > Bhagyashree N Jog > > > -- Bhagyashree N Jog