diff --git a/activemq-web/pom.xml b/activemq-web/pom.xml
index ea51dbf309..a522817c83 100644
--- a/activemq-web/pom.xml
+++ b/activemq-web/pom.xml
@@ -58,10 +58,6 @@
commons-io
commons-io
-
- javax.xml.bind
- jaxb-api
-
${project.groupId}
activemq-unit-tests
diff --git a/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java b/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
index cbf8ecf7bc..2202f51bd6 100644
--- a/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
+++ b/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
@@ -22,6 +22,7 @@ import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
+import java.util.Base64;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
@@ -385,7 +386,7 @@ public class WebClient implements HttpSessionActivationListener, HttpSessionBind
String[] tokens = auth.split(" ");
if (tokens.length == 2) {
String encoded = tokens[1].trim();
- String credentials = new String(javax.xml.bind.DatatypeConverter.parseBase64Binary(encoded));
+ String credentials = new String(Base64.getDecoder().decode(encoded));
String[] creds = credentials.split(":");
if (creds.length == 2) {
client.setUsername(creds[0]);