DB Installation fails on MSSQL
Asked by jwm:

Connection to MS SQL fails with the following stack trace.

I note in the stack trace ... java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter

Possibly JDK version?

JAVA_HOME and Path variable are set.....

Any ideas?

I also tried local DB install but that just hangs....

**Stack Trace:**

```
ognl.MethodFailedException: Method "execute" failed for object com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction@6a7d3fc5 [java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter]	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1556)	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)	at ognl.ASTMethod.getValueBody(ASTMethod.java:91)	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)	at ognl.SimpleNode.getValue(SimpleNode.java:258)	at ognl.Ognl.getValue(Ognl.java:470)	at ognl.Ognl.getValue(Ognl.java:434)	at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:401)	at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:453)	at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:399)	at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:438)	at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:293)	at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:55)	at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter	at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4128)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3188)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:61)	at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3151)	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7535)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2438)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1973)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1616)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1447)	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:788)	at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1187)	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)	at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.getTestDatabaseConnection(DefaultAtlassianBootstrapManager.java:347)	at com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction.createConnection(SetupDatabaseConnectionAction.java:143)	at com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction.validateDatabase(SetupDatabaseConnectionAction.java:122)	at com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction.validateFields(SetupDatabaseConnectionAction.java:71)	at com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction.execute(SetupDatabaseConnectionAction.java:82)	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.base/java.lang.reflect.Method.invoke(Method.java:566)	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)	... 16 moreCaused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
```


Answers:
author: jwm
body: Ok, seems I managed to solve it.

I initially ran Java 11. Uninstalled it and installed Java 8. Viola - it worked.