struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #393 has been filed.
Date Wed, 15 Nov 2000 21:28:48 GMT
Bug report #393 has just been filed.

You can view the report at the following URL:


REPORT #393 Details.

Project: Struts
Category: Bug Report
SubCategory: New Bug Report
Class: docbug
State: received
Priority: medium
Severity: non-critical
Confidence: public
   Release: latest
   JVM Release: any
   Operating System: all
   OS Release: any
   Platform: any

problems with build.dat and setting SERVLETAPI_HOME

I've had problems building from source with SERVLETAPI_HOME
set.  The documentation at:

says that either the SERVLETAPI_HOME must be set (to
the directory containing 'lib\servlet.jar') or the
jar file must be part of the CLASSPATH.

I've found that when servlet.jar is not part of the
CLASSPATH, and SERVLETAPI_HOME is correctly set, the
the 'javadoc' task in 'build.bat dist' generates
errors because it cannot find the Servlet classes.
I tried to remedy this by adding the attribute:


to the 'javadoc' task.  However, Javadoc was able
to find the Servlet classes, but was no longer able
to find the XML classes.  It seems that the classpath
attribute in the 'javadoc' task overrides the CLASSPATH
environment variable.

My conclusion is that:
  1. SERVLETAPI_HOME should not be set, and the
     Servlet Jar should be added to the CLASSPATH
     environment variable.
  2. -Dservlet.home %SERVLETAPI_HOME%\lib\servlet.jar
     can be removed from 'build.bat'
  3. all instances of ${servlet.jar} may be removed
     from 'build.xml'

View raw message