Hi,

Looks like JPA1 libs are somewhere on the classpath,
check

http://stackoverflow.com/questions/13980546/javax-persistence-entitymanager-getcriteriabuilderljavax-persistence-criteria,

that may help

Sergey

On 01/10/13 20:44, dima wrote:
Hi, any idea why this may be failing?
Thanks,
                SearchCondition<Study> searchCondition =
searchContext.getCondition(Study.class);
                 SearchConditionVisitor<Study, TypedQuery&lt;Study>> visitor
= new JPATypedQueryVisitor<Study>(entityManager, Study.class);
      58          searchCondition.accept(visitor); // this line is failing
with:


java.lang.NoSuchMethodError:
javax.persistence.EntityManager.getCriteriaBuilder()Ljavax/persistence/criteria/CriteriaBuilder;

org.apache.cxf.jaxrs.ext.search.jpa.AbstractJPATypedQueryVisitor.visit(AbstractJPATypedQueryVisitor.java:117)

org.apache.cxf.jaxrs.ext.search.SimpleSearchCondition.accept(SimpleSearchCondition.java:321)
        handlers.QueryHandler.getStudy(QueryHandler.java:58)...



--
View this message in context: 
http://cxf.547215.n5.nabble.com/FIQL-to-JPA-failing-tp5734678.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to