3 Replies Latest reply on Feb 24, 2007 1:14 AM by jwenting

    Urgent:Error while accessing deployed application in JBoss4.

    ushashi

      Our application got successfully deployed in JBoss4.0.3SP1 in linux environment
      ANT version 1.7.0
      JDK version 1.5.0.06
      Ant and JAVA path are mentioned in profile and
      version of ant and java are echoed correctly when we give ant -version and java -version.

      Error Description:

      While accesing the application we get the following error,

      The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: org/apache/tools/ant/Main
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

      root cause

      java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
      org.apache.tools.ant.Project.initProperties(Project.java:308)
      org.apache.tools.ant.Project.init(Project.java:295)
      org.apache.jasper.compiler.AntCompiler.getProject(AntCompiler.java:74)
      org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:129)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
      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.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.


      Kindly let us know the solution if anyone has encountered and solved this problem. very urgent.

      Thanks