1 Reply Latest reply on Jun 6, 2003 5:00 PM by toftgaard

    Long classpath under Windows makes JSP compiles fail

    toftgaard Newbie

      Hi,

      I've used JBoss under Solaris for a while. We're moving development and testing on to a Windows box.

      In that respect we've found a problem when the JSP page is dynamically compiled. The classpath used in the command line for javac is simply too long, e.g.:

      23:21:51,968 ERROR [STDERR] Caused by: java.io.IOException: CreateProcess: javac.exe -classpath C:\java\jboss\bin\run.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\classes;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\web
      app\WEB-INF\lib\commons-beanutils.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-collectio
      ns.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-dbcp.jar;C:\temp\Jetty_0_0_0_0_8080__rdb
      msolutions_web\webapp\WEB-INF\lib\commons-digester.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\
      commons-fileupload.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-lang.jar;C:\temp\Jetty_0
      _0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-logging.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\weba
      pp\WEB-INF\lib\commons-pool.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-resources.jar;C
      :\temp\Jetty_0_0_0_0_8080__rdbmsolutions_web\webapp\WEB-INF\lib\commons-validator.jar;C:\temp\Jetty_0_0_0_0_8080__rdbmso
      luti?

      I haven't been counting but I bet the last character(?) is at around position 1024.

      Is there any way to 'minimise' the classpath, e.g. smaller names for the jetty components?

      Thanks in advance for your help!

      Best regards,

      Morten