You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andy <ac...@yahoo.com> on 2000/12/14 11:07:04 UTC
Re: 3.2.1 build fails - any ideas?
Hello Stefan,
This is just a wild guess but make sure you don't have old
tomcat/jakarta/etc
stuff in your classpath. it could be picking up the old stuff first
(earlier in
the classpath) which would likely cause missing methods/etc (as they'd not
been implemented.
In the future please don't cross-post these kinds of questions to
tomcat-dev.
-Andy
Stefán F. Stefánsson wrote:
> Hello. I'm getting the following error when I try to build Tomcat
> 3.2.1. I've been using (and building) Tomcat 3.2 successfully:
>
> ----------------------------------BEGIN---------------------------------
> -------
>
> tomcat:
> [javac] Compiling 193 source files to
> C:\jakarta\build\tomcat\classes
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompil
> er.java:136: Method getClassName(java.lang.String) not f
> ound in class org.apache.jasper.compiler.ClassName.
> [javac] realClassName = ClassName.getClassName(
> getClassFileName() );
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompil
> er.java:137: Exception org.apache.jasper.JasperException
> is never thrown in the body of the corresponding try statement.
> [javac] } catch( JasperException ex) {
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseE
> ventListener.java:867: Wrong number of arguments in cons
> tructor.
> [javac] = new GeneratorWrapper(new
> ForwardGenerator(start, attrs, param),
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseE
> ventListener.java:877: Wrong number of arguments in cons
> tructor.
> [javac] = new GeneratorWrapper(new
> IncludeGenerator(start, attrs, param),
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329:
> Wrong number of arguments in constructor.
> [javac] CommandLineContext clctxt = new
> CommandLineContext(
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367:
> Method compile() not found in class org.apache.jasper.compi
> ler.CommandLineCompiler.
> [javac] clc.compile();
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392:
> Exception org.apache.jasper.JasperException is never thrown
> in the body of the corresponding try statement.
> [javac] } catch (JasperException je) {
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet
> .java:462: Method compile() not found in class org.apach
> e.jasper.compiler.Compiler.
> [javac] outDated = compiler.compile();
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet
> .java:467: Method compile() not found in class org.apach
> e.jasper.compiler.Compiler.
> [javac] outDated = compiler.compile();
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet
> .java:471: Exception java.io.FileNotFoundException is ne
> ver thrown in the body of the corresponding try statement.
> [javac] } catch (FileNotFoundException ex) {
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet
> .java:473: Exception org.apache.jasper.JasperException i
> s never thrown in the body of the corresponding try statement.
> [javac] } catch (JasperException ex) {
> [javac] ^
> [javac]
> C:\jakarta\jakarta-tomcat\src\share\org\apache\tomcat\request\JspInterce
> ptor.java:205: Method compile() not found in class org.a
> pache.jasper.compiler.Compiler.
> [javac] compiler.compile();
> [javac] ^
> [javac] Note: 3 files use or override a deprecated API. Recompile
> with "-deprecation" for details.
> [javac] 12 errors, 1 warning
>
> BUILD FAILED
>
> C:\jakarta\jakarta-tomcat\build.xml:94: Compile failed, messages should
> have been provided.
>
> Total time: 23 seconds
>
> ----------------------------------END-----------------------------------
> -----
>
> I've done exactly what it says in the readme file and still no luck.
>
> I'd like to use this opportunity to comment on a few other things as
> well. I think there is a really big need for cleaning up the way
> Jakarta projects are distributed. For example:
>
> 1) Tomcat and servletapi come in a zip file that includes the root
> directory for that project... that is, "jakarta-tomcat-3.2-src" and
> "jakarta-servletapi-3.2-src" were included in the zip file and the files
> are ready to be unzipped into the <JAKARTA-HOME> directory on the user
> machine (well... almost... more on that in 2.). However, when I
> downloaded Ant 1.2 that project came in a zip file that was structured
> in a different way, specifically, it didnt' include the project root
> directory so I had to make the jakarta-ant directory myself and unzip
> the files into that directory.
>
> 2) When I had unzipped all files into the <JAKARTA-HOME> directory I had
> a structure that looked something like this:
>
> <JAKARTA HOME>
> jakarta-ant
> jakarta-servletapi-3.2-src
> jakarta-tomcat-3.2-src
>
> I built ant and servletapi but when I tried building tomcat I found out
> that it was trying to point to the servletapi.jar in a directory that
> was supposed to be called jakarta-servletapi but not
> jakarta-servletapi-3.2-src like my structure was then.
>
> So I changed the two directory names (for tomcat and servletapi) to
> jakarta-servletapi and jakarta-tomcat respectively.
>
> And then I tried to build again and no luck!
>
> So... could anybody help me with my problem... AND... can somebody
> please comment on the above criticism. I would really like to hear what
> everybody has to say on this... are you with me or against me? ;o)
>
> Kind regards and thanks again for great products,
> Stefan Freyr
>
> --------------------------------------------
> Stefan Freyr Stefansson
> Software Developer
> deCODE Genetics, Inc.
> http://www.decode.com
>
> Phone: (+354) 570 2854
> GSM: (+354) 861 1718
> Fax: (+354) 491 3782
> <<Stefan Stefansson.vcf>>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com