1 Reply Latest reply on Apr 9, 2002 5:10 AM by Thomas Lauerbach

    JBoss3b + Tomcat 4, errors on deployment

    Thomas Lauerbach Newbie

      JBoss 244 and Tomcat 4 was running very well on my machine. With the new beta version problems started on deploying the first application.
      On dropping my war file into the deploy dir i get the following error:

      Internal Error: File /WEB-INF/web.xml not found

      The same app was running very well with the last stable version of jboss/tomcat.
      After having a look at the war file with winzip i discovered that the archive containst to types of WEB-INF directories:
      one with capital letters that contains all jboss libraries and one in lowercase letters (web-inf) that contains the web.xml .

      Did anybody else discover the same problem. Any solutions?


      By the way why has the directory structure changed, i see no advantages in the new structure.

        • 1. JBoss3b + Tomcat 4, errors on deployment
          Thomas Lauerbach Newbie

          After correcting the war-file manually it is deployed, but than its not possible to call a jsp-page. I get the following exception on the client:

          javax.servlet.ServletException: sun/tools/javac/Main
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
          at org.apache.catalina.core.StandardPipeline

          ...

          root cause

          java.lang.NoClassDefFoundError: sun/tools/javac/Main
          at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
          at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
          at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
          at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)


          On the serverconsole i found the following message:

          11:10:30,855 ERROR [XmlFileLoader] External entity not found: "http://java.sun.c
          om/dtd/web-app_2_3.dtd".:-1:2
          java.net.NoRouteToHostException: Host unreachable: connect
          at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108)
          at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav
          a:2796)
          at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1155)

          at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
          at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
          at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)