title: Scala enumeration serialization in jersey/jackson is not working for me
body: <p>I've read the jackson-module-scala page on enumeration handling (<a href="https://github.com/FasterXML/jackson-module-scala/wiki/Enumerations" rel="nofollow">https://github.com/FasterXML/jackson-module-scala/wiki/Enumerations</a>). Still I'm not getting it to work. The essential code goes like this:</p>
  
  <pre><code>@Path("/v1/admin")
  @Produces(Array(MediaType.APPLICATION_JSON + ";charset=utf-8"))
  @Consumes(Array(MediaType.APPLICATION_JSON + ";charset=utf-8"))
  class RestService {
  
    @POST
    @Path("{type}/abort")
    def abortUpload(@PathParam("type") typeName: ResourceTypeHolder) {
      ...
    }
  }
  
  object ResourceType extends Enumeration {
      type ResourceType = Value
      val ssr, roadsegments, tmc, gab, tne = Value
  }
  
  class ResourceTypeType extends TypeReference[ResourceType.type]
  case class ResourceTypeHolder(
    @JsonScalaEnumeration(classOf[ResourceTypeType])
    resourceType:ResourceType.ResourceType
  )
  </code></pre>
  
  <p>This is how it's supposed to work, right? Still I get these errors:</p>
  
  <pre><code>Following issues have been detected:
  WARNING: No injection source found for a parameter of type public void no.tull.RestService.abortUpload(no.tull.ResourceTypeHolder) at index 0.
  
  unavailable
  org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization.
  [[FATAL] No injection source found for a parameter of type public void no.tull.RestService.abortUpload(no.tull.ResourceTypeHolder) at index 0.; source='ResourceMethod{httpMethod=POST, consumedTypes=[application/json; charset=utf-8], producedTypes=[application/json; charset=utf-8], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class no.tull.RestService, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@7ffe609f]}, definitionMethod=public void no.tull.RestService.abortUpload(no.tull.ResourceTypeHolder), parameters=[Parameter [type=class no.tull.ResourceTypeHolder, source=type, defaultValue=null]], responseType=void}, nameBindings=[]}']
      at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:467)
      at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:163)
      at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:323)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)
  </code></pre>
  
  <p>I have also assembled a tiny runnable project (while trying to eliminate any other complications) that demonstrates the problem: <a href="https://dl.dropboxusercontent.com/u/15543774/project.tgz" rel="nofollow">project.tgz</a></p>
  
  <p><strong>Update:</strong> Created an sbt-file to see if gradle was building a strange build. Got the same result, but this is the <em>build.sbt</em>:</p>
  
  <pre><code>name := "project"
  
  version := "1.0"
  
  scalaVersion := "2.10.4"
  
  val jacksonVersion = "2.4.1"
  val jerseyVersion = "2.13"
  
  libraryDependencies ++= Seq(
    "com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion,
    "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
    "com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-json-provider" % jacksonVersion,
    "com.fasterxml.jackson.jaxrs" % "jackson-jaxrs-base" % jacksonVersion,
    "com.fasterxml.jackson.module" % "jackson-module-scala_2.10" % jacksonVersion,
    "org.glassfish.jersey.containers" % "jersey-container-servlet-core" % jerseyVersion
  )
  
  seq(webSettings :_*)
  
  libraryDependencies ++= Seq(
    "org.eclipse.jetty" % "jetty-webapp" % "9.1.0.v20131115" % "container",
    "org.eclipse.jetty" % "jetty-plus"   % "9.1.0.v20131115" % "container"
  )
  </code></pre>
  
  <p>... and this is the <em>project/plugins.sbt</em>:</p>
  
  <pre><code>addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.0")
  </code></pre>