cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: FIQL to JPA failing
Date Wed, 02 Oct 2013 09:42:42 GMT
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.
>


Mime
View raw message