IBM Support

Spring Boot Java application cannot be used with JDBC virtualization

Troubleshooting


Problem

Spring Boot application fails to start when configured with the Rational Integration Tester (RIT) JDBC driver configured.  Spring Boot application JDBC calls cannot be recorded or routed to your JDBC stub.

Symptom

You have followed the documentation to install the RIT JDBC driver and registration.xml file into the Spring Boot application and configured the startup parameters.  For example, the files are copied to C:\Dev\SB\RIT and these are some of the starting parameters:

java -Djdbc.drivers=com.greenhat.jdbc.Driver -Dloader.path=c:\DEV\SB\RIT -Ddatasource.db2.username...

The application fails with the following error:

java.net.MalformedURLException: No !/ in spec 'file:/c:/Dev/SB/RIT/registration.xml'
at java.net.URL.<init>(URL.java:627) ~[na:1.8.0_161]
...
at com.greenhat.jdbc.config.rest.Agent.bootstrap(Unknown Source) [com.ibm.rational.rit.jdbcdriver4.jar!/:na]

The JDBC Agent does not appear in the Rational Test Control Panel (RTCP) Agents or Infrastructure pages.

If registration.xml is relocated, the application starts and the JDBC Agent appears in RTCP.  The Agent shows no activity as the application does not use the RIT JDBC driver.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSBLQQ","label":"IBM Rational Test Workbench"},"Component":"Rational Integration Tester","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
24 October 2018

UID

ibm10732910