Uncategorized

Tomahawk and Spring Webflow

Posted in Uncategorized, java, software development on March 20th, 2009 by Joerg – Be the first to comment

I recently ran into a configuration problem when using Apache Tomahawk and Spring Webflow together. When using some of the more advanced components like <t:inputDate> I got an error message:

...
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing.
...

I did configure the MyFacesExtensionsFilter like shown in the documentation but that was not enough:

 <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
     ...
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
  </filter-mapping>

After some debugging it turned out that this filter was never called. The solution is simple. When you combine Spring Webflow and JSF the Faces Servlet has no real function. It just needs to be there for some compatibility reasons. The real servlet that needs to be filtered is the Spring MVC Dispatcher Servlet. So you need to change the filter mapping like this:

<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
</filter-mapping>

This also applies for all other filters that are usually applied to the faces servlet, like the Trinidad filter.

Hello world!

Posted in Uncategorized on February 21st, 2009 by Joerg – 4 Comments

Hello World is often the starting point for new experiences in software development. So I decided to keep this first WordPress headline. I welcome everybody on my blog, even if probably nobody is going to read this entry for the next 6 months :) I still think there has to be a starting post.

This is my first Blog. I am thinking about blogging since years, but never really found it important enough to start. What has changed now? Some good friends of mine started or restarted blogging a few weeks ago and I decided to use this energy and start my own blog too. Please do also visit their Blogs. They are mentioned in my Blogroll.

What will you be able to read about here?

Well, first of all everything related to my passion software development. This includes:

  • Java/Groovy related tips or just random experiences
  • Stuff about software development infrastructure
  • Thoughts on software development methodologies (related to agile and scrum, as I am a Scrummaster)

You will of course also find some gadget stuff that I stumbled upon, and yes this will probably include some praise for Apple.

I hope you will be entertained or even get some value out of what I am writing here.

Yours sincerely

Joerg