0 Replies Latest reply on Dec 11, 2002 2:30 PM by Harry LeBlanc

    how to precompile jsps

    Harry LeBlanc Newbie

      This is probably a dumb question, but I'm trying to precompile my jsp files using jspc.sh, and I keep getting the following exception:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/SAXException
      at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:164)
      at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
      at org.apache.jasper.JspC.parseFiles(JspC.java:712)
      at org.apache.jasper.JspC.main(JspC.java:742)

      Now, my xerces-1.2.3.jar (which has the class in question) is in my classpath.
      I'm running JBoss 2.4.9, Tomcat 4.0.4, running on Redhat Linux 7.2 (and Oracle 8.1.7, though I don't think that's relevant to this problem).
      Deploying the ear file works just fine, and it does the just-in-time compilation fine. But I'd like to make sure I get a clean compile before I deploy it, it would save me lots of time. Not a life & death issue, but it sure would make development easier.
      I've tried running the setclasspath.sh script, but it doesn't seem to help.
      What am I doing wrong? I go to a directory with some jsp files, and run jspc.sh *.jsp -- is there something else I need to do?
      You can email me directly at hleblanc@bitstream.net if you wish.