<https://lh3.googleusercontent.com/-FmtIoTzv-tE/VTB_0Kb0atI/AAAAAAAABkE/r2hlZ7Iw_TA/s1600/cas2.png>
<https://lh3.googleusercontent.com/-w5dcMeWzSIc/VTB-3261qrI/AAAAAAAABj8/3IhPPwClGns/s1600/cas1.png> hi, i did some customization, with my own packages and classes, its run smooth, however my logger doesnt work at all, autowired also not working,variables in context.xml also cant be read. 1. my class public class DatasourceWrapper extends BasicDataSource implements Serializable { private static final long serialVersionUID = 4139847655780946796L; private Logger logger = LoggerFactory.getLogger(getClass()); @Override public Connection getConnection() throws SQLException { logger.debug("Number of active connections:" + super.getNumActive()); logger.info("Number of idle connections:" + super.getNumIdle()); logger.error("Number of max active:" + super.getMaxActive()); return super.getConnection(); } @Override public Connection getConnection(String username, String password) throws SQLException { return super.getConnection(username, password); } } the very weird things is, above red color will log once only(when deploy to tomcat), after that i manual hit and trigger it and check in remote debug mode. its run with no error, but when i check from the log, it doesnt log..... <https://lh3.googleusercontent.com/-w5dcMeWzSIc/VTB-3261qrI/AAAAAAAABj8/3IhPPwClGns/s1600/cas1.png> 2. Autowired, this is just for testing. Well, it doesnt work also. In my deployer xml i did <context:annotation-config /> <context:component-scan base-package="org.jasig.cas.web" /> ...... <bean id="Settings" class="org.jasig.cas.web.Settings"> <constructor-arg ref="dataSource" /> </bean> plus necessary namespace declare , then in my controller. <https://lh3.googleusercontent.com/-FmtIoTzv-tE/VTB_0Kb0atI/AAAAAAAABkE/r2hlZ7Iw_TA/s1600/cas2.png> i check the autowired value, it doesnt wire. 3. in my context xml <Parameter name="databaseDriver" value="org.postgresql.Driver"/> <Parameter name="databaseUrl" value="org.postgresql.Driver"/> ..... and deployer xml <bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer" ></bean> but then when i using ${} <bean id="dataSource" class="org.jasig.cas.web.DatasourceWrapper"> <property name="driverClassName" value="${databaseDriver}"/> ...... </bean> the spring tell me could not resolve placeholder. above all the settings and configuration is from other project, which is working for the configurations. But when i copy and paste to CAS 4.0.0 ,not working. At first, i thinking this could be my configuration wrong, however after these 3 setup, i am thinking configuration maybe is out of these 3, could some 1 enlighten me, or i do miss somethings? -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
