java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider

1. Problem Description

JDK 1.7

Spring 3.2.6

CXF 2.7.8  WS-Security

java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider


2. Solution

Add this dependency in POM.xml

<dependency>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-jdk16</artifactId>
			<version>1.46</version>
		</dependency>


你可能感兴趣的:(java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider)