mapringteam
asked on
ClassNotFoundException: org.hibernate.hql.ast.HqlToken
Hi,
I create an AXIS2 web services. My AXIS2 is deployed within Tomcat 6 container. I use Hibernate 3.2 within my service to connect to MySQL 5 database. I get the below stack trace when I try to connect to the web service. The hibernate code just run fine if I run it in as console application. I have read about the changing the HQL parser to a classic one, it doesnt work for me and result in an error saying "Time out".
Thanks,
org.apache.axis2.AxisFault : ClassNotFoundException: org.hibernate.hql.ast.HqlT oken [from com.mapring.career.Job where job_status='open']
at org.apache.axis2.util.Util s.getInbou ndFaultFro mMessageCo ntext(Util s.java:486 )
at org.apache.axis2.descripti on.OutInAx isOperatio nClient.ha ndleRespon se(OutInAx isOperatio n.java:343 )
at org.apache.axis2.descripti on.OutInAx isOperatio nClient.se nd(OutInAx isOperatio n.java:387 )
at org.apache.axis2.descripti on.OutInAx isOperatio nClient.ex ecuteImpl( OutInAxisO peration.j ava:211)
at org.apache.axis2.client.Op erationCli ent.execut e(Operatio nClient.ja va:163)
at com.mapring.career.Mapring CareerStub .getVacanc ies(Maprin gCareerStu b.java:181 )
at Testing.main(Testing.java: 13)
I create an AXIS2 web services. My AXIS2 is deployed within Tomcat 6 container. I use Hibernate 3.2 within my service to connect to MySQL 5 database. I get the below stack trace when I try to connect to the web service. The hibernate code just run fine if I run it in as console application. I have read about the changing the HQL parser to a classic one, it doesnt work for me and result in an error saying "Time out".
Thanks,
org.apache.axis2.AxisFault
at org.apache.axis2.util.Util
at org.apache.axis2.descripti
at org.apache.axis2.descripti
at org.apache.axis2.descripti
at org.apache.axis2.client.Op
at com.mapring.career.Mapring
at Testing.main(Testing.java:
ASKER
Thanks for your comment,
MapringCareerStub.getVacan cies dooesn't return hibernate reference. What it returns is a complex type entity defined in my WSDL. I load the hibernate object from the database and copy the value (HibernateObject.getX()) column by column to the complex type.
More comments are welcome.
Thanks in advance.
MapringCareerStub.getVacan
More comments are welcome.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your comment,
I think there is nothing related to copy by reference because it still show the same error even when I just issue the statement:
session.createQuery("from Job");
session.close();
Thank u,
I think there is nothing related to copy by reference because it still show the same error even when I just issue the statement:
session.createQuery("from Job");
session.close();
Thank u,
Either
1. You have to include the Hibernate libraries in the client
or
2. Do a conversion int the service implementation so that it returns reference of the entities defined in the WSDL!