Announcement Announcement Module
Collapse
No announcement yet.
Error when brows data with Spring 1.2rc1 + Hibernate 3.0rc1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when brows data with Spring 1.2rc1 + Hibernate 3.0rc1

    can brows data with Spring 1.1.5 + Hibernate 3.0, but when with Spring 1.2rc1 + Hibernate 3.0, it have error:
    java.lang.NoClassDefFoundError: antlr/ANTLRException
    at org.hibernate.hql.ast.ASTQueryTranslatorFactory.cr eateQueryTranslator(ASTQueryTranslatorFactory.java :27)
    at org.hibernate.impl.SessionFactoryImpl.createQueryT ranslators(SessionFactoryImpl.java:344)
    at org.hibernate.impl.SessionFactoryImpl.getQuery(Ses sionFactoryImpl.java:410)
    at org.hibernate.impl.SessionImpl.getQueries(SessionI mpl.java:814)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.ja va:773)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:7 4)
    at org.springframework.orm.hibernate3.HibernateTempla te$29.doInHibernate(HibernateTemplate.java:748)
    at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:310)
    at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:739)
    at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:731)
    at com.qwcompany.system.common.nationbeanDAO.getcount (nationbeanDAO.java:242)
    at com.qwcompany.system.common.nationbeanDAO.findSQL( nationbeanDAO.java:163)
    at com.qwcompany.system.common.nationbeanManager.find SQL_all(nationbeanManager.java:155)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:310)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:163)
    at $Proxy6.findSQL_all(Unknown Source)
    at com.qwcompany.system.common.nationbrowController.h andleRequest(nationbrowController.java:121)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:675)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:623)
    at org.springframework.web.servlet.FrameworkServlet.s erviceWrapper(FrameworkServlet.java:384)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:344)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:288)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :75)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:561)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1018)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:196)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:561)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1018)
    at org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2748)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:186)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:151)
    at org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:149)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:149)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:561)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1018)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:561)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1018)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:630)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:463)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:568)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:631)
    at java.lang.Thread.run(Unknown Source)

  • #2
    You need the ANTLR jars on your classpath.

    Rob

    Comment

    Working...
    X