You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Stephen F. Kispersky" <st...@wonder2.TGFS.COM> on 2000/12/11 20:55:21 UTC
Tomcat Build Problem on Solaris
Dear Tomcatters,
I tried to update my Apache/JServ installation to Tomcat, and had some
problems. Could you please comment??
Thanks,
Steve Kispersky
Environment:
- Solaris 7, SPARC Ultra 5
- Tomcat 3.2 source
- Apache 1.3.12
Problems:
- In the README, "servletapi" is referenced, but it is not to be found on the
Tomcat site that I could see. I tried substituting the JSAPI classes on
Sun site (version 2.2).
- After untaring the Tomcat source, I found the shell scripts to be lacking
the executable file mode, and also had to translate them to Unix file
format before they would run!
- My build came up with compile errors (see listing below)
Build Listing:
# ./build.sh
Searching for build.xml ...
Buildfile: /usr/local/jakarta/jakarta-tomcat-3.2-src/build.xml
prepare:
tomcat:
[javac] Compiling 26 source files to /usr/local/jakarta/build/tomcat/classes
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspCompiler.java:136: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName( getClassFileName() );
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspCompiler.java:137: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement.
[javac] } catch( JasperException ex) {
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspParseEventListener.java:867: Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspParseEventListener.java:877: Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:462: Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:467: Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:471: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement.
[javac] } catch (FileNotFoundException ex) {
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:473: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement.
[javac] } catch (JasperException ex) {
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler.
[javac] clc.compile();
[javac] ^
[javac] /usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/tomcat/request/JspInterceptor.java:205: Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] compiler.compile();
[javac] ^
[javac] Note: 3 files use or override a deprecated API. Recompile with "-deprecation" for details.
[javac] 10 errors, 1 warning
BUILD FAILED
Re: Tomcat Build Problem on Solaris
Posted by Kief Morris <ki...@bitBull.com>.
Stephen F. Kispersky typed the following on 11:55 11/12/2000 -0800
>- In the README, "servletapi" is referenced, but it is not to be found on the
> Tomcat site that I could see. I tried substituting the JSAPI classes on
> Sun site (version 2.2).
If you go to http://jakarta.apache.org/builds/tomcat/release/v3.2/src/,
you should see jakarta-servletapi-3.2-src.tar.gz.
>- After untaring the Tomcat source, I found the shell scripts to be lacking
> the executable file mode, and also had to translate them to Unix file
> format before they would run!
Hmm, I just downloaded a fresh copy of the 3.2 final source. build.sh has
its bits set properly, and line endings are Unix-style. Just for reference,
my jakarta-tomcat-3.2-src.tar is 6,256,640 bytes - double check yours,
maybe you should d/l it again.
I'm running TC 3.2 on Solaris 7 also, so let me know if you have problems.
Kief
---
bitBull makes the Internet bite: http://www.bitBull.com/demos/