SerfJ 0.4.0 released

A new major version has been released with new features that makes the framework more powerful and flexible:

  • Feature: Default FileSerializer implementation, now is possible to serve files for downloading.
  • Feature: New default extension (.file) for serving files.
  • Feature: Within functional style you are able to implement generic serializers for whatever model you have.
  • Feature: Now javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest and javax.servlet.http.HttpServletResponse are accessible from controllers.
  • Patch: Instead of implementing net.sf.serfj.serializers.Serializer developers must implement net.sf.serfj.serializers.ObjectSerializer for serializing objects.
  • Patch: RestController.addObject2request is deprecated in favour of RestController.putParam

The English documentation (reference, examples and Javadoc) has been updated, now I’m working on the Spanish reference.

Enjoy, and remember that any feedback will be welcome.



Published by

Eduardo Yáñez Parareda

6 thoughts on “SerfJ 0.4.0 released”

  1. HI Team

    I am getting the following exception,

    net.sf.serfj.config.ConfigFileIOException: \config\ (The system cannot find the path specified)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process($ Source)

    Even I have added config folder in the eclipse classpath, I am running the application through eclipse runasserver

    1. Hi, how do you have your WebContent directory structured?. Usually, the best way is to put the config directory under WEB-INF/classes.
      If you’re using Eclipse to run your application, you can copy the config directory in the src directory, so Eclipse when do the build,
      will copy the directory and the properties file within the classpath for sure.

      1. Thanks a lot for quick reply, It is working fine if I copy entire source files, If I use the serfj*.jar (with seeting the build path), I am facing the above problem even I put the config file in src

      2. Well, you must put the config directory, not only the config file.

        Anyway, if you get the exception that says the config/ is not in the classpath, then it isn’t… there aren’t more explanations.

    1. My package structure is like this and I have added in properties file like below.

      # Main package where looking for classes (controllers, serializers)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s