You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/11/13 06:33:02 UTC
DO NOT REPLY [Bug 4824] New: -
tomcat 4.0.1 won't build on Solaris 7
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4824
tomcat 4.0.1 won't build on Solaris 7
Summary: tomcat 4.0.1 won't build on Solaris 7
Product: Tomcat 4
Version: 4.0.1 Final
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Blocker
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: wes@wesbarris.com
jakarta-tomcat-4.0.1-src doesn't appear to build properly according to
the included BUILDING.txt instructions. I have downloaded the following
packages onto a Solaris 7 system:
jakarta-ant-1.4.1/
jakarta-ant-1.4.1-optional.jar
jakarta-servletapi-4/
jakarta-tomcat-4.0.1-src/
jaxp-1.1/
xerces-1_4_3/
The following statement is found in jakarta-tomcat-4.0.1-src/BUILDING.txt:
----------------------------------------------------------------------
(6) Steps (7) - (17) are optional, but are necessary to build a complete binary
distribution of Tomcat 4.0. Set the "full.dist" property to "on" in the
build.properties file (see step (17)) to build a complete distribution.
Regular contributors to Tomcat are encouraged to use the complete build
option.
----------------------------------------------------------------------
However, it appears that both steps 16 and 17 are necessary:
----------------------------------------------------------------------
(16) Customize Build Properties For This Subproject
Most Jakarta subprojects allow you to customize Ant properties (with default
values defined in the "build.xml" file. This is done by creating a text file
named "build.properties" in the source distribution directory (for property
definitions local to this subproject) and/or your user home directory (for
property definitions shared across subprojects). You can use the included
"build.properties.sample" file as a starting point for this.
Tomcat has many external dependencies that are satisfied by configuring
appropriate values in your <code>build.properties</code> file. The easiest
way to satisfy these dependencies is to copy the "build.properties.sample"
file (in the top-level Tomcat source directory) to "build.properties", and
then edit it to suit your environment. On Unix, this would be done as:
cd ${tomcat.source}
cp build.properties.sample build.properties
emacs build.properties
----------------------------------------------------------------------
The instructions do not explain how to customize "build.properties".
All the instructions say is "emacs build.properties". This really
doesn't provide any useful information. Am I supposed to comment
certain lines out?
When I attempt to run "ant dist", I get these errors:
----------------------------------------------------------------
Buildfile: build.xml
deploy-prepare:
deploy-static:
deploy:
[echo] Target: Catalina - Deploy ...
flags:
flags.display:
[echo] --- Build environment for Catalina ---
[echo] If ${property_name} is displayed, then the property is not set)
[echo] --- Build options ---
[echo] full.dist=${full.dist}
[echo] build.sysclasspath=${build.sysclasspath}
[echo] compile.debug=on
[echo] compile.deprecation=off
[echo] compile.optimize=on
[echo] --- Ant Flags ---
[echo] <style> task available (required)=true
[echo] --- JDK ---
[echo] jdk.1.2.present=true
[echo] jdk.1.3.present=true
[echo] jdk.1.4.present=${jdk.1.4.present}
[echo] --- Required Libraries ---
[echo] jaxp.present=true
[echo] jndi.present=true
[echo] regexp.present=true
[echo] servlet.present=true
[echo] --- Optional Libraries ---
[echo] javamail.present=${javamail.present}
[echo] jsse.present=${jsse.present}
[echo] jta.present=${jta.present}
[echo] junit.present=${junit.present}
[echo] ldap.present=true
[echo] tyrex.present=${tyrex.present}
[echo] --- Required JARs ---
[echo] jndi.jar.present(except JDK 1.3+)=${jndi.jar.present}
[echo] regexp.jar.present=true
[echo] servlet.jar.present=true
[echo] xerces.jar.present(except JDK 1.4+)=true
[echo] --- Optional JARs ---
[echo] tomcat-ajp.jar.present=true
[echo] javamail.jar.present=${javamail.jar.present}
[echo] jdbc20ext.jar.present=${jdbc20ext.jar.present}
[echo] jta.jar.present=${jta.jar.present}
[echo] junit.jar.present=${junit.jar.present}
[echo] ldap.jar.present=${ldap.jar.present}
[echo] tomcat-util.jar.present=true
[echo] tyrex.jar.present=${tyrex.jar.present}
[echo] --- Conditional compilation flags ---
[echo] compile.javamail=${compile.javamail}
[echo] compile.jmx=${compile.jmx}
[echo] compile.jndi=true
[echo] compile.jsse=${compile.jsse}
[echo] compile.jta=${compile.jta}
[echo] compile.junit=${compile.junit}
[echo] compile.ldap=true
[echo] compile.tyrex=${compile.tyrex}
[echo] --- Distribution flags ---
[echo] copy.tomcat-ajp.jar=true
[echo] copy.jdbc20ext.jar=${copy.jdbc20ext.jar}
[echo] copy.jndi.jar=${copy.jndi.jar}
[echo] copy.javamail.jar=${copy.javamail.jar}
[echo] copy.jta.jar=${copy.jta.jar}
[echo] copy.ldap.jar=${copy.ldap.jar}
[echo] copy.tyrex.jar=${copy.tyrex.jar}
[echo] copy.xerces.jar=true
build-prepare:
copy-activation.jar:
copy-tomcat-ajp.jar:
copy-jdbc20ext.jar:
copy-jndi.jar:
copy-jsse.jar:
copy-jta.jar:
copy-ldap.jar:
copy-tomcat-util.jar:
copy-tyrex.jar:
copy-xerces.jar:
build-static:
build-main:
[javac] Compiling 4 source files to
/usr/local/jakarta-tomcat-4.0.1-src/catalina/build/server/classes
[javac] Compiling 8 source files to
/usr/local/jakarta-tomcat-4.0.1-src/catalina/build/server/classes
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/connector/HttpRequestFacade.java:198:
Method getRequestURL() not found in interface
javax.servlet.http.HttpServletRequest.
[javac] return ((HttpServletRequest) request).getRequestURL();
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/connector/RequestFacade.java:139:
Method setCharacterEncoding(java.lang.String) not found in interface
javax.servlet.ServletRequest.
[javac] request.setCharacterEncoding(env);
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/connector/RequestFacade.java:175:
Method getParameterMap() not found in interface javax.servlet.ServletRequest.
[javac] return request.getParameterMap();
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/connector/ResponseFacade.java:223:
Method resetBuffer() not found in interface javax.servlet.ServletResponse.
[javac] response.resetBuffer();
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/core/ApplicationHttpRequest.java:523:
Method getParameterMap() not found in interface
javax.servlet.http.HttpServletRequest.
[javac] parameters = copyMap(request.getParameterMap());
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java:371:
Method resetBuffer() not found in interface javax.servlet.ServletResponse.
[javac] response.resetBuffer();
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/session/StandardSession.java:1070:
Wrong number of arguments in constructor.
[javac] new HttpSessionBindingEvent((HttpSession) this, name,
value);
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/session/StandardSession.java:1182:
Wrong number of arguments in constructor.
[javac] event = new HttpSessionBindingEvent
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/session/StandardSession.java:1185:
Wrong number of arguments in constructor.
[javac] event = new HttpSessionBindingEvent
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/session/StandardSessionFacade.java:151:
Method getServletContext() not found in interface
javax.servlet.http.HttpSession.
[javac] return session.getServletContext();
[javac] ^
[javac]
/usr/local/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java:422:
Method getParameterMap() not found in interface
javax.servlet.http.HttpServletRequest.
[javac] Map parameters = hreq.getParameterMap();
[javac] ^
[javac] Note: 4 files use or override a deprecated API. Recompile with
"-deprecation" for details.
[javac] 11 errors, 1 warning
Total time: 11 seconds
BUILD FAILED
/usr/local/jakarta-tomcat-4.0.1-src/catalina/build.xml:480: Compile failed,
messages should have been provided.
----------------------------------------------------------------
Being new to tomcat, I don't understand what these errors are telling
me.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>