This needs to be a java.lang.Integer, it's invoked from a classloader that contains a different Scala, so can't accept any Scala arguments:

https://github.com/playframework/Play20/blob/master/documentation/project/Build.scala#L92

Convert it to a Some when passing the argument to the NettyServer constructor.