You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nitin Vira <nv...@juniper.net> on 2001/10/22 23:20:55 UTC

Compilation Error when building Tomcat

Hi,

I am trying to build Tomcat 4.0 from source on windows. I am following the steps given in the build.txt. 
when i am doing ant dist, it gives me compilation error for classes related to servlet API saying certain method doesnt exist even though the method is present in the interface.
for eg it gave me following error
    [javac] C:\jakarta-tomcat-4.0-rc1-src\catalina\src\share\org\apache\catalina
\authenticator\FormAuthenticator.java:418: Method getParameterMap() not found in
 interface javax.servlet.http.HttpServletRequest.
    [javac]         Map parameters = hreq.getParameterMap();
    [javac]                                              ^

Could you please help.

Regards,
Nitin

Re: Compilation Error when building Tomcat

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 22 Oct 2001, Nitin Vira wrote:

> Date: Mon, 22 Oct 2001 14:20:55 -0700
> From: Nitin Vira <nv...@juniper.net>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: Compilation Error when building Tomcat
>
> Hi,
>
> I am trying to build Tomcat 4.0 from source on windows. I am following the steps given in the build.txt.
> when i am doing ant dist, it gives me compilation error for classes related to servlet API saying certain method doesnt exist even though the method is present in the interface.
> for eg it gave me following error
>     [javac] C:\jakarta-tomcat-4.0-rc1-src\catalina\src\share\org\apache\catalina
> \authenticator\FormAuthenticator.java:418: Method getParameterMap() not found in
>  interface javax.servlet.http.HttpServletRequest.
>     [javac]         Map parameters = hreq.getParameterMap();
>     [javac]                                              ^
>
> Could you please help.
>

Since this method was added in Servlet 2.3, the most likely cause is that
you have an old servlet.jar in your compile classpath (or in
$JAVA_HOME/jre/lib/ext).

> Regards,
> Nitin
>

Craig