-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Yogesh,

On 4/7/15 8:12 AM, Bhagyashree Jog wrote:
> Okay so I ran the java -version command on both machines:
> 
> On machine 1 : Issue is reproducible (CentOS 6.2, tomcat 6.0.24) 
> java -version java version "1.7.0_17" Java(TM) SE Runtime
> Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM
> (build 23.7-b01, mixed mode)
> 
> On machine 2 : Issue is not reproducible (CentOS 6.4, tomcat
> 6.0.24) java -version java version "1.7.0_09-icedtea" OpenJDK
> Runtime Environment (rhel-2.3.4.1.el6_3-x86_64) OpenJDK 64-Bit
> Server VM (build 23.2-b09, mixed mode)
> 
> Any explanations for this?

You probably have the libraries in the right places in the second
(working) one. You should inspect the Tomcat file layout in each case
to figure out what you have changed.

- -chris

> On 7 April 2015 at 16:48, Bhagyashree Jog <rani...@gmail.com>
> wrote:
> 
>> 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(WebappClassLo
ader.java:1370)
>>>>
>>> 
at
>>>> 
>>>> 
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
ader.java:1329)
>>>>
>>> 
at
>>>> 
>>>> 
>>> org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engi
neSetMode(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(SSLCont
extImpl.java:342)
>>>>
>>> 
at
>>>> 
>>>> 
>>> sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContext
Impl.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(JSSES
ocketFactory.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.engi
neSetMode(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(SSLCont
extImpl.java:342)
>>>>
>>> 
at
>>>> 
>>>> 
>>> sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContext
Impl.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(JSSES
ocketFactory.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.engi
neSetMode(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(SSLCont
extImpl.java:342)
>>>>>>>
>>> 
at
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>> 
>>> sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContext
Impl.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(JSSES
ocketFactory.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
>> 
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIaBAEBCAAGBQJVI9utAAoJEBzwKT+lPKRYxSkP7jiXOv/XV7hT6V5wwTHzS3ge
APH0z63lc8bIDtbB0JgxNXPmiPfvdDxK9YbiAK+zBBjT9ISyNTd06c2gxJO15K1t
lwpIXWTkyH98ctbopi7W09TWtgEMJC77trvfq0W1dtq9Di53AaoiW4YFtZeSzQLC
eJ+LIQ5dtXMbihoyPPLXyJerylVcsgGzkvzrkSoxSVQF0XCoWdaBNgEnQOkBL4j+
2DbLlEw9R0+7KurI19KN2N79fIlYXLVAxcBPsXGD93Ftx2F0YuoQFlgWaP7BzHq7
OvVAPeyK4AVL1NaMNHlItQCFba3zP+yLGR8kLvX8K6vyxtwwK4IRpZhXnLgS1XbS
rudGdw1lc/WeJ4Q96s1oyCl8shqfe1H5TZIFtmQeosPrfZBiHG638NKpO7LkW2g1
5TXU+6fDUDHSiDR1rDHQ1jwKLax2w45ivvecoZt5h5EjBK6MLd0Cc7hzujSHYEXY
+U0l1eU47vL8Rxz172dQ4OdV3q2Zr9zDgY4gAQlKSy3yhdCyQkipV9TyF4DCvJae
wwcNaWMc9BZBoyST2KbAsrdbJ6oxceqiYkFwfzZaVfDUIy0XRl8+l75sTJFxZoET
d0bdLyccI2GjWxT8h8JO0h0bINmUPgsVdqUl1HwRAeUeVWhWVdcDrQMxMG4I6mW+
gzOy8ODxKoIzTCxBsg==
=Ldu7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to