title: Jpa Query Works on Jetty Embedded, but doesn't run when deployed to Jetty
body: <p>The query is</p>
  
  <pre><code>em.createQuery("select bp from BlogPost bp WHERE ?1 MEMBER OF bp.categories")
                  .setParameter(1, c)
                  .getResultList();
  </code></pre>
  
  <p>In my integrated test container it runs fine, it's on a custom Jetty Instance I have in my code.</p>
  
  <p>When deployed using gradle jettyRun or jettyRunWar however, it can't run the query above, I get a blank result set and the following error.</p>
  
  <blockquote>
    <p>4528  Simple  WARN   [1241194115@qtp-739763767-0] openjpa.Runtime -
    Supplied user parameters "[1]" do not match expected parameters "[]"
    for the prepared query "PreparedQuery: [select bp from BlogPost bp
    WHERE ?1 MEMBER OF bp.categories] --> [SELECT t0.id, t2.id,
    t2.accessLevel, t3.id, t3.address1, t3.address2, t3.city , t3.country,
    t3.homephone, t3.mobilephone, t3.postal, t3.province, t2.identifier,
    t2.password_md5, t0.body, t0.dateCreated, t0.datePublished, t0.title
    FROM BlogPost t0 INNER JOIN BlogPost_BlogCategory t1 ON t0.id =
    t1.BLOGPOST_ID LEFT OUTER JOIN User t2 ON t0.author = t2.id LEFT OUTER
    JOIN ContactInfo t3 ON t2.contact Info = t3.id WHERE (t1.CATEGORIES_ID
    IS NULL)]".</p>
  </blockquote>
  
  <p>I could just code around it, but the MEMBER OF makes it a lot simpler, it's strange that depending on how it's deployed in the web container it runs differently.</p>