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.

 

Advertisements

Published by

Eduardo Yáñez Parareda

https://www.linkedin.com/in/eduardoyanez

6 thoughts on “SerfJ 0.4.0 released”

  1. HI Team

    I am getting the following exception,

    net.sf.serfj.config.ConfigFileIOException: \config\serfj.properties (The system cannot find the path specified)
    net.sf.serfj.config.SystemConfig.init(SystemConfig.java:179)
    net.sf.serfj.config.SystemConfig.(SystemConfig.java:53)
    net.sf.serfj.Config.(Config.java:70)
    net.sf.serfj.RestServlet.init(RestServlet.java:74)
    javax.servlet.GenericServlet.init(GenericServlet.java:212)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Unknown 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/serfj.properties 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)
      main.package=com.company

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s