2 Replies Latest reply on Apr 6, 2010 6:54 PM by Arbi Sookazian

    java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding

    Arbi Sookazian Master

      I have a Seam 2.1.1.GA app running on JBoss 4.2.2.GA.  It runs fine on my Windows dev box.  When I copy the exploded EAR over via filezilla to the Linux box and start JBoss, I see the following stack trace when I navigate to my app's URL:

       

      {code}java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding      org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:256)      org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:149)      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:399)      org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96){code}

       

      I found a JAR which contains this class (I'm assuming this location is in the JBoss search/classpath):

       

      \jboss-4.2.2.GA\server\all\deploy\jboss-web.deployer\jasper-jdt.jar

       

      the same JAR exists in the same directory in the Linux box.  Any idea why this is happening and what I should do to fix it?  thx.

        • 1. Re: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding
          Arbi Sookazian Master

          {code}11:07:29,594 ERROR [BaseXMLFilter] Exception in the filter chain
          javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
                  at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                  at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                  at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                  at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                  at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                  at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                  at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding
                  at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:256)
                  at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:149)
                  at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:399)
                  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
                  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
                  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
                  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265){code}

          • 2. Re: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding
            Arbi Sookazian Master

            Unable to reproduce after re-deploy/restart.  Seems kinda buggy to me...