Search code examples
javagwterrai

WARN [ErraiMarshalling] using dynamic marshallers


I'm trying to figure out why this Warning is showing up, as my Errai app loads in GWT Dev mode:

[INFO] WARN [ErraiMarshalling] could not locate marshaller class. [INFO] WARN [ErraiMarshalling] using dynamic marshallers. dynamic marshallers are designed for development mode testing, and ideally should not be used in production. *

I have tried to put:

<extraJvmArgs>-Xmx1500m -XX:MaxPermSize=1000m -XX:-UseSplitVerifier -Derrai.marshalling.server.classOutput=${project.build.outputDirectory}</extraJvmArgs>

and this

<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>

Solution

  • In your ErraiApp.properties, add the following configuration:

    errai.marshalling.use_static_marshallers=true
    

    More on https://docs.jboss.org/author/display/ERRAI/ErraiApp.properties