2 Replies Latest reply on Jul 28, 2003 5:02 AM by gfzhang

    The parent directory name cannot include any space chars?

    gfzhang

      I use jboss-3.2.1_tomcat-4.1.24, and it is installed in the directory under C:\Program Files. When I access the page, the following error displayed:

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: -1 in the jsp file: null

      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] javac: invalid argument: C:\Program
      [javac] Usage: javac <source files>
      [javac] where possible options include:
      [javac] -g Generate all debugging info
      [javac] -g:none Generate no debugging info
      [javac] -g:{lines,vars,source} Generate only some debugging info
      ....

      But if I move the directory to the directory which name does not include space chars, the app work fine.

      I donot meet this problem in the previous JBoss+Tomecat.

      what's wrong with the configuratiion? Thanks

        • 1. Re: The parent directory name cannot include any space chars
          jonlee

          I'm not quite sure which was your previous Tomcat package but Jasper2 now uses Ant to invoke the Java compiler. This is a Tomcat development. Ant will probably have problems creating the compiler invocation and "wrapping" the path correctly.

          However, you should probably avoid placing JBoss and Tomcat installations in a path with spaces in them. This tends to cause problems with JNDI namespace bindings and RMI - particularly for remote clients. This is not particularly a JBoss or Tomcat issue but related to the Sun Java implementation AFAIK from JDC postings in the past.

          • 2. Re: The parent directory name cannot include any space chars
            gfzhang

            Thank you!

            The previous version I used is jboss-3.0.4_tomcat-4.1.12