title: Java EE Persistence WELD-001408 when deploying on wildfly
body: <p>I have a problem, when I want to deploy my application on wildfly.</p>
  
  <p>This is my persistence:</p>
  
  <pre><code>&lt;persistence-unit name="jws" transaction-type="JTA"&gt;
      &lt;class&gt;lv.lavloz.merrill.generator.v1.model.ID&lt;/class&gt;
      &lt;jta-data-source&gt;java:jboss/datasources/MySQL/JWSDS&lt;/jta-data-source&gt;
      &lt;properties&gt;
          &lt;property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/&gt;
      &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p>The connection url for the jndi <code>java:jboss/datasources/MySQL/JWSDS</code> is <code>jdbc:mysql://localhost:3306/db</code>.</p>
  
  <p>And this is the ejb :</p>
  
  <pre><code>@Stateless
  public class GeneratorBean {
      @PersistenceContext(unitName = "jws")
      private EntityManager em;
  ...
  }
  </code></pre>
  
  <p>When I want to deploy my application to wildfly, I get the error message</p>
  
  <pre><code>java.lang.Exception: {"JBAS014671: Failed services" =&gt; {"jboss.deployment.unit.\"jws_ear.ear\".WeldStartService" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jws_ear.ear\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ParamConverterFactory with qualifiers @Default
    at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorFactory(ParamConverterFactory)
    at org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorFactory.&lt;init&gt;(MultivaluedParameterExtractorFactory.java:0)
  WELD-001474: Class org.glassfish.jersey.server.internal.inject.ParamConverterFactory is on the classpath, but was ignored because a class it references was not found: org.glassfish.hk2.api.ServiceLocator from [Module \"deployment.jws_ear.ear:main\" from Service Module Loader].
  "}}
  </code></pre>
  
  <p>What to do?</p>