diff --git a/dspace-api/pom.xml b/dspace-api/pom.xml
index 5e948dff73..635163e990 100644
--- a/dspace-api/pom.xml
+++ b/dspace-api/pom.xml
@@ -481,8 +481,8 @@
commons-validator
- javax.mail
- mail
+ com.sun.mail
+ javax.mail
javax.servlet
diff --git a/dspace-api/src/main/java/org/dspace/xmlworkflow/XmlWorkflowServiceImpl.java b/dspace-api/src/main/java/org/dspace/xmlworkflow/XmlWorkflowServiceImpl.java
index 54122d6ea7..fbe06245ab 100644
--- a/dspace-api/src/main/java/org/dspace/xmlworkflow/XmlWorkflowServiceImpl.java
+++ b/dspace-api/src/main/java/org/dspace/xmlworkflow/XmlWorkflowServiceImpl.java
@@ -681,7 +681,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
}
} catch (MessagingException e) {
log.warn(LogHelper.getHeader(context, "notifyOfArchive",
- "cannot email user" + " item_id=" + item.getID()));
+ "cannot email user" + " item_id=" + item.getID()), e);
}
}
@@ -715,7 +715,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
} catch (MessagingException e) {
log.warn(LogHelper.getHeader(c, "notifyOfCuration",
"cannot email users of workflow_item_id " + wi.getID()
- + ": " + e.getMessage()));
+ + ": " + e.getMessage()), e);
}
}
@@ -1196,7 +1196,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
log.warn(LogHelper.getHeader(c, "notify_of_reject",
"cannot email user" + " eperson_id" + e.getID()
+ " eperson_email" + e.getEmail()
- + " workflow_item_id" + wi.getID()));
+ + " workflow_item_id" + wi.getID()), ex);
}
}
diff --git a/dspace-services/pom.xml b/dspace-services/pom.xml
index 654250e140..e09253a75c 100644
--- a/dspace-services/pom.xml
+++ b/dspace-services/pom.xml
@@ -104,8 +104,8 @@
provided
- javax.mail
- mail
+ com.sun.mail
+ javax.mail
org.mockito
diff --git a/pom.xml b/pom.xml
index 166536b8d5..6e7b2e1ec0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1439,9 +1439,9 @@
2.9.2
- javax.mail
- mail
- 1.4.7
+ com.sun.mail
+ javax.mail
+ 1.6.2
javax.servlet