I am getting a java.lang.ClassCastException
from Connection conn = datasource.getConnection();
in the folowing:
try {
Context ctx = new InitialContext();
if(ctx == null )
{throw new Exception("Boom - No Context");}
DataSource
dataSource2=(DataSource)ctx.lookup("java:comp/env/jdbc/");
if(dataSource2 == null )
{throw new Exception("Boom - No dataSource");}
conn = dataSource2.getConnection();
}
Why would that be?
TIA
Shawn
PS the ds ="null" error I had earlier was due to not setting up my root
context properly. That document base threw me off.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>