Quantcast

ClassNotFoundException :org.hibernate.hql.ast.HqlToken

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ClassNotFoundException :org.hibernate.hql.ast.HqlToken

Saikat
I am trying to use HQL in one of the screen
def searchQuery="Select p from Provider where p.accountId =1"
def results=Provider.findAll(searchQuery)


the moment  it tries to execute this query , then I get the following error, it's happening only when I deploy in weblogic 10.x server.


[759624] errors.GrailsExceptionResolver org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [Select p from Provider where p.accountId =1]

 
I looked into the war file and I can found all the jars inside the lib folder.

Can anybody help me on this ????


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ClassNotFoundException :org.hibernate.hql.ast.HqlToken

chadsmall
This post has NOT been accepted by the mailing list yet.
I hit this today deploying to weblogic 10.3 and worked through by adding a weblogic.xml file with this contents to web-app/WEB-INF


<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
        xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    <wls:weblogic-version>10.3.0</wls:weblogic-version>
    <wls:container-descriptor>
        <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    </wls:container-descriptor>
</wls:weblogic-web-app>

thanks,
@chadsmall
Loading...