Oracle Weblogic Server (MOSC)

MOSC Banner

Getting Exception in thread "main" java.lang.AssertionError while trying to get connection from data

edited Jan 27, 2014 8:46PM in Oracle Weblogic Server (MOSC) 5 commentsAnswered
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 {

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center