This article provides steps for pre-checking the connection and instructions to add a profile with database type - Microsoft SQL Server.
If you are observing the below error in the log (atlassian-confluence.log) files, perform the pre-checks that are mentioned below:
driverClass : com.microsoft.sqlserver.jdbc.SQLServerDriver dbJar : /atlassian/sqlDrivers/sqljdbc4x.jar dburl : jdbc:sqlserver://hostnameorIP:port;database=DbName username : user dataSourceName : caused by: javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:234) caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4098) |
Pre-Checks:
If the Confluence instance is upgraded to any of the latest versions, i.e.,7.13.1 or higher, ensure the old( before upgrade) and new (after upgrade) Java files are not in the same place. If the files are located in the same place, then stop the Confluence, remove old files and restart the Confluence.
Add the below JVM parameter line in setenv.sh file under: <Confluence_installation_directory>/bin/setenv.sh or <Confluence_installation_directory>/bin/setenv.bat, if it is Windows.
CATALINA_OPTS="-Dadd-modules=java.xml.bind ${CATALINA_OPTS}" |
|