tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: our attempt to build tomcat 4.1.27 from source on Solaris 2.8
Date Wed, 24 Sep 2003 02:49:38 GMT
It doesn't look like you got the servletapi-4 project (or it is in the wrong
place).  Try doing:
   ant download
to make certain that you've got all of the jars you need to build Tomcat.
If you are behind a firewall, you'll need to set the values of 'proxy.host'
and 'proxy.port' in your build.properties file first.

I build Tomcat 4.1.x from source on Solaris pretty regularly, so it
definately can be done ;-).

"Ziying Sherwin" <sherwin@lhc.nlm.nih.gov> wrote in message
news:Pine.GSO.4.21.0309231454090.19227-100000@hume.nlm.nih.gov...
>
> Dear tomcat Colleagues,
>
> We have been trying to build tomcat 4.1.27 from source, which we
downloaded
> from the cvs repository (cvs.apache.org) onto a SPARC computer
> running Solaris 2.8, using j2sdk 1.4.0.  Unfortunately, the installation
> failed, and we are hoping to find helpful insights to get us back on the
road.
> We have successfully installed the pre-built binary for tomcat, but
strongly
> prefer to build it from source.  We posted several messages to the mailing
> list several weeks ago, asking for help, but received no replies.
>
> Here is a detailed summary of what we did, and the outcome.
> FIrst, we installed the following related packages:
>
>    ant 1.5.3-1
>    jaf 1.0.2
>    Java XML Pack Fall 01 FCS Bundle
>    javamail 1.3
>    jdbc 2.0
>    JMX 1.2
>    JNDI 1.2.1
>    jsse 1.0.2
>    jta 1.0.1
>    xerces 2.4.0
>
> We downloaded the following tomcat modules from the indicated locations:
>
>    commons-beanutils-1.6.1
(http://www.apache.org/dist/jakarta/commons/beanutils/binaries/commons-beanu
tils-1.6.1.tar.gz)
>    commons-collections-2.1
(http://www.apache.org/dist/jakarta/commons/collections/binaries/collections
-2.1.tar.gz)
>    commons-digester-1.4.1
(http://www.apache.org/dist/jakarta/commons/digester/binaries/commons-digest
er-1.4.1.tar.gz)
>    commons-dbcp-1.0
(http://jakarta.apache.org/builds/jakarta-commons/release/commons-dbcp/v1.0/
commons-dbcp-1.0.zip)
>    commons-fileupload-1.0
(http://www.apache.org/dist/jakarta/commons/fileupload/commons-fileupload-cu
rrent.tar.gz)
>    commons-logging-1.0.2
(http://jakarta.apache.org/builds/jakarta-commons/release/commons-logging/v1
.0.2/commons-logging-1.0.2.tar.gz)
>    commons-modeler-1.0
(http://jakarta.apache.org/builds/jakarta-commons/release/commons-modeler/v1
.0/commons-modeler-1.0.tar.gz)
>    commons-pool-1.0.1
(http://jakarta.apache.org/builds/jakarta-commons/release/commons-pool/v1.0.
1/commons-pool-1.0.1.tar.gz)
>    struts
(http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.2/jakarta-stru
ts-1.0.2.tar.gz)
>
> We also obtained the cvs versions of "jakarta-tomcat-connectors" and
> "jakarta-tomcat-jasper" from the jakarta site from which we obtained
tomcat.
>
> We customized the build properties by editing the file build.properties to
> reflect the correct paths to all the packages.
>
> However, when we started to build the package using command "ant dist", we
> observed the following error messages:
>
>    build-only:
>        [javac] Compiling 79 source files to
/src/tomcat_4.1.27/jasper/build/shared/classes
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/JspC.java:71: package javax.servlet does not exist
>        [javac] import javax.servlet.ServletException;
>        [javac]                      ^
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/Options.java:66: package javax.servlet does not exist
>        [javac] import javax.servlet.ServletConfig;
>        [javac]                      ^
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/Options.java:67: package javax.servlet does not exist
>        [javac] import javax.servlet.ServletContext;
>        [javac]                      ^
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/servlet/JspCServletContext.java:73: package javax.servlet does not exist
>        [javac] import javax.servlet.RequestDispatcher;
>        [javac]                      ^
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/servlet/JspCServletContext.java:74: package javax.servlet does not exist
>    [...]
>
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/compiler/JspUtil.java:105: cannot resolve symbol
>        [javac] symbol  : class ExpressionEvaluatorImpl
>        [javac] location: class org.apache.jasper.compiler.JspUtil
>        [javac]     private static ExpressionEvaluatorImpl
expressionEvaluator
>        [javac]                    ^
>        [javac]
/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper
/compiler/JspUtil.java:627: cannot resolve symbol
>        [javac] symbol  : class FunctionMapper
>        [javac] location: class org.apache.jasper.compiler.JspUtil
>        [javac]                                            FunctionMapper
functionMapper,
>        [javac]                                            ^
>        [javac] Note: Some input files use or override a deprecated API.
>        [javac] Note: Recompile with -deprecation for details.
>        [javac] 100 errors
>
>    BUILD FAILED
>    file:/src/tomcat_4.1.27/jakarta-tomcat-jasper/jasper2/build.xml:127:
Compile failed; see the compiler error output for details.
>
> There is no mention of jasper in the file BUILDING.txt which came with the
> source distribution.  Is jasper required by the tomcat build?  If not, is
there
> a way to disable it?  How can we build jasper from source?
>
> Thanks in advance for any insights into our problems!
>
> Best Regards,
>
> Ziying Sherwin (sherwin@nlm.nih.gov)
> Rick Rodgers (rodgers@nlm.nih.gov)




Mime
View raw message