2015年10月18日 星期日

Remove Spring Framework and Dynamic Dependency Injection

It's hard to remove the Spring framework especially it is the foundation of other software modules such as Hibernate, Spring Security, and Struts2.

HibernateTemplate was removed and replaced by straight forward Hibernate 4.3 calls.

Removed Spring Security and replaced it by Apache Shiro (not sure how to use it yet).

Later to investigate of using Google Dagger 2 for compile time Dependency Injection.

Move the class OnShelfValidateAction from
package com.tencircles.app.webapp.action.media;
to
package com.tencircles.app.webapp.action.advertisement;

IF the servlet and servlet mapping are not matched, then you get the following error:

18-Oct-2015 19:36:29.857 SEVERE [http-apr-8080-exec-19] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TenCircles]]


Struts2 Filter Upgrade