Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoClassDefFoundError: antlr/ANTLRException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.NoClassDefFoundError: antlr/ANTLRException

    Hi all,
    I've just moved my application to Spring 1.2RC and hibernate3 and made related changes net.sf.hibernate to org.hibernate and also org.springframework.orm.hibernate to org.springframework.orm.hibernate3 i get the following stack.
    Do you have any idea
    Best Regards
    DEBUG - AbstractFormController.showForm(476) | Setting form session attribute [com.sevenhill.web.genel.form.controller.GirisFormC ontroller.FORM.kullanici] to: com.sevenhill.model.genel.Kullanici@a57bb2[]
    DEBUG - AbstractFormController.getCommand(377) | Removing form session attribute [com.sevenhill.web.genel.form.controller.GirisFormC ontroller.FORM.kullanici]
    DEBUG - SimpleFormController.processFormSubmission(247) | No errors -> processing submit
    WARN - AbstractPlatformTransactionManager.rollback(473) | Should roll back transaction but cannot - no transaction available
    ERROR - StandardWrapperValve.invoke(253) | Servlet.service() for servlet stock threw exception
    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:735)
    at com.sevenhill.dao.genel.hibernate.KullaniciDaoHibe rnate.bulKullaniciAdaGore(KullaniciDaoHibernate.ja va:55)
    at com.sevenhill.service.genel.impl.KullaniciServisiI mpl.bulKullaniciAdaGore(KullaniciServisiImpl.java: 57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:310)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:155)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :122)
    at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:57)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :144)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:174)
    at $Proxy1.bulKullaniciAdaGore(Unknown Source)
    at com.sevenhill.web.genel.form.controller.GirisFormC ontroller.onSubmit(GirisFormController.java:53)
    at org.springframework.web.servlet.mvc.SimpleFormCont roller.processFormSubmission(SimpleFormController. java:248)
    at org.springframework.web.servlet.mvc.AbstractFormCo ntroller.handleRequestInternal(AbstractFormControl ler.java:243)
    at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest(AbstractController.java:128)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:684)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:625)
    at org.springframework.web.servlet.FrameworkServlet.s erviceWrapper(FrameworkServlet.java:386)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:355)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.displaytag.filter.ResponseOverrideFilter.doFil ter(ResponseOverrideFilter.java:125)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at com.opensymphony.module.sitemesh.filter.PageFilter .parsePage(PageFilter.java:118)
    at com.opensymphony.module.sitemesh.filter.PageFilter .doFilter(PageFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at com.sevenhill.util.MessageFilter.doFilter(MessageF ilter.java:38)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)

  • #2
    This is related to the Hibernate API. Hibernate 3.0 uses ANTLR (Another Tool for Language Recognition) for processing HSQL queries - if I remember correctly. You need to add an additional jar (someting like antlr*.jar) to your classpath.


    Cheers,

    Martin (Kersten)

    Comment


    • #3
      It is ANTLR-2.7.5H3.jar for me.

      Comment


      • #4
        Thanks Martin
        I've found that file under lib directory. It worked but i'm still getting another problems Hope i'll resolve it
        Thanks again
        Cheers

        Comment


        • #5
          It worked but i'm still getting another problems Smile Hope i'll resolve it
          I am sure you will make it. If not, just drop me a line.


          Cheers,

          Martin (Kersten)

          Comment

          Working...
          X