java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildListener

JBoss Issue Tracker | Anil Saldanha | 1 decade ago
  1. 0

    With the attached jboss-portal.sar, I get an exception from Tomcat which baffles me. Somehow the requestdispatcher.include is failing to locate a jsp compiler. I would appreciate if someone else on the portal team gives this a shot and sees the same issue as me. Somehow I feel I might have something stupid, but the jmx-console works fine (jsp compilation is done) How to reproduce: Place the attached jboss-portal.sar and the portal-modified-ds.xml in the deploy directory of your jboss-4.0.4rc1 directory (The error is similar on 4.0.3sp1) and then access http://localhost:8080/portal/ The error seen is: java.lang.IllegalStateException: No Java compiler available org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:224) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.portal.theme.LayoutDispatcher.execute(LayoutDispatcher.java:108) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65) org.jboss.portal.theme.LayoutDispatcher.include(LayoutDispatcher.java:143) org.jboss.portal.core.command.RenderPageCommand.renderMarkup(RenderPageCommand.java:178) org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:351) org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:164) org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:78) org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142) My environment: asaldhana@JBOSS-49354B0A2 ~/jboss-4.0/build/output/jboss-4.0.4RC1/bin $ ./run.sh ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: C:\cygwin\home\asaldhana\jboss-4.0\build\output\jboss-4.0.4RC1 JAVA: /cygdrive/c/java/jdk1.5.0_04/bin/java JAVA_OPTS: -server -Xms128m -Xmx512m -Djboss.server.temp.dir=C:/jboss-temp -Dprogram.name=run.sh CLASSPATH: C:\cygwin\home\asaldhana\jboss-4.0\build\output\jboss-4.0.4RC1\bin\run.jar;c:\java\jdk1.5.0_04\lib\tools.jar =========================================================================

    JBoss Issue Tracker | 1 decade ago | Anil Saldanha
    java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildListener
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Servlet java compiler missing

    Oracle Community | 9 years ago | 843841
    java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment
  4. 0

    ODI Oracle Loader for Hadoop : java.lang.NoClassDefFoundError: org/apache/hadoop/hive/serde2/objectinspector/ObjectInspector

    Oracle Community | 8 months ago | 3158099
    java.lang.NoClassDefFoundError: org/apache/hadoop/hive/serde2/objectinspector/ObjectInspector

  1. rlovtangen 2 times, last 1 week ago
  2. serious2monkeys 1 times, last 2 weeks ago
  3. rp 1 times, last 2 weeks ago
  4. malhobayyeb 3 times, last 2 weeks ago
  5. kjhdofjosvs 23 times, last 3 weeks ago
5 more registered users
90 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    org/apache/tools/ant/BuildListener

    at java.lang.Class.forName0()
  2. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:164)
    2 frames
  3. GWT dev
    JspServlet.service
    1. org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:233)
    2. org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:215)
    3. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559)
    4. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
    5. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    6. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    6 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    1 frame
  5. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    2 frames
  6. org.jboss.portal
    PortletRequestDispatcherImpl.execute
    1. org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:77)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  8. org.jboss.portal
    CommandFilter.doFilter
    1. org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    1 frame
  9. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    5 frames
  10. org.jboss.portal
    CatalogPortlet.render
    1. org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:98)
    2. org.jboss.portal.core.portlet.catalog.CatalogPortlet.render(CatalogPortlet.java:155)
    2 frames
  11. org.jboss.portlet
    JBossPortlet.render
    1. org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:360)
    1 frame
  12. org.jboss.portal
    Invocation.invokeNext
    1. org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:512)
    2. org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:429)
    3. org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
    4. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:142)
    5. org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
    6. org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37)
    7. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132)
    8. org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:48)
    9. org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37)
    10. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132)
    11. org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:169)
    12. org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37)
    13. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132)
    14. org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:86)
    15. org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37)
    16. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132)
    17. org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:85)
    18. org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:37)
    19. org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:132)
    19 frames