Archive for the ‘Java’ Category

WAT and Stateless filter now have a clean changelog

June 24th, 2010

Thanks to Mantis But Tracker and with some time spent to recreate issues for the latest commits, both Web Assemble Tool and Stateless Filter now have a changelog available.

WAT :
https://sourceforge.net/apps/mantisbt/webassembletool/changelog_page.php

Stateless filter :
https://sourceforge.net/apps/mantisbt/statelessfilter/changelog_page.php

This gives a better visibility on the activity and the latest changes/releases of these projects.

How to solve ‘Error listenerStart’ Error with Spring, Log4j and Tomcat

June 22nd, 2010

Working with Spring, Log4j and Tomcat, you may have faced the following error, which prevents your web application to start :

Logs in french :
org.apache.catalina.core.StandardContext start GRAVE: Error listenerStart
org.apache.catalina.core.StandardContext start GRAVE: Erreur de démarrage du contexte [/mywebapp] suite aux erreurs précédentes

Logs in english :
org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart
org.apache.catalina.core.StandardContext start SEVERE: Context [/mywebapp] startup failed due to previous errors

(more…)

Set Jetty buffer size (Maven)

March 11th, 2010

Working with large cookies and jetty, you may have faced this error :

2010-03-11 18:18:31.275:WARN::HttpException(413,FULL head,null)

This is because jetty allows only 4ko for HTTP request and response headers. Using large cookies is enough to reach the limit.

(more…)

Wicket adapter for WAT : include block support

March 9th, 2010

I just added a new WATBlock component to Web Assemble Tool Wicket adapter (webassembletool-wicket).

This is the equivalent of assemble:includeBlock jsp tag, which allows to include content from a remote web site into your application.

Now the Wicket adapter has the minimal components to be useable in a project (WATTemplate, WATBlock).

I’ve also added some ready-to-use demo content and template in order to ease WAT learning. These files already have WAT tags included (look at the html source to get block names) :

The website has yet to be updated.
Enjoy

Java Stateless Session Filter released on sourceforge

January 24th, 2010

I just finished publishing on sourceforge a simple filter named Java Stateless Session Filter which let you change the way your application use HTTP session without refactoring the code, or share user session between webapps while using the standard session API.

Several session stores are available out of the box :

  • Cookie, with variants : plain (development only), Encrypted, JSON based
  • Memcache
  • Native session (when some attributes doesn’t need sharing)

The inital code is released under the Apache License v2.0 by Capgemini.

(more…)