You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Naveed Khan <na...@hotmail.com> on 2000/09/13 02:19:01 UTC

Re: Building Struts: 12 Errors!

i guess u r using sevlet sdk 1.1.. . .use version 1.2

naveed

>From: julia.reynolds@healthstream.com (Julia Reynolds)
>Reply-To: struts-user@jakarta.apache.org
>To: struts-user@jakarta.apache.org
>Subject: Building Struts:  12 Errors!
>Date: Tue, 12 Sep 2000 12:33:38 +0100
>
>Hi,
>
>I am trying to build the struts source distribution and am having some 
>problems.
>
>I have downloaded all of the prerequisite software and I have cusomized the
>environment variables that I am supposed to customize.  However, I get the
>following errors.  I even downloaded the Struts version of the ServletAPI
>servlet.jar
>to make sure I had everything in sync.  Can anyone give me a clue as to how
>to fix this?  The error messages are below:
>
>Julia
>
>     [javac] Compiling 86 source files to 
>E:\struts\build\struts\library\classes
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
>
>se.java:135: Method getAttribute(java.lang.String) not found in interface 
>javax.
>
>servlet.http.HttpSession.
>     [javac]     Locale locale = (Locale) session.getAttribute(LOCALE_KEY);
>     [javac]                                                  ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
>
>se.java:155: Method setAttribute(java.lang.String, java.util.Locale) not 
>found i
>
>n interface javax.servlet.http.HttpSession.
>     [javac]     session.setAttribute(LOCALE_KEY, locale);
>     [javac]                         ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
>
>se.java:206: Method removeAttribute(java.lang.String) not found in 
>interface jav
>
>ax.servlet.http.HttpServletRequest.
>     [javac]         request.removeAttribute(ERROR_KEY);
>     [javac]                                ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:293: Wrong number of arguments in constructor.
>     [javac]         throw new UnavailableException
>     [javac]               ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:505: Wrong number of arguments in constructor.
>     [javac]         throw new UnavailableException
>     [javac]               ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:541: Wrong number of arguments in constructor.
>     [javac]         throw new UnavailableException
>     [javac]               ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:587: Wrong number of arguments in constructor.
>     [javac]         throw new UnavailableException
>     [javac]               ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:734: Method getAttribute(java.lang.String) not found in 
>interface jav
>
>ax.servlet.http.HttpSession.
>     [javac]                 (ActionForm) 
>session.getAttribute(formAttribute);
>     [javac]                                                  ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
>
>rvlet.java:747: Method setAttribute(java.lang.String, 
>org.apache.struts.action.A
>
>ctionForm) not found in interface javax.servlet.http.HttpSession.
>     [javac]                     session.setAttribute(formAttribute, 
>formInstance
>
>);
>     [javac]                                         ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\bean\Hea
>
>derTag.java:168: Method getHeaders(java.lang.String) not found in interface 
>java
>
>x.servlet.http.HttpServletRequest.
>     [javac]       ((HttpServletRequest) 
>pageContext.getRequest()).getHeaders(nam
>
>e);
>     [javac]                                                                
>  ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\Link1Tag
>
>.java:360: Method getContextPath() not found in interface 
>javax.servlet.http.Htt
>
>pServletRequest.
>     [javac]         href = request.getContextPath() + forward.getPath();
>     [javac]                                      ^
>     [javac] 
>E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\LinkTag.
>
>java:359: Method getContextPath() not found in interface 
>javax.servlet.http.Http
>
>ServletRequest.
>     [javac]         href = request.getContextPath() + forward.getPath();
>     [javac]                                      ^
>     [javac] 12 errors
>
>BUILD FAILED
>
>build.xml:51: Compile failed
>
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.