Getting Exception in thread "main" java.lang.AssertionError while trying to get connection from data
Hi,
I have a main class which will communicate with WLS data-source. Datasource lookup is going fine. But getting the below error when trying to get connection from that datasource. I have tested the connection pool using WLS console which worked fine as well. Please let me know where the problem is. I am using the same weblogic.jar adn ojdbc6.jar which is there in weblogic server lib folder. So there is no question for class mismatch.
WebLogic Server Version: 12.1.1.0
Java Code:
import java.sql.Connection;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.sql.DataSource;
public class RemoteLookup {
I have a main class which will communicate with WLS data-source. Datasource lookup is going fine. But getting the below error when trying to get connection from that datasource. I have tested the connection pool using WLS console which worked fine as well. Please let me know where the problem is. I am using the same weblogic.jar adn ojdbc6.jar which is there in weblogic server lib folder. So there is no question for class mismatch.
WebLogic Server Version: 12.1.1.0
Java Code:
import java.sql.Connection;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.sql.DataSource;
public class RemoteLookup {
0