2 Replies Latest reply on Jan 28, 2002 1:15 PM by Frank Stolte

    Application doesn't run after changing to latest JBoss/Jetty

    Frank Stolte Newbie

      Hi,

      I’m using JBoss-2.4.4_Jetty-3.1.3-1 with jdk1.3.1 on windows 2000 together with MySQL.
      My application did work well under an earlier version JBoss-2.4.0BETA_Jetty-3.1.RC5. Now after I moved to the latest version of Jboss my application deploys and starts but at the following line

      getServletConfig().getServletContext().getRequestDispatcher(getScreenFlowManager().getTemplate(locale)).forward(request, response);

      it falls over because a class def. is missing. I compiled it with the classes in javax.servlet.jar that come with Jetty and they are also added to the classpath as the following part of the logfile shows

      [16:34:10,357,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/com.sun.net.ssl.jar
      [16:34:10,357,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/javax.servlet.jar
      [16:34:10,417,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/javax.xml.jaxp.jar
      [16:34:10,427,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/org.apache.crimson.jar
      [16:34:10,427,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/org.apache.jasper.jar
      [16:34:10,427,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty/lib/org.mortbay.jetty.jar
      [16:34:10,658,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty-jmx/lib/jmxri.jar
      [16:34:10,658,ClassPathExtension] Added library:file:/D:/JBoss-2.4.4_Jetty-3.1.3-1/jetty-jmx/lib/jmxtools.jar
      [16:34:10,678,ClassPathExtension] Added

      This is the error message I get

      [11:38:38,839,Default] MainServlet finished and using template
      [11:38:40,331,JettyService] WARNING: Servlet Exception for /betting/control/main
      java.lang.NoClassDefFoundError: sun/tools/javac/Main
      at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
      at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:448)
      at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
      at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:151)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:163)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:403)
      at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1037)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:223)
      at net.frankdesign.control.web.MainServlet.doGet(MainServlet.java:123)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:488)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:403)
      at org.mortbay.http.HandlerContext.handle(HandlerContext.java:1037)
      at org.mortbay.http.HandlerContext.handle(HandlerContext.java:992)
      at org.mortbay.http.HttpServer.service(HttpServer.java:699)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:745)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:918)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:760)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:148)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716)
      at java.lang.Thread.run(Unknown Source)

      Help is urgently needed!

      Thank’s

      Frank