We also installed the DB in the new server and tried connecting but ended up with a same error .Is it possible that the newer version of the server had some new xml parsing rules which is not allowing our old code to work . I will paste below the class file and point out the exact line which is causing problem .
package com.aish.pladmin.repository;
import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;
public class SQLMapInitializer
{
private static SqlMapClient db1SqlMap = null;
public SQLMapInitializer()
{
}
public static SqlMapClient getSQLMap()
{
return db1SqlMap;
}
static
{
try
{
String resourceName = "SQLMapConfig.xml";
java.io.Reader reader = Resources.getResourceAsReader(resourceName);
db1SqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
// LINE CAUSING EXCEPTION
}
catch(Exception e)
{
e.printStackTrace();
throw new RuntimeException((new StringBuilder("Error initializing Cause: ")).append(e).toString());
// Runtime EXCEPTION thrown at the console
}
}
}