Exception in thread main java.lang.NoClassDefFoundError: testDNS when executing the getSRVInfo command to retreive DNS _SRV record definitions

Document ID : KB000053979
Last Modified Date : 14/02/2018
Show Technical Document Details


Executed on UNIX: "opt/CA/SC/ccs/dia/dna/bin/getSRVInfo.sh" <domain name suffix>
Executed on Windows" "c:\program files\ca\sc\ccs\dia\dia\dna\bin\getSRVInfo.bat" <domain name suffix>

Both commands render the error message: Exception in Thread "main" java.lang.NoClassDefFoundError: testDNS

The problem is independent if a _SRV record in DNS exists or not.


The problem is caused by the quotation marks (" ") surrounding the command. Follow these steps to execute the command successfully. For UNIX platforms:

  1. cd into the $CA_DIA_HOME/dia/dna/bin directory
    #./getSRVInfo.sh <domain name suffix>

  2. ./opt/CA/SC/ccs/dia/dna/bin/getSRVInfo.sh <domain name suffix>
For Windows Platform:
  1. cd into the c:\program files\CA\SC\ccs\dia\dia\dna\bin directory
    getSRVInfo.bat <domain name suffix>

  2. c:\program files\CA\SC\ccs\dia\dia\dna\bin\getSRVInfo.bat <domain name suffix>