在richfaces中发送电子邮件Amazon SES时出现错误javax / xml / namespace / QName

时间:2014-09-03 07:43:06

标签: java amazon-web-services richfaces amazon-ses

我的项目使用richfaces框架。我尝试整合库AWS SDK for Java version 1.8.9.1。我尝试发送电子邮件关注:http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-sdk-java.html。 功能错误: client.sendEmail(请求); (但仍然会发送电子邮件!)。 这是详细错误:

ERROR [application] java.lang.reflect.InvocationTargetException 
javax.faces.el.EvaluationException: java.lang.reflect.InvocationTargetException... 
Caused by: java.lang.reflect.InvocationTargetException......
Caused by: java.lang.NoClassDefFoundError: javax/xml/namespace/QName....
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) previously initiated loading for a different type with name "javax/xml/namespace/QName"
............

这些是我添加到项目中的列表库:

aspectjrt.jar
aspectjweaver.jar
aws-java-sdk-1.8.9.1.jar
aws-java-sdk-1.8.9.1-javadoc.jar
aws-java-sdk-1.8.9.1-sources.jar
aws-java-sdk-flow-build-tools-1.8.9.1.jar
commons-codec-1.3.jar
commons-logging-1.1.1.jar
freemarker-2.3.18.jar
httpclient-4.2.3.jar
httpcore-4.2.jar
jackson-annotations-2.1.1.jar
jackson-core-2.1.1.jar
jackson-databind-2.1.1.jar
joda-time-2.2.jar
mail-1.4.3.jar
spring-beans-3.0.7.jar
spring-context-3.0.7.jar
spring-cor
e-3.0.7.jar

我该如何解决?

0 个答案:

没有答案