Hi, more funnies moving old resin code to 3.1.0. This, in a servlet, works with 3.0.23 and has for literally years:
private Context env; private DataSource pool; private DataSource authPool; private ServletContext sc; public void init(ServletConfig sfg) throws ServletException { sc = sfg.getServletContext(); try { env = (Context) new InitialContext().lookup("java:comp/env"); pool = (javax.sql.DataSource) env.lookup(System.getProperty("app.dbid")); authPool = (javax.sql.DataSource) env.lookup(System.getProperty("app.authentication.dbid")); } catch (NamingException e) { log.error(e); } with these entries in web.xml <system-property app.dbid='jdbc/customers'/> <system-property app.authentication.dbid="jdbc/customer_auth"/> The reason for doing it this way was to allow easy db redirection during development. With 3.1.0 we get java.lang.ClassCastException: com.caucho.naming.ContextImpl cannot be cast on each of the env.lookups Is there something different I need to do with 3.1.0 please? Thanks - John -------------------------- http://www.phonewebcam.com [EMAIL PROTECTED] _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest