Frameworks comparation: Lift, Play and Wicket

Play: Lightweight Java-based framework, with Scala support available as an extra. very good for rapid prototyping, fast-feedback-loop kind of work. Embeds the compiler, so you just edit source code in place and pages get immediately updated. Learning curve is shallow. Wicket: Stateful Java-based framework, with Scala support available as an extra. Shallower learning curve into … Read more

Programmatic use of Spring Security

Maybe it’s not a full answer to your questions, but maybe it might help you. The code being called when you do NOT use programmatic login, but a standard one is to be found here: org.springframework.security.ui.webapp.AuthenticationProcessingFilter I guess you were inspired by this in your code. It looks quite similar. Similarly the code executed when … Read more

How to resolve Error listenerStart when deploying web-app in Tomcat 5.5?

I found that following these instructions helped with finding what the problem was. For me, that was the killer, not knowing what was broken. http://mythinkpond.wordpress.com/2011/07/01/tomcat-6-infamous-severe-error-listenerstart-message-how-to-debug-this-error/ Quoting from the link In Tomcat 6 or above, the default logger is the”java.util.logging” logger and not Log4J. So if you are trying to add a “log4j.properties” file – this … Read more

Difference between Apache Tapestry and Apache Wicket

Some relevant differences as I see them: Tapestry uses a semi-static page structure, where you can work with conditionals and loops to achieve dynamic behavior. Wicket is completely dynamic; you can load components dynamically, replace them at runtime, etc. The consequences of this are that Tapestry is easier to optimize, and that Wicket is more … Read more

Wicket vs Vaadin

I think I’ve invested some time for both frameworks. I really like both because they bring the Swing-alike coding to web development. And I don’t know easier ones for me (although there is click but I don’t like the velocity templating thing) And yes, there are differences. I wont have to worry much about the … Read more

Scope ‘session’ is not active for the current thread; IllegalStateException: No thread-bound request found

The problem is not in your Spring annotations but your design pattern. You mix together different scopes and threads: singleton session (or request) thread pool of jobs The singleton is available anywhere, it is ok. However session/request scope is not available outside a thread that is attached to a request. Asynchronous job can run even … Read more

How to solve could not create the virtual machine error of Java Virtual Machine Launcher?

Error: sony@sony-VPCEH25EN:~$ java –version Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Unrecognized option: –version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Solution: Remove extra hyphen ‘-‘ sony@sony-VPCEH25EN:~$ java -version Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar java version “1.8.0_101” Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build … Read more