From 2da6ff69a25a7031ccd2507ba3182d3394fee6c7 Mon Sep 17 00:00:00 2001 From: Zhang Cheng Date: Fri, 30 Jun 2017 10:33:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0com.sun.xml.security=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=A3=B0=E6=98=8E=EF=BC=9B=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84import=20com.sun.image.codec.jpeg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ++++++ .../java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index df65672..a439ec9 100644 --- a/pom.xml +++ b/pom.xml @@ -15,6 +15,12 @@ test + + + com.sun.xml.security + xml-security-impl + 1.0 + org.apache.geronimo.specs geronimo-j2ee-management_1.1_spec diff --git a/src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java b/src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java index 889cce5..1bf4b8a 100755 --- a/src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java +++ b/src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java @@ -24,7 +24,6 @@ import com.octo.captcha.component.word.wordgenerator.ComposeDictionaryWordGenera import com.octo.captcha.component.word.wordgenerator.WordGenerator; import com.octo.captcha.engine.image.ListImageCaptchaEngine; import com.octo.captcha.image.gimpy.GimpyFactory; -import com.sun.image.codec.jpeg.ImageFormatException; public class CaptchaEngineEx extends ListImageCaptchaEngine { @@ -97,4 +96,4 @@ public class CaptchaEngineEx extends ListImageCaptchaEngine { background, randomPaster, backDef, textDef, postDef); addFactory(new GimpyFactory(dictionnaryWords, word2image)); } -} \ No newline at end of file +}