[jboss-user] [JCA/JBoss] - Re: Could not dereference object

lasanac do-not-reply at jboss.com
Fri Dec 14 10:14:05 EST 2007


I am just testing the back end of the application.  Currently I used:

ctx.rebind("java:MySQLDS", ref); 

as it got rid of another problem that I had earlier.  That was a CastException for Reference object.  I did retest it without that line and got the same error.

New Code:

			System.out.println("step 1");
			Context ctx= new InitialContext(env);
			System.out.println("step 2");
			DataSource ds = (DataSource)ctx.lookup("java:MySQLDS");
			System.out.println("step 3 ");

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112962#4112962

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112962



More information about the jboss-user mailing list