149 final String dbDialect = sc.getInitParameter(Constants.CTX_ATTR_DB_DIALECT); |
149 final String dbDialect = sc.getInitParameter(Constants.CTX_ATTR_DB_DIALECT); |
150 if (dbDialect != null) { |
150 if (dbDialect != null) { |
151 try { |
151 try { |
152 dialect = Dialect.valueOf(dbDialect); |
152 dialect = Dialect.valueOf(dbDialect); |
153 } catch (IllegalArgumentException ex) { |
153 } catch (IllegalArgumentException ex) { |
154 LOG.error(String.format("Unknown or unsupported database dialect %s. Defaulting to %s.", dbDialect, dialect)); |
154 LOG.error("Unknown or unsupported database dialect {}. Defaulting to {}.", dbDialect, dialect); |
155 } |
155 } |
156 } |
156 } |
157 |
157 |
158 try { |
158 try { |
159 LOG.debug("Trying to access JNDI context {}...", contextName); |
159 LOG.debug("Trying to access JNDI context {}...", contextName); |